// Common JavaScript functions

/////////////////////////////////////////////////////////////////////


function DisplayNavBar()
{
    document.open();
    document.writeln("<table border='0' width='100%' cellspacing='0' cellpadding='0'>");
    document.writeln("<tr>");
    document.writeln("<td background='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,'','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','images/bk1.gif',3,0,0,'#000000']);");
    document.writeln("stm_ai('p0i0',[6,15,'transparent','images/d2.gif',2,16,0]);");
    document.writeln("stm_ai('p0i1',[0,'Products','','',-1,-1,0,'default.asp','_self','','','','',1,0,0,'','',-1,-1,0,0,1,'#f0f0f0',1,'#f0f0f0',1,'','',2,3,0,0,'#ffffff','#ffff00','#505050','#d00000','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('p1i0','p0i0',[0,'All of Products','','',-1,-1,0,'Default.asp','_self','','','images/a1.gif','images/a1.gif',7,7,0,'','',0,0,0,0,1,'#f0f0f0',0,'#969696',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','p0i0',[]);");
  //  document.writeln("stm_aix('p1i0','p0i0',[]);");
    //document.writeln("stm_aix('p1i0','p0i1',[0,'Kingzm Mouse Manager','','',-1,-1,0,'mouse_manager.asp','_self','','','images/a1.gif','images/a1.gif',7,7,0,'','',0,0,0,0,1,'#f0f0f0',0,'#969696',0,'','',3,3,0,0,'#ffffff','#ffffff','#505050','#ffffff','11px Verdana','11px Verdana']);");
    document.writeln("stm_aix('p1i0','p1i0',[0,'Kingzm Mouse Manager','','',-1,-1,0,'mouse_manager.asp']);");
   //document.writeln("stm_aix('p1i0','p0i1',[]);");
    document.writeln("stm_aix('p1i2','p1i0',[0,'Kingzm Folder Watch Dog','','',-1,-1,0,'folder_watch_dog.asp']);");
    document.writeln("stm_aix('p1i3','p1i1',[]);");

//    document.writeln("stm_aix('p1i10','p1i0',[0,'Product FAQ','','',-1,-1,0,'faq.asp']);");
//    document.writeln("stm_aix('p1i11','p1i1',[]);");
//    document.writeln("stm_aix('p1i12','p1i0',[0,'Manuals','','',-1,-1,0,'manuals.asp']);");
//    document.writeln("stm_aix('p1i13','p1i1',[]);");
    document.writeln("stm_aix('p1i14','p1i0',[0,'Online Registration','','',-1,-1,0,'registration.asp']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i2','p0i0',[]);");
    document.writeln("stm_aix('p0i2','p0i1',[0,'Downloads','','',-1,-1,0,'download.asp']);");
    document.writeln("stm_bpx('p2','p1',[1,4,-10,4,0,3,7,7]);");
//    document.writeln("stm_aix('p2i0','p0i1',[0,'30-Day Free Trial Versions  ','','',-1,-1,0,'download.asp','_self','','','images/a1.gif','images/a1.gif',0,0,0,'images/a2.gif','images/a2.gif',7,7,0,0,1,'#f0f0f0',0,'#969696',0,'','',3,3,0,0,'#ffffff','#ffffff','#505050','#ffffff','bold 11px Verdana','bold 11px Verdana']);");
//    document.writeln("stm_bpx('p3','p1',[1,4,187,-20]);");
//    document.writeln("stm_aix('p3i0','p1i0',[0,'All Free Trial Products','','',-1,-1,0,'download.asp']);");
//    document.writeln("stm_aix('p3i1','p1i1',[]);");
//    document.writeln("stm_aix('p3i2','p1i0',[0,'Kingzm Mouse Manager   ','','',-1,-1,0,'download_Mosue.asp']);");
//    document.writeln("stm_aix('p3i3','p1i1',[]);");
//    document.writeln("stm_ep();");
    document.writeln("stm_aix('p2i1','p1i1',[]);");
	document.writeln("stm_aix('p3i0','p1i0',[0,'All Free Trial Products','','',-1,-1,0,'download.asp']);");
    document.writeln("stm_aix('p5i1','p1i3',[]);");
    document.writeln("stm_aix('p5i1','p1i3',[]);");
    document.writeln("stm_aix('p2i2','p1i0',[0,'Kingzm Mouse Manager','','',-1,-1,0,'download_Mosue.asp']);");
  //  document.writeln("stm_aix('p2i3','p1i1',[]);");
    document.writeln("stm_aix('p2i4','p1i0',[0,'Kingzm Folder Watch Dog','','',-1,-1,0,'download_RFF.asp']);");
	document.writeln("stm_aix('p2i5','p1i1',[]);");
    document.writeln("stm_aix('p2i6','p1i0',[0,'Product Manuals','','',-1,-1,0,'Manuals.asp']);");
    document.writeln("stm_aix('p2i7','p1i1',[]);");
    document.writeln("stm_aix('p2i8','p1i0',[0,'Free Software','','',-1,-1,0,'freeware.asp']);");
//    document.writeln("stm_aix('p2i9','p1i1',[]);");
//    document.writeln("stm_aix('p2i10','p1i0',[0,'Distribution Kit','','',-1,-1,0,'http://www.axdn.com']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i6','p0i0',[]);");
    document.writeln("stm_aix('p0i7','p0i1',[0,'Support','','',-1,-1,0,'']);");
    document.writeln("stm_bpx('p5','p1',[]);");
 //   document.writeln("stm_aix('p5i0','p1i0',[0,'Technical Support  ','','',-1,-1,0,'http://www.kingzm.com/support']);");
//    document.writeln("stm_aix('p5i1','p1i1',[]);");
//    document.writeln("stm_aix('p5i2','p1i0',[0,'Product FAQ','','',-1,-1,0,'http://www.kingzm.com/support/faq.html']);");
//    document.writeln("stm_aix('p5i3','p1i1',[]);");
//    document.writeln("stm_aix('p5i4','p1i0',[0,'Customer FAQ','','',-1,-1,0,'http://www.kingzm.com/support/cfaq.html']);");
//    document.writeln("stm_aix('p5i5','p1i1',[]);");
//    document.writeln("stm_aix('p5i6','p1i0',[0,'Community Forum','','',-1,-1,0,'http://www.kingzm.net/forums','_top']);");
    document.writeln("stm_aix('p5i7','p1i1',[]);");
  //  document.writeln("stm_bpx('p5','p1',[]);");
      document.writeln("stm_aix('p5i1','p1i3',[]);");
    document.writeln("stm_aix('p5i0','p1i0',[0,'Technical Support  ','','',-1,-1,0,'Technical Support.asp']);");
    document.writeln("stm_aix('p5i1','p1i3',[]);");
    document.writeln("stm_aix('p5i1','p1i3',[]);");
    document.writeln("stm_aix('p5i8','p1i0',[0,'Contact Kingzm Support Team  ','','',-1,-1,0,'contact.asp']);");
    document.writeln("stm_aix('p5i9','p1i1',[]);");
    document.writeln("stm_aix('p5i10','p1i0',[0,'Product FAQ','','',-1,-1,0,'Product FAQ.asp']);");
    document.writeln("stm_aix('p5i11','p1i1',[]);");
    document.writeln("stm_aix('p5i12','p1i0',[0,'Message board','','',-1,-1,0,'MessageBoard/index.asp']);");
    
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i6','p0i0',[]);");
    document.writeln("stm_aix('p0i7','p0i1',[0,'Tutorials','','',-1,-1,0,'']);");
    document.writeln("stm_bpx('p5','p1',[]);");

    document.writeln("stm_aix('p5i4','p1i0',[0,'Kingzm Mouse Manager','','',-1,-1,0,'!SSL!/WebHelp_MouseManager/Mouse_Manager_Help.htm']);");

    document.writeln("stm_aix('p5i6','p1i0',[0,'Kingzm Folder Watch Dog','','',-1,-1,0,'!SSL!/WebHelp_FolderWatchDog/Folder_Watch_Dog.htm','_top']);");

    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i8','p0i0',[]);");
    document.writeln("stm_aix('p0i9','p0i1',[0,'Company','','',-1,-1,0,'company_information.asp']);");
    document.writeln("stm_bpx('p6','p1',[]);");
    document.writeln("stm_aix('p6i0','p1i0',[0,'About Kingzm Software Company ','','',-1,-1,0,'company_information.asp']);");
    document.writeln("stm_aix('p6i1','p1i1',[]);");
    document.writeln("stm_aix('p6i2','p1i0',[0,'Contact Us','','',-1,-1,0,'contact.asp']);");
    document.writeln("stm_ep();");
    document.writeln("stm_aix('p0i10','p0i0',[]);");
    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='images/s1.gif'>");
    document.writeln("    <img SRC='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 bgcolor='#FCFCFC'><font size='1'>");
    document.writeln("    <img border='0' src='images/sp.gif' width='1' height='1'></font></td>");
    document.writeln("  </tr>");
    document.writeln("  <tr>");
    document.writeln("    <td align='center' VALIGN='BOTTOM' bgcolor='#E0E0E0'>");
    document.writeln("      <p align='cente' style='margin-top: 8pt; margin-bottom: 2pt; margin-left: 8pt'>        ");
 //   document.writeln("  	  <a href='siteap.asp' class='sHeadLink'>site map</a><span class='style2'> | </span>");
//    document.writeln("	      <a href='rivacy_policy.aspprivacy-policy-title.gif' class='sHeadLink'>privacy policy</a><span class='style2'> | </span>");
    document.writeln("	      <a href='eula.asp' class='sHeadLink'>user license agreements</a><span class='style2'> | </span>");
    document.writeln("	      <a href='company_information.asp' class='sHeadLink'>company</a><span class='style2'> | </span>");
	document.writeln("	      <a href='account.asp?login=Admin' class='sHeadLink'>Admin</a><span class='style2'> | </span>");
    document.writeln("	      <a href='contact.asp' class='sHeadLink'>contact us</a><span class='style2'> </span></p>");

    document.writeln("        <table width='350' height='100' border='0' style='margin-bottom: 2pt'>");
    document.writeln("        <tr>");
    document.writeln("          <td width='32'><img src='images/logobackground.png' hspace='1' vspace='1' align='bottom'></td>");
    document.writeln("          <td width='318'><font size='1'>Copyright 2002-2007 Kingzm Software. All rights reserved. <br>");
    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='images/s2.gif'>");
    document.writeln("    <img SRC='images/sp.gif' width='8' HEIGHT='8' ALT BORDER='0'></td>");
    document.writeln("  </tr>");
    document.writeln("</table>");
}

/////////////////////////////////////////////////////////////////////
function openPopup(url){

  window.open(url,null,'toolbar=yes,menubar=no,resizable=yes,scrollbars=yes')
}

/////////////////////////////////////////////////////////////////////
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)
}
