function doOpen(addr, url_type, w, h, scroll) {
  if (url_type=='') {
    wnd = window.open(addr, "", "height="+h+", width="+w+", top=0, left=0, "+scroll+", location=no, menubar=no, resizeable=no, status=no, titlebar=no, toolbar=no");
  } else {
    wnd = window.open("", "", "height="+h+", width="+w+", top=0, left=0, "+scroll+", location=no, menubar=no, resizeable=no, status=no, titlebar=no, toolbar=no");
  }
  if (url_type=='img') {
    wnd.document.write('<html\> \n');
    wnd.document.write('<title\>Soarup portfolio</title\> \n');
    wnd.document.write('<body topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0\> \n');
    wnd.document.write('<table border=0 cellspacing=0 cellpadding=0 width=100% height=100%\> \n');
    wnd.document.write('<tr\><td height=100% width=100% valign="center" align="center"\> \n');
    wnd.document.write('<img src="'+addr+'"\> \n');
    wnd.document.write('</tr\></td\> \n');
    wnd.document.write('</table\> \n');
    wnd.document.write('</body\> \n');
    wnd.document.write('</html\>');
  }
  if (url_type=='swf') {
    wnd.document.write('<html\> \n');
    wnd.document.write('<title\>Soarup portfolio</title\> \n');
    wnd.document.write('<body topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0\> \n');
    wnd.document.write('<table border=0 cellspacing=0 cellpadding=0 width=100% height=100%\> \n');
    wnd.document.write('<tr\><td height=100% width=100% valign="center" align="center"\> \n');
    wnd.document.write('<object width="'+w+'" height="'+h+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"\> \n');
    wnd.document.write('  <param name=movie value="'+addr+'"\> \n');
    wnd.document.write('  <embed src="'+addr+'" width="'+w+'" height="'+h+'" ñtype="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"\></embed\> \n');
    wnd.document.write('</object\> \n');
    wnd.document.write('</tr\></td\> \n');
    wnd.document.write('</table\> \n');
    wnd.document.write('</body\> \n');
    wnd.document.write('</html\>');
  }
}

function main_DoFSCommand(command, args) {
  if (command == "OpenWindow") {
    window.location.replace(args);
  }
}
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
  document.write('<SCRIPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write('Sub main_FSCommand(ByVal command, ByVal args) \n');
  document.write('  call main_DoFSCommand(command, args) \n'); 
  document.write('end sub \n');
  document.write('</SCRIPT\> \n');
}
