function DisplayHeaderFirst()
{
  document.open();
  document.writeln("<TABLE height=28 cellSpacing=0 cellPadding=0 width='100%' border=0>");
  document.writeln("  <TR height=28>");
  document.writeln("    <TD align=left width=30 height=28><IMG height=28 alt='' src='http://www.tk8.com/images/border_lt.gif' width=30 border=0></TD>");
  document.writeln("    <TD width='100%' background='http://www.tk8.com/images/border_top.gif' height=28></TD>");
  document.writeln("    <TD width=20 height=28><IMG height=28 alt='' src='http://www.tk8.com/images/border_rt.gif' width=20 border=0></TD>");
  document.writeln("  </TR>");
  document.writeln("</TABLE>");
}


function DisplayFooter()
{
  document.open();
  document.writeln("Copyright © 1998 - 2009 TK8 Software, B &amp; M Konsultatsioonid Inc. All Rights Reserved.<br>");
  document.writeln("TK8 is a registered trademark.</p><p>&nbsp;</p>");
}


/////////////////////////////////////////////////////////////////////
// #6699cc - heledam sinine, menu over

function DisplayMenyy()
{
  document.open();
  document.writeln("<table border='0' width='500' cellspacing='0' cellpadding='0'>");
  document.writeln("<tr>");
  document.writeln("<td>");

  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.tk8.com/images/menu/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','#cccccc','http://www.tk8.com/images/menu/background_tight2.gif',3,0,0,'#cccccc']);");
  document.writeln("stm_ai('p0i0',[6,16,'transparent','http://www.tk8.com/images/menu/eraldis.gif',1,15,0]);");
 
 
  document.writeln("stm_ai('p0i1',[0,'  Home  ' ,'','',-1,-1,0,'http://www.tk8.com/','_self','','','','',0,0,0,'','',-1,-1,0,0,1,'#f0f0f0',1,'#f0f0f0',1,'','',0,3,0,0,'#ffffff','#ffffff','#333333','#6699cc','bold 8pt Verdana','bold 8pt Verdana',0,0]);");
  document.writeln("stm_ep();");
  document.writeln("stm_aix('p1i3','p0i0',[]);");
 
 
  document.writeln("stm_ai('p0i2',[0,' Products ' ,'','',-1,-1,0,'http://www.tk8.com/products.asp','_self','','','','',0,0,0,'','',-1,-1,0,0,1,'#f0f0f0',1,'#f0f0f0',1,'','',0,3,0,0,'#ffffff','#ffffff','#333333','#6699cc','bold 8pt Verdana','bold 8pt Verdana',0,0]);");
  document.writeln("stm_bp('p2',[1,4,-10,4,0,3,7,0,100,'',-2,'',-2,90,0,0,'#cccccc','transparent','',3,1,1,'#808080']);");
document.writeln("stm_aix('p2i0','p0i2',[0,'TK8 Backup','','',-1,-1,0,'http://www.tk8.com/backup/', '_self','','', 'http://www.tk8.com/images/menu/a1.gif','http://www.tk8.com/images/menu/a1w.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('p2i1','p0i2',[6,1,'#cccccc','',-1,-1]);");
  document.writeln("stm_aix('p2i2','p2i0',[0,'TK8 Safe','','',-1,-1,0,'http://www.tk8.com/safe/']);");
  document.writeln("stm_aix('p2i3','p2i1',[]);");
  document.writeln("stm_aix('p2i4','p2i0',[0,'TK8 StickyNotes','','',-1,-1,0,'http://www.tk8.com/stickynotes/']);");
  document.writeln("stm_aix('p2i5','p2i1',[]);");
  document.writeln("stm_aix('p2i6','p2i0',[0,'TK8 Contact CRM','','',-1,-1,0,'http://www.tk8.com/contact/']);");
  document.writeln("stm_aix('p2i7','p2i1',[]);");
  document.writeln("stm_aix('p2i8','p2i0',[0,'TK8 Personnel HRM','','',-1,-1,0,'http://www.tk8.com/hrm/']);");
//  document.writeln("stm_aix('p2i9','p2i1',[]);");
//  document.writeln("stm_aix('p2i10','p2i0',[0,'Product List','','',-1,-1,0,'http://www.tk8.com/products.asp']);");
//  document.writeln("stm_aix('p2i11','p2i1',[]);");
//  document.writeln("stm_aix('p2i12','p2i0',[0,'More Great Software','','',-1,-1,0,'http://www.tk8.com/others.asp']);");
//  document.writeln("stm_aix('p2i11','p2i1',[]);");
//  document.writeln("stm_aix('p2i12','p2i0',[0,'Affiliate Offerings','','',-1,-1,0,'http://www.tk8.com/others.asp']);");
  document.writeln("stm_ep();");
  document.writeln("stm_aix('p2i13','p0i0',[]);");

  document.writeln("stm_aix('p0i3','p0i2',[0,' Download ','','',-1,-1,0,'http://www.tk8.com/downloads.asp']);");
  document.writeln("stm_bpx('p3','p2',[]);");
  document.writeln("stm_aix('p3i2','p2i0',[0,'TK8 Backup','','',-1,-1,0, 'http://www.tk8.com/backup/download.asp']);");
  document.writeln("stm_aix('p3i3','p2i1',[]);");
  document.writeln("stm_aix('p3i4','p2i0',[0,'TK8 Safe','','',-1,-1,0,'http://www.tk8.com/safe/download.asp']);");
  document.writeln("stm_aix('p3i5','p2i1',[]);");
  document.writeln("stm_aix('p3i6','p2i0',[0,'TK8 StickyNotes','','',-1,-1,0,'http://www.tk8.com/stickynotes/download.asp']);");
  document.writeln("stm_aix('p3i7','p2i1',[]);");
  document.writeln("stm_aix('p3i8','p2i0',[0,'TK8 Contact CRM','','',-1,-1,0,'http://www.tk8.com/contact/download.asp']);");
  document.writeln("stm_aix('p3i9','p2i1',[]);");
  document.writeln("stm_aix('p3i10','p2i0',[0,'TK8 Personnel HRM','','',-1,-1,0,'http://www.tk8.com/hrm/download.asp']);");
//  document.writeln("stm_aix('p3i11','p2i1',[]);");
//  document.writeln("stm_aix('p3i12','p2i0',[0,'Printable Manuals','','',-1,-1,0,'http://www.tk8.com/manuals_printable.asp']);");
  document.writeln("stm_ep();");
  document.writeln("stm_aix('p3i13','p0i0',[]);");
  
  
  document.writeln("stm_aix('p0i4','p0i2',[0,' Purchase ','','',-1,-1,0,'http://www.tk8.com/store.asp']);");
  document.writeln("stm_bpx('p4','p2',[]);");
  document.writeln("stm_aix('p4i0','p2i0',[0,'TK8 Backup','','',-1,-1,0,'http://www.tk8.com/backup/order.asp?src=bw1']);");
  document.writeln("stm_aix('p4i1','p2i1',[]);");
  document.writeln("stm_aix('p4i2','p2i0',[0,'TK8 Safe','','',-1,-1,0,'http://www.tk8.com/safe/order.asp?src=sw1']);");
//  document.writeln("stm_aix('p4i3','p2i1',[]);");
  document.writeln("stm_aix('p4i4','p2i0',[0,'TK8 StickyNotes Pro','','',-1,-1,0, 'http://www.tk8.com/stickynotes/order.asp?src=sw1']);");
  document.writeln("stm_aix('p4i5','p2i1',[]);");
  document.writeln("stm_aix('p4i6','p2i0',[0,'TK8 Contact CRM','','',-1,-1,0, 'http://www.tk8.com/store.asp?product=contact&par=ml4','_top']);");
  document.writeln("stm_aix('p4i7','p2i1',[]);");
  document.writeln("stm_aix('p4i8','p2i0',[0,'TK8 Personnel HRM','','',-1,-1,0, 'http://www.tk8.com/store.asp?product=personnel&par=ml5']);");
//  document.writeln("stm_aix('p4i9','p2i1',[]);");
//  document.writeln("stm_aix('p4i10','p2i0',[0,'Offers & Bundles', '','',-1,-1,0,'http://www.tk8.com/offers.asp']);");

//  document.writeln("stm_aix('p4i9','p2i1',[]);");
//  document.writeln("stm_aix('p4i10','p2i0',[0,'Upgrades', '','',-1,-1,0,'http://www.tk8.com/offers.asp']);");

//  document.writeln("stm_aix('p4i11','p2i1',[]);");
//  document.writeln("stm_aix('p4i12','p2i0',[0,'Addtional Services', '','',-1,-1,0,'http://www.tk8.com/store_upgrades.asp']);");
//upgrades submenüü: igale tootele oma...

document.writeln("stm_ep();");
  document.writeln("stm_aix('p4i11','p0i0',[]);");
  
  
  document.writeln("stm_aix('p0i5','p0i2',[0,' Support ','','',-1,-1,0,'http://www.tk8.com/support.asp']);");
  document.writeln("stm_bpx('p5','p2',[1,4,-10,4,0,3,7,7]);");
  document.writeln("stm_aix('p5i2','p2i0',[0,'Knowledgebase / FAQ','','',-1,-1,0, 'http://www.tk8.com/support_faq.asp','_self','','','http://www.tk8.com/images/menu/a1.gif','http://www.tk8.com/images/menu/a1w.gif',0,0,0,'http://www.tk8.com/images/menu/a2.gif','http://www.tk8.com/images/menu/a2w.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('p9','p2',[1,4,175,-20]);");
      document.writeln("stm_aix('p9i0','p2i0',[0,'TK8 Backup','','',-1,-1,0,'http://www.tk8.com/backup/faq.asp']);");
      document.writeln("stm_aix('p9i1','p2i1',[]);");
      document.writeln("stm_aix('p9i10','p2i0',[0,'TK8 Safe','','',-1,-1,0,'http://www.tk8.com/safe/faq.asp']);");
      document.writeln("stm_aix('p9i1','p2i1',[]);");
      document.writeln("stm_aix('p9i10','p2i0',[0,'TK8 StickyNotes','','',-1,-1,0,'http://www.tk8.com/stickynotes/faq.asp']);");
      document.writeln("stm_aix('p9i1','p2i1',[]);");
      document.writeln("stm_aix('p9i10','p2i0',[0,'TK8 Contact CRM','','',-1,-1,0,'http://www.tk8.com/contact/faq.asp']);");
      document.writeln("stm_aix('p9i1','p2i1',[]);");
      document.writeln("stm_aix('p9i10','p2i0',[0,'TK8 Personnel HRM','','',-1,-1,0,'http://www.tk8.com/hrm/faq.asp']);");
      document.writeln("stm_aix('p9i1','p2i1',[]);");
      document.writeln("stm_aix('p9i10','p2i0',[0,'Orders & Ordering','','',-1,-1,0,'http://www.tk8.com/store_faq.asp']);");
      document.writeln("stm_ep();");
  document.writeln("stm_aix('p5i3','p2i1',[]);");
  document.writeln("stm_aix('p5i4','p2i0',[0,'Ask your question!', '','',-1,-1,0,'http://www.tk8.com/support.asp']);");
  document.writeln("stm_aix('p5i3','p2i1',[]);");
  document.writeln("stm_aix('p5i4','p2i0',[0,'Request lost license info','','',-1,-1,0,'http://www.tk8.com/support_lostkey.asp']);");
  document.writeln("stm_ep();");
  document.writeln("stm_aix('p5i5','p0i0',[]);");
  
  
  document.writeln("stm_aix('p0i6','p0i2',[0,' Company ','','',-1,-1,0,'http://www.tk8.com/company.asp']);");
  document.writeln("stm_bpx('p6','p2',[1,4,-10,4,0,3,7,7]);");
  document.writeln("stm_aix('p6i0','p2i0',[0,'Contact Us','','',-1,-1,0,'http://www.tk8.com/company_contacts.asp']);");
  document.writeln("stm_aix('p6i1','p2i1',[]);");
  document.writeln("stm_aix('p6i2','p2i0',[0,'About Us','','',-1,-1,0,'http://www.tk8.com/company.asp']);");
  document.writeln("stm_aix('p6i3','p2i1',[]);");
  document.writeln("stm_aix('p6i4','p2i0',[0,'Press Room','','',-1,-1,0,'http://www.tk8.com/company_press.asp']);");
  document.writeln("stm_aix('p6i5','p2i1',[]);");
  document.writeln("stm_aix('p6i6','p2i0',[0,'Newsletter','','',-1,-1,0,'http://www.tk8.com/newsletter.asp']);");
  document.writeln("stm_aix('p6i7','p2i1',[]);");
  document.writeln("stm_aix('p6i8','p2i0',[0,'Business Development','','',-1,-1,0, 'http://www.tk8.com/company_businessdev.asp','_self','','','http://www.tk8.com/images/menu/a1.gif','http://www.tk8.com/images/menu/a1w.gif',0,0,0,'http://www.tk8.com/images/menu/a2.gif', 'http://www.tk8.com/images/menu/a2w.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('p11','p2',[1,4,180,-20]);");
      document.writeln("stm_aix('p11i0','p2i0',[0,'Reseller Program','','',-1,-1,0,'http://www.tk8.com/company_resellers.asp']);");
      document.writeln("stm_aix('p11i1','p2i1',[]);");
      document.writeln("stm_aix('p11i2','p2i0',[0,'Affiliate Program','','',-1,-1,0,'http://www.tk8.com/company_affiliates.asp']);");
      document.writeln("stm_aix('p11i3','p2i1',[]);");
      document.writeln("stm_aix('p11i4','p2i0',[0,'OEM Program','','',-1,-1,0,'http://www.tk8.com/company_oem.asp']);");
      document.writeln("stm_aix('p11i5','p2i1',[]);");
      document.writeln("stm_aix('p11i6','p2i0',[0,'Branding','','',-1,-1,0,'http://www.tk8.com/company_branding.asp']);");
      document.writeln("stm_aix('p11i7','p2i1',[]);");
      document.writeln("stm_aix('p11i8','p2i0',[0,'Acquisitions','','',-1,-1,0,'http://www.tk8.com/company_acqusitions.asp']);");
      document.writeln("stm_ep();");
  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 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)
}


