// Common JavaScript functions

/////////////////////////////////////////////////////////////////////
function DisplayHeader()
{
    document.open();
    document.writeln("<table border='0' width='100%' cellspacing='0' cellpadding='0' height='60' background='http://www.microvideosoft.com/images/bg1.jpg'>");
    document.writeln("  <tr>");
    document.writeln("    <td width='300' align='center' nowrap >");
    document.writeln("  <div>");
    document.writeln("    <a href='http://www.microvideosoft.com/'><img border='0' src='http://www.microvideosoft.com/images/logo22.jpg' width='199' height='50'></a>");
   document.writeln("  </div>");

    document.writeln("    </td>");
    document.writeln("    <td align='right'>");
    document.writeln("    <table border='0' cellpadding='0' cellspacing='0' width='100%'>");
    document.writeln("      <tr>");
    document.writeln("        <td style='PADDING-RIGHT: 20px; ' valign='top' align='right'>");
    document.writeln("        <table cellSpacing='0' cellPadding='0' border='0' id='language'>");
    document.writeln("     <tr>");
    document.writeln("     <td  id='ind_nav'>");
    document.writeln("			<ul>");
    document.writeln("				<li>");
    document.writeln("				<select class='topmenu_website' onchange='MM_jumpMenu(\"parent\",this,0)' name='language'>");
    document.writeln("				<option value='#' selected>Select Language</option>");
    document.writeln("				<option value='http://www.microvideosoft.com'>English</option>");
    document.writeln("				</select> </li>");
    document.writeln("			</ul>");
    document.writeln("     </td>");
    document.writeln("     </tr>");
        
    document.writeln("        </table>");
    document.writeln("        </td>");
    document.writeln("      </tr>");
    document.writeln("      <tr>");
    document.writeln("        <td  align='right' height='30'>");
    document.writeln("        </td>");
    document.writeln("      </tr>");
    document.writeln("    </table>");
    document.writeln("    </td>");
    document.writeln("  </tr>");
    document.writeln("</table>");
}
    
    
    
    
function DisplayNavBar()
{
	  // header
    document.open();
    document.writeln("<table border='0' width='100%' cellspacing='0' cellpadding='0'>");
    document.writeln("<tr>");
    document.writeln("<td background='http://www.microvideosoft.com/images/bk1.gif'>");
    document.writeln("<div align='center'>");
    document.writeln("<center>");
    document.writeln("<script type='text/javascript' language='JavaScript1.2'>");
    document.writeln("<!--");
    document.writeln("stm_bm(['mainmenu',430,'','http://www.microvideosoft.com/images/sp.gif',0,'','',1,0,0,0,50,1,0,0,'','',0],this);");
    document.writeln("stm_bp('p0',[0,4,0,0,3,0,15,0,100,'progid:DXImageTransform.Microsoft.Fade(overlap=.5,enabled=0,Duration=0.20)',-2,'',-2,90,0,0,'#7f7f7f','#000000','http://www.microvideosoft.com/images/bk1.gif',3,0,0,'#000000']);");
    document.writeln("stm_ai('p0i0',[6,16,'transparent','http://www.microvideosoft.com/images/d2.gif',2,15,0]);");
    
		// menu    
    document.writeln("stm_ai('p0i1',[0,'Products','','',-1,-1,0,'http://www.microvideosoft.com/index.htm','_self','','','','',0,0,0,'','',-1,-1,0,0,1,'#f0f0f0',1,'#f0f0f0',1,'','',0,3,0,0,'#ffffff','#ffffff','#ffffff','#fa7804','bold 8pt Verdana','bold 8pt Verdana',0,0]);");
    document.writeln("stm_bp('p1',[1,4,-10,4,0,3,7,0,100,'',-2,'',-2,90,0,0,'#cccccc','transparent','',3,1,1,'#808080']);");

    document.writeln("stm_aix('p1i1','p0i0',[6,1,'#cccccc','',-1,-1]);");
    document.writeln("stm_aix('p1i1','p0i1',[0,'Video Converter Professional  ','','',-1,-1,0,'http://www.microvideosoft.com/video_converter_professional/index.htm','_self','','','http://www.microvideosoft.com/images/a1.gif','http://www.microvideosoft.com/images/a1.gif',0,0,0,'','',7,7,0,0,1,'#f0f0f0',0,'#89b5f7',0,'','',3,3,0,0,'#ffffff','#ffffff','#505050','#ffffff',' 11px Verdana',' 11px Verdana']);");
  
    document.writeln("stm_aix('p1i1','p0i0',[6,1,'#cccccc','',-1,-1]);");
    document.writeln("stm_aix('p1i0','p0i1',[0,'DVD Ripper Premium   ','','',-1,-1,0,'http://www.microvideosoft.com/DVD_ripper_premium/index.htm','_self','','','http://www.microvideosoft.com/images/a1.gif','http://www.microvideosoft.com/images/a1.gif',7,7,0,'','',0,0,0,0,1,'#f0f0f0',0,'#89b5f7',0,'','',3,3,0,0,'#ffffff','#ffffff','#505050','#ffffff','11px Verdana','11px Verdana']);");
    
     document.writeln("stm_aix('p1i1','p0i0',[6,1,'#cccccc','',-1,-1]);");
    document.writeln("stm_aix('p1i0','p0i1',[0,'Micro Video Capture   ','','',-1,-1,0,'http://www.microvideosoft.com/micro_video_capture/index.htm','_self','','','http://www.microvideosoft.com/images/a1.gif','http://www.microvideosoft.com/images/a1.gif',7,7,0,'','',0,0,0,0,1,'#f0f0f0',0,'#89b5f7',0,'','',3,3,0,0,'#ffffff','#ffffff','#505050','#ffffff','11px Verdana','11px Verdana']);");
    
    
    document.writeln("stm_ep();");    
    document.writeln("stm_aix('p0i2','p0i0',[]);");
    
    document.writeln("stm_aix('p0i3','p0i1',[0,'Downloads','','',-1,-1,0,'http://www.microvideosoft.com/download.htm']);");
    document.writeln("stm_bpx('p2','p1',[1,4,-10,4,0,3,7,7]);");
    
     document.writeln("stm_aix('p2i2','p1i0',[0,'Free Trial Download','','',-1,-1,0,'http://www.microvideosoft.com/download.htm']);");
    document.writeln("stm_bpx('p3','p1',[1,4,187,-20]);");
          
    document.writeln("stm_ep();");  
  
  
    
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i4','p0i0',[]);");
    
    document.writeln("stm_aix('p0i5','p0i1',[0,' Purchase Center','','',-1,-1,0,'http://www.microvideosoft.com/purchase/index.htm']);");
    document.writeln("stm_bpx('p4','p1',[1,4,-10,4,0,3,7,7]);");
    
    //document.writeln("stm_aix('p4i0','p2i0',[0,'McFunSoft Online Store','','',-1,-1,0,'http://www.microvideosoft.com/purchase/','_self','','','','',7,7,0,'','',0,0]);");
    document.writeln("stm_aix('p4i1','p1i1',[]);");
    
   
 

    document.writeln("stm_aix('p4i7','p1i1',[]);");
    document.writeln("stm_aix('p4i8','p1i0',[0,'MicroVideoSoft Online Store       ','','',-1,-1,0,'http://www.microvideosoft.com/purchase/index.htm']);");

    document.writeln("stm_aix('p4i7','p1i1',[]);");
    document.writeln("stm_aix('p4i8','p1i0',[0,'SDK&Customization         ','','',-1,-1,0,'http://www.microvideosoft.com/purchase/SDK.htm']);");
   
    document.writeln("stm_aix('p4i9','p1i1',[]);");
    document.writeln("stm_aix('p4i10','p1i0',[0,'Order FAQ','','',-1,-1,0,'http://www.microvideosoft.com/support/orderingfaqs.htm']);");
    document.writeln("stm_aix('p4i7','p1i1',[]);");
    document.writeln("stm_aix('p4i10','p1i0',[0,'Refund Policy','','',-1,-1,0,'http://www.microvideosoft.com/purchase/refund.htm']);");
    
    document.writeln("stm_ep();");
    
    
    document.writeln("stm_aix('p0i6','p0i0',[]);");
    document.writeln("stm_aix('p0i7','p0i1',[0,'Support','','',-1,-1,0,'http://www.microvideosoft.com/support/index.htm']);");
    document.writeln("stm_bpx('p5','p1',[1,4,-10,4,0,3,7,7]);");
   
    document.writeln("stm_aix('p5i0','p1i0',[0,'Learning Center','','',-1,-1,0,'http://www.microvideosoft.com/support/learning.htm']);");
    document.writeln("stm_aix('p5i3','p1i1',[]);");
    document.writeln("stm_aix('p5i4','p1i0',[0,'Order FAQs','','',-1,-1,0,'http://www.microvideosoft.com/support/orderingfaqs.htm']);");
  
    document.writeln("stm_ep();");

    
    
    
 document.writeln("stm_aix('p0i8','p0i0',[]);");
    document.writeln("stm_aix('p0i9','p0i1',[0,'Partner Center','','',-1,-1,0,'http://www.microvideosoft.com/partnercenter/index.htm']);");
    document.writeln("stm_bpx('p6','p1',[1,4,-10,4,0,3,7,7]);");
  
    document.writeln("stm_aix('p6i6','p5i4',[0,'SDK&Customization','','',-1,-1,0,'http://www.microvideosoft.com/purchase/SDK.htm']);"); 
    document.writeln("stm_ep();");
   
    
       document.writeln("stm_aix('p0i10','p0i0',[]);");
    document.writeln("stm_aix('p0i11','p0i9',[0,'News Center','','',-1,-1,0,'http://www.microvideosoft.com/news/index.htm']);");
    document.writeln("stm_bpx('p7','p1',[1,4,-10,4,0,3,7,7]);");
    document.writeln("stm_aix('p7i0','p1i0',[0,'New Release        ','','',-1,-1,0,'http://www.microvideosoft.com/news/index.htm']);");
    document.writeln("stm_aix('p7i1','p1i1',[]);");
    document.writeln("stm_ep();");
   
    
    document.writeln("stm_aix('p0i10','p0i0',[]);");
    document.writeln("stm_aix('p0i11','p0i9',[0,'Company','','',-1,-1,0,'http://www.microvideosoft.com/company/index.htm']);");
    document.writeln("stm_bpx('p7','p1',[1,4,-10,4,0,3,7,7]);");
    document.writeln("stm_aix('p7i0','p1i0',[0,'About MicroVideo Software        ','','',-1,-1,0,'http://www.microvideosoft.com/company/index.htm']);");
    document.writeln("stm_aix('p7i1','p1i1',[]);");

    document.writeln("stm_aix('p7i2','p1i0',[0,'Privacy Policy','','',-1,-1,0,'http://www.microvideosoft.com/company/privacy.htm']);");
    document.writeln("stm_ep();");
    
    document.writeln("stm_aix('p0i12','p0i0',[]);");
    document.writeln("stm_ep();");
    document.writeln("stm_em();");
    document.writeln("//-->");
    document.writeln("</script>");
    document.writeln("</center>");
    document.writeln("</div>");
    document.writeln("</td>");
    document.writeln("</tr>");
    document.writeln("</table>");

}




/////////////////////////////////////////////////////////////////////
function DisplayNavShade()
{
    document.open();
    document.writeln("<table border='0' width='100%' cellspacing='0' cellpadding='0'>");
    document.writeln("  <tr>");
    document.writeln("    <td WIDTH='100%' background='http://www.microvideosoft.com/images/s1.gif'>");
    document.writeln("    <img SRC='http://www.microvideosoft.com/images/sp.gif' width='8' HEIGHT='8' ALT BORDER='0'></td>");
    document.writeln("  </tr>");
    document.writeln("</table>");
}



/////////////////////////////////////////////////////////////////////
function DisplayStatus()
{
    document.open();
    document.writeln("<table CELLPADDING='0' CELLSPACING='0' WIDTH='100%' BORDER='0' >");

    document.writeln("  <tr>");
    document.writeln("    <td align='center' VALIGN='BOTTOM' bgcolor='#4f7ade'>");
    document.writeln("      <p align='center' style='margin-top: 2pt; margin-bottom: 2pt; margin-left: 8pt'>        ");
    document.writeln("  	  <a href='http://www.microvideosoft.com/index.htm' class='sHeadLink'>Products</a><span class='copyright'> | </span>");
    document.writeln("  	  <a href='http://www.microvideosoft.com/purchase/index.htm' class='sHeadLink'>Purchase</a><span class='copyright'> | </span>");
    document.writeln("	      <a href='http://www.microvideosoft.com/download.htm' class='sHeadLink'>Downloads</a><span class='copyright'> | </span>");
    document.writeln("	      <a href='http://www.microvideosoft.com/support/index.htm' class='sHeadLink'>Support</a><span class='copyright'> | </span>");
    document.writeln("	      <a href='http://www.microvideosoft.com/company/index.htm' class='sHeadLink'>Company</a><span class='copyright'> | </span>");
    document.writeln("	      <a href='http://www.microvideosoft.com/links.htm' class='sHeadLink'>Links</a><span class='copyright'> | </span>");
    document.writeln("	      <a href='http://www.microvideosoft.com/sitemap.htm' class='sHeadLink'>Sitemap</a>");
    document.writeln("        <table width='100%' border='0' style='margin-bottom: 8pt'>");
    document.writeln("        <tr>");
    document.writeln("          <td width='100%' align='center'><span class='sHeadLink'>Copyright(c)2008, MicroVideo Software Corp. All rights reserved.");
    document.writeln("            <a href='http://www.microvideosoft.com/company/terms.htm' class='sHeadLink'>Terms of Use</a> | <a href='http://www.microvideosoft.com/company/privacy.htm' class='sHeadLink'>Privacy Statement</a></span>");
    document.writeln("		  </td>");
    document.writeln("        </tr>");
    document.writeln("      </table>");
    document.writeln("	</td>");
    document.writeln("  </tr>");
    document.writeln("</table>");
}

/////////////////////////////////////////////////////////////////////
function DisplayStatusShade()
{
    document.open();
    document.writeln("<table border='0' width='100%' cellspacing='0' cellpadding='0'>");
    document.writeln("  <tr>");
    document.writeln("    <td WIDTH='100%' background='http://www.microvideosoft.com/images/s2.gif'>");
    document.writeln("    <img SRC='http://www.microvideosoft.com/images/sp.gif' width='8' HEIGHT='8' ALT BORDER='0'></td>");
    document.writeln("  </tr>");
    document.writeln("</table>");
}

/////////////////////////////////////////////////////////////////////
function openPopup(url,x,y){
  if (!x){x=760;};
  if (!y){y=630;};
  window.open(url,null,'toolbar=yes,menubar=no,resizable=yes,scrollbars=yes,width='+x+',height='+y)
}

/////////////////////////////////////////////////////////////////////
function openPopupFixed(url,x,y){
  if (!x){x=760;};
  if (!y){y=630;};
  window.open(url,null,'toolbar=no,status=no,menubar=no,resizable=yes,scrollbars=no,width='+x+',height='+y)
}
