// Common JavaScript functions

/////////////////////////////////////////////////////////////////////
function ShowHeader()
{
    document.open();
    document.writeln("<div class=maintable>");
    document.writeln("  <div id=topheader>");
    document.writeln("  <div class=ul>");
    document.writeln("  <div class=ur>");
    document.writeln("    <table align='center' border='0' cellpadding='0' cellspacing='10' width='900' height='100%'>");
    document.writeln("      <tr>");
    document.writeln("        <td>");
    document.writeln("          <a href='index.html'><img border='0' src='img/l4.gif' width='152' height='44' vspace='5' hspace='20'></a></td>");
    document.writeln("        </td>");
    document.writeln("        <td>");
    document.writeln("        <table border='0' cellpadding='0' cellspacing='0' width='100%'>");
    document.writeln("          <tr>");
    document.writeln("            <td style='PADDING-RIGHT: 10px;' vAlign='bottom' align='right'>");
    document.writeln("              <table cellSpacing='0' cellPadding='0' border='0'>");
    document.writeln("                <form id='form1' name='form1' method='GET' action='http://www.google.com/search' onsubmit='this.q.value=\"site:www.freemp3wmaconverter.com \"+this.qfront.value'>");
    document.writeln("                  <tr>");
    document.writeln("                    <td align='center' width='10'>&nbsp;</td>");
    document.writeln("                    <td><a href='purchase/index.html'>");
    document.writeln("                    <img border='0' src='img/c1.gif' hspace='3' width='17' height='17'></a></td>");
    document.writeln("                    <td width='10' align='center'>");
    document.writeln("                    <img height='13' hspace='2' src='img/d1.gif' width='1' border='0'></td>");
    document.writeln("                    <td>");
    document.writeln("                    <img border='0' src='img/sp.gif' width='3' height='3'><a class='sHeadLink' href='purchase/index.html'>Store");
    document.writeln("                    </a><img border='0' src='img/sp.gif' width='3' height='3'></td>");
    document.writeln("                    <td width='10' align='center'>");
    document.writeln("                    <img height='13' hspace='2' src='img/d1.gif' width='1' border='0'></td>");
    
    /*document.writeln("                    <td>");
    document.writeln("                    <img border='0' src='img/sp.gif' width='3' height='3'><a class='sHeadLink' href='support/index.html'>");
    document.writeln("                    Support</a><img border='0' src='img/sp.gif' width='3' height='3'></td>");
    document.writeln("                    <td width='10' align='center'>");
    document.writeln("                    <img height='13' hspace='2' src='img/d1.gif' width='1' border='0'></td>");*/
    
    document.writeln("                    <td>");
    document.writeln("                    <img border='0' src='img/sp.gif' width='3' height='3'><a class='sHeadLink' href='support/index.html'>Customer ");
    document.writeln("                    Service</a><img border='0' src='img/sp.gif' width='3' height='3'></td>");
    document.writeln("                    <td width='10' align='center'>");
    document.writeln("                    <img height='13' hspace='2' src='img/d1.gif' width='1' border='0'></td>");
    document.writeln("                    <td>");
    document.writeln("                    <img border='0' src='img/sp.gif' width='3' height='3'><a class='sHeadLink' href='http://www.twitter.com/CyberPowerSoft'>Twitter</a><img border='0' hspace='4' src='img/twit.gif' width='12' height='12' style='padding-top:1pt;' align='absmiddle'>");
    document.writeln("                    </td>");
    document.writeln("                    <td width='10' align='center'>");
    document.writeln("                    <img height='13' hspace='2' src='img/d1.gif' width='1' border='0'></td>");
    document.writeln("                    <td><p style='font-family:Verdana,Arial,Helvetica; font-size:9pt; margin-top:9pt;'>Search:<img border='0' src='img/sp.gif' width='5' height='5'></p>");
    document.writeln("                    </td>");
    document.writeln("                    <td> <input name='q' type='hidden'>");
    document.writeln("                    <input type='text' size='15' maxLength='80' name='qfront' style='font-family: Tahoma, Arial; font-size: 8pt'>");
    document.writeln("                    <input TYPE='image' src='img/b1.gif' alt='Search The Site!' width='17' height='17' Name='I1' BORDER='0' align='absbottom' vspace='2'><br>");
    document.writeln("                    </td>");
    document.writeln("                  </tr>");
    document.writeln("                </form>");
    document.writeln("              </table>");
    document.writeln("            </td>");
    document.writeln("          </tr>");
    document.writeln("          <tr>");
    document.writeln("            <td style='PADDING-RIGHT: 10px;' align='right'><font color='#44577B'>");
    document.writeln("            <img border='0' src='img/sp.gif' width='10' height='10'><br>&nbsp;</font></td>");
    document.writeln("          </tr>");
    document.writeln("        </table>");
    document.writeln("        </td>");
    document.writeln("      </tr>");
    document.writeln("    </table>");
    document.writeln("  </div>");
    document.writeln("  </div>");
    document.writeln("</div>");
}

/////////////////////////////////////////////////////////////////////
function ShowNav()
{
    document.open();
    document.writeln("<table align='center' border='0' width='900' cellspacing='0' cellpadding='0'>");
    document.writeln("<tr height='26'>");
    document.writeln("<td background='img/nbk1.gif' bgcolor='#ffffff'>");
    document.writeln("<center>");
    document.writeln("<script type='text/javascript' language='JavaScript1.2'>");
    document.writeln("<!--");
    document.writeln("stm_bm(['mainmenu',900,'','img/sp.gif',0,'','',1,0,0,0,50,1,0,0,'','',0,0,1,2,'default','hand','',1,25],this);");
    document.writeln("stm_bp('p0',[0,4,0,0,0,0,13,0,100,'progid:DXImageTransform.Microsoft.Fade(overlap=.5,enabled=1,Duration=0.20)',-2,'',-2,90,0,0,'#7f7f7f','#ffffff','img/nbk1.gif',3,0,0,'#ffffff']);");
    document.writeln("stm_ai('p0i0',[6,2,'transparent','img/nd2.gif',2,26,0]);");
    document.writeln("stm_ai('p0i1',[0,'Products','','',-1,-1,0,'products/index.html','_self','','','','',20,12,0,'','',20,-1,0,0,1,'#ffffff',1,'#ffffff',1,'','img/nbk2.gif',2,3,0,0,'#ffffff','#ffff00','#ffffff','#ffffff','bold 12px Verdana','bold 12px Verdana',0,0]);");
    document.writeln("stm_bp('p1',[1,4,-1,0,0,3,7,0,100,'',-2,'',-2,90,0,0,'#cccccc','transparent','',3,1,1,'#808080']);");
    document.writeln("stm_aix('p1i0','p0i1',[0,'Free MP3 WMA OGG Converter     ','','',-1,-1,0,'freemp3wmaoggconverter/index.html','_self','','','img/a1n.gif','img/a2n.gif',7,7,0,'','',0,0,0,0,1,'#F8F8F8',0,'#6677f1',0,'','',3,3,0,0,'#ffffff','#ffffff','#353050','#ffffff','13px Verdana','13px Verdana']);");
    document.writeln("stm_aix('p1i1','p1i0',[0,'CyberPower Audio Editing Lab ','','',-1,-1,0,'cyberpoweraudioeditinglab/index.html']);");
    document.writeln("stm_aix('p1i2','p1i0',[0,'CyberPower Video Switch ','','',-1,-1,0,'cyberpowervideoswitch/index.html']);");   
    document.writeln("stm_aix('p1i3','p1i0',[0,'CyberPower Disc Creator ','','',-1,-1,0,'cyberpowerdisccreator/index.html']);");
    document.writeln("stm_aix('p1i4','p1i0',[0,'Audio Extractor For Free ','','',-1,-1,0,'audioextractorforfree/index.html']);");
    document.writeln("stm_aix('p1i5','p1i0',[0,'Audio Convert Merge Free ','','',-1,-1,0,'audioconvertmergefree/index.html']);");
                
    document.writeln("stm_aix('p1i6','p1i1',[6,1,'#d0d0d0','',-1,-1]);");
    
    document.writeln("stm_aix('p1i7','p1i0',[0,'Tutorials & Manuals','','',-1,-1,0,'tutorials/index.html']);");
    document.writeln("stm_aix('p1i8','p1i0',[0,'Awards','','',-1,-1,0,'awards/index.html']);"); 
    document.writeln("stm_ep();");
    
    
    document.writeln("stm_aix('p0i2','p0i0',[]);");
    document.writeln("stm_aix('p0i3','p0i1',[0,'Downloads','','',-1,-1,0,'download/index.html']);");
 

    
    document.writeln("stm_aix('p0i6','p0i0',[]);");
    document.writeln("stm_aix('p0i7','p0i1',[0,'Store','','',-1,-1,0,'purchase/index.html']);");
    
    document.writeln("stm_bpx('p2','p1',[]);");
    document.writeln("stm_aix('p2i0','p1i0',[0,'CyberPower Store','','',-1,-1,0,'purchase/index.html']);");
    document.writeln("stm_aix('p2i1','p1i6',[]);");
    document.writeln("stm_aix('p2i2','p1i0',[0,'How To Purchase Products?','','',-1,-1,0,'purchase/index.html#howtopurchase']);");
    document.writeln("stm_aix('p2i3','p1i0',[0,'Phone/Fax orders','','',-1,-1,0,'purchase/index.html#otherways']);");
    document.writeln("stm_aix('p2i4','p1i0',[0,'PayPal orders','','',-1,-1,0,'purchase/index.html#paypal']);");
    document.writeln("stm_aix('p2i5','p1i6',[]);");
    document.writeln("stm_aix('p2i6','p1i0',[0,'What is Unlimited Access Subscription?  ','','',-1,-1,0,'purchase/index.html#UAS']);");
    document.writeln("stm_aix('p2i7','p1i0',[0,'Order FAQ','','',-1,-1,0,'support/index.html#Order_FAQ']);");
    document.writeln("stm_aix('p2i8','p1i0',[0,'Customer Service','','',-1,-1,0,'support/index.html']);");

    document.writeln("stm_ep();");
    
    
    document.writeln("stm_aix('p0i8','p0i0',[]);");
    document.writeln("stm_aix('p0i9','p0i1',[0,'Support','','',-1,-1,0,'support/technical.html']);");
    
    document.writeln("stm_bpx('p5','p1',[]);");
    document.writeln("stm_aix('p5i0','p1i0',[0,'Technical Support  ','','',-1,-1,0,'support/technical.html']);");
    document.writeln("stm_aix('p5i1','p1i6',[]);");
    document.writeln("stm_aix('p5i2','p1i0',[0,'Product FAQ','','',-1,-1,0,'support/index.html#Product_FAQ']);");
    document.writeln("stm_aix('p5i3','p1i0',[0,'Contact Support Team  ','','',-1,-1,0,'support/contact.html']);");
    document.writeln("stm_aix('p5i4','p1i6',[]);");
    document.writeln("stm_aix('p5i5','p1i0',[0,'Customer Service','','',-1,-1,0,'support/index.html']);");
    document.writeln("stm_aix('p5i6','p1i0',[0,'Customer FAQ','','',-1,-1,0,'support/index.html#Customer_FAQ']);");
    document.writeln("stm_ep();");
    
    
    document.writeln("stm_aix('p0i10','p0i0',[]);");
    document.writeln("stm_aix('p0i11','p0i1',[0,'Tutorials','','',-1,-1,0,'tutorials/index.html']);");
    
    document.writeln("stm_bpx('p6','p1',[]);");
    document.writeln("stm_aix('p6i0','p1i0',[0,'Free MP3 WMA OGG Converter     ','','',-1,-1,0,'tutorials/index.html#Free_MP3_WMA_OGG_Converter']);");
    document.writeln("stm_aix('p6i1','p1i0',[0,'CyberPower Audio Editing Lab ','','',-1,-1,0,'tutorials/index.html#CyberPower_Audio_Editing_Lab']);");
    document.writeln("stm_aix('p6i2','p1i0',[0,'CyberPower Video Switch ','','',-1,-1,0,'tutorials/index.html#CyberPower_Video_Switch']);");
    document.writeln("stm_aix('p6i3','p1i0',[0,'CyberPower Disc Creator ','','',-1,-1,0,'tutorials/index.html#CyberPower_Disc_Creator']);");
    document.writeln("stm_aix('p6i4','p1i0',[0,'Audio Extractor For Free ','','',-1,-1,0,'tutorials/index.html#Audio_Extractor_For_Free']);");
    document.writeln("stm_aix('p6i5','p1i0',[0,'Audio Convert Merge Free ','','',-1,-1,0,'tutorials/index.html#Audio_Convert_Merge_Free']);");
    
    document.writeln("stm_aix('p6i6','p1i6',[]);");
    document.writeln("stm_aix('p6i7','p5i0',[0,'Other Tutorials','','',-1,-1,0,'tutorials/index.html#Other_Tutorials']);");
    document.writeln("stm_ep();");
    
    
    
    
    document.writeln("stm_aix('p0i12','p0i0',[]);");
    document.writeln("stm_aix('p0i13','p0i9',[0,'Company','','',-1,-1,0,'company/index.html']);");
    document.writeln("stm_bpx('p7','p1',[]);");
    document.writeln("stm_aix('p7i0','p1i0',[0,'About CyberPower Tech  ','','',-1,-1,0,'company/index.html']);");
    document.writeln("stm_aix('p7i1','p5i0',[0,'Follow Us On Twitter','','',-1,-1,0,'http://www.twitter.com/CyberPowerSoft']);");
    document.writeln("stm_aix('p7i2','p1i0',[0,'Contact Us','','',-1,-1,0,'company/contact.html']);");
    document.writeln("stm_aix('p7i3','p5i0',[0,'Link To Us','','',-1,-1,0,'company/link-to-us.html']);");
    document.writeln("stm_aix('p7i4','p1i6',[]);");
    document.writeln("stm_aix('p7i5','p1i0',[0,'Awards','','',-1,-1,0,'awards/index.html']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i14','p0i0',[]);");
    document.writeln("stm_ep();");
    document.writeln("stm_em();");
    document.writeln("//-->");
    document.writeln("</script>");
    document.writeln("</center>");
    document.writeln("</td>");
    document.writeln("</tr>");
    document.writeln("</table>");

}

/////////////////////////////////////////////////////////////////////
function ShowNavShade()
{
    document.open();
    document.writeln("<table border='0' width='100%' cellspacing='0' cellpadding='0'>");
    document.writeln("  <tr>");
    document.writeln("    <td WIDTH='100%' background='img/s1.gif' bgcolor='#ffffff'>");
    document.writeln("    <img SRC='img/sp.gif' width='8' HEIGHT='8' ALT BORDER='0'></td>");
    document.writeln("  </tr>");
    document.writeln("</table>");

}

/////////////////////////////////////////////////////////////////////
function ShowStatus()
{
    document.open();
    document.writeln("<div id=status>");
    document.writeln(" <div class=ll>");
    document.writeln(" <div class=lr>");
    document.writeln(" <table align='center' CELLPADDING='0' CELLSPACING='0' WIDTH='900' HEIGHT='100' BORDER='0' >");
    document.writeln("  <tr>");
    document.writeln("    <td bgcolor='#ACDAF2'><font size='1'>");
    document.writeln("    <img border='0' src='img/sp.gif' width='1' height='1'></font></td>");
    document.writeln("  </tr>");
    document.writeln("  <tr>");
    document.writeln("    <td HEIGHT='100%' >");
    document.writeln("      <p align='center' style='margin-top: 8pt; margin-bottom: 2pt; margin-left: 8pt'> ");
    document.writeln("  	  <a href='sitemap.html' class='sStatusLink'>Site map</a><span class='style2'> | </span>");
    document.writeln("  	  <a href='company/terms-of-use.html' class='sStatusLink'>Terms of use</a><span class='style2'> | </span>");
    document.writeln("	      <a href='company/privacy-policy.html' class='sStatusLink'>Privacy</a><span class='style2'> | </span>");
    document.writeln("	      <a href='company/index.html' class='sStatusLink'>Company</a><span class='style2'> | </span>");
    document.writeln("	      <a href='company/contact.html' class='sStatusLink'>Contact us</a><span class='style2'> | </span>");
    document.writeln("	      <a href='company/link-to-us.html' class='sStatusLink'>Link to us</a>");
    document.writeln("	      </p>");
    document.writeln("        <table align=center width='450' border='0' style='margin-bottom: 2pt'>");
    document.writeln("        <tr>");
    document.writeln("          <td width='450'><p align='center' class='smaller' style='margin-top: 2pt; margin-left: 8pt;'>Copyright &copy; 2005-2012 CyberPower Tech. All rights reserved. <br>");
    document.writeln("          </p>");
    document.writeln("		  </td>");
    document.writeln("        </tr>");
    document.writeln("      </table>");
    document.writeln("      <p class='smaller' align='center' style='margin-top: 2pt; margin-bottom: 8pt; margin-left: 8pt'>");
    document.writeln("  	  <font color='#808080'>Microsoft, Windows, Windows XP, Windows Vista, Windows 7 are registered trademarks of Microsoft Corporation");
    document.writeln("      </font></p>");
    document.writeln("	</td>");
    document.writeln("  </tr>");
    document.writeln("</table>");
    document.writeln("</div>");
    document.writeln("</div>");
    document.writeln("</div>");
    document.writeln("</div>");
}

/////////////////////////////////////////////////////////////////////
function ShowStatusShade()
{
}

/////////////////////////////////////////////////////////////////////
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)
}
