var minfo='contact';
var msupport='support';
var mmail='mail';
var mat='@';
var mbitsib='connectivetools';
var mcom='com';
var mdot='.';
var mcolon=':';
var mto='to';


var img = new Array;
img['m_home'] = new Image;
img['m_home_hi'] = new Image;
img['m_home'].src = 'img/home.jpg';
img['m_home_hi'].src = 'img/home_hi.jpg';

img['m_smartphone'] = new Image;
img['m_smartphone_hi'] = new Image;
img['m_smartphone'].src = 'img/smartphone.jpg';
img['m_smartphone_hi'].src = 'img/smartphone_hi.jpg';

img['m_ppc'] = new Image;
img['m_ppc_hi'] = new Image;
img['m_ppc'].src = 'img/ppc.jpg';
img['m_ppc_hi'].src = 'img/ppc_hi.jpg';

img['m_android'] = new Image;
img['m_android_hi'] = new Image;
img['m_android'].src = 'img/android.jpg';
img['m_android_hi'].src = 'img/android_hi.jpg';

img['m_download'] = new Image;
img['m_download_hi'] = new Image;
img['m_download'].src = 'img/download.jpg';
img['m_download_hi'].src = 'img/download_hi.jpg';

img['m_contacts'] = new Image;
img['m_contacts_hi'] = new Image;
img['m_contacts'].src = 'img/contacts.jpg';
img['m_contacts_hi'].src = 'img/contacts_hi.jpg';

function chimg(i,s) {
 document.images[i].src = s;
}

/* for pulldown (level 2) */
var current = '';
var menu_timer = null;
var menu_hide_timeout = 100;
var menu_show_timeout = 100;

function pulldown(id, show){
 if(menu_timer){ window.clearTimeout(menu_timer); }
 if(current.length>0 && show){
  tmp = document.getElementById(current);
  obj = document.getElementById('p_'+current);
  if(tmp){
   if(current == id){
    tmp.style.visibility = 'visible';
    obj.className='active';
   }else{
    tmp.style.visibility = 'hidden';
    obj.className='';
    current = '';
   }
  }  
 }
 if(!document.getElementById(id)){ return; }
 current = id;
 menu_timer = show?
 	window.setTimeout("set_visibility('"+id+"', true)", menu_show_timeout):
	window.setTimeout("set_visibility('"+id+"', false)", menu_hide_timeout);
}

function set_visibility(id, show){
 document.getElementById(id).style.visibility = show?'visible':'hidden'; 
 obj = document.getElementById('p_'+current);
 if(!show && current==id){ obj.className=''; current = ''; }  
}


function main_menu(page)
{
      document.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">");
      document.write("<tr>");

      document.write("<td><a href=\"index.html\" id=\"p_home\" onmouseover=\"chimg('pict_home',img['m_home_hi'].src);\" onmouseout=\"chimg('pict_home',img['m_home'].src);\"><img name=\"pict_home\" src=\"img/home.jpg\" width=\"54\" height=\"21\" alt=\"Home\" border=\"0\"><br></a>");
      document.write("</td>");

      document.write("<td><a href=\"#\" id=\"p_smartphone\" onmouseover=\"pulldown('smartphone',true); chimg('pict_smartphone',img['m_smartphone_hi'].src);\" onmouseout=\"pulldown('smartphone',false); chimg('pict_smartphone',img['m_smartphone'].src);\"><img name=\"pict_smartphone\" src=\"img/smartphone.jpg\" width=\"94\" height=\"21\" alt=\"Smartphone Software\" border=\"0\"><br></a>");
      document.write("      <div class=\"submenu\" id=\"smartphone\" onmouseover=\"pulldown('smartphone',true); chimg('pict_smartphone',img['m_smartphone_hi'].src);\" onmouseout=\"pulldown('smartphone',false); chimg('pict_smartphone',img['m_smartphone'].src);\">");
      document.write("         <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">");
      document.write("         <tr><td>");
      document.write("            <a href=\"alarmmaster.html\">Alarm Master for SP</a><br>");
      document.write("            <a href=\"ctscheduler.html\">CT Scheduler for SP</a><br>");
      document.write("            <a href=\"ctbirthday.html\">CT Birthday for SP</a><br>");
      document.write("            <a href=\"ctalarmclock.html\">CT AlarmClock for SP</a><br>");
      document.write("            <a href=\"switchprofile.html\">SwitchProfile! for SP</a><br>");
      document.write("            <a href=\"calljockey.html\">Call Jockey for SP</a><br>");
      document.write("            <hr size=\"1\">");
      document.write("            <a href=\"freesmart.html\">Smartphone Freeware</a><br>");
      document.write("         </td></tr>");
      document.write("         </table>");
      document.write("      </div>");
      document.write("</td>");

      document.write("<td><a href=\"#\" id=\"p_ppc\" onmouseover=\"pulldown('ppc',true); chimg('pict_ppc',img['m_ppc_hi'].src);\" onmouseout=\"pulldown('ppc',false); chimg('pict_ppc',img['m_ppc'].src);\"><img name=\"pict_ppc\" src=\"img/ppc.jpg\" width=\"78\" height=\"21\" alt=\"Pocket PC Software\" border=\"0\"><br></a>");
      document.write("      <div class=\"submenu\" id=\"ppc\" onmouseover=\"pulldown('ppc',true); chimg('pict_ppc',img['m_ppc_hi'].src);\" onmouseout=\"pulldown('ppc',false); chimg('pict_ppc',img['m_ppc'].src);\">");
      document.write("         <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">");
      document.write("         <tr><td>");
      document.write("            <a href=\"alarmmaster_ppc.html\">Alarm Master for PPC</a><br>");
      document.write("            <a href=\"ctscheduler_ppc.html\">CT Scheduler for PPC</a><br>");
      document.write("            <a href=\"ctalarmclock_ppc.html\">CT AlarmClock for PPC</a><br>");
      document.write("            <a href=\"volumeswitcher_ppc.html\">Volume Switcher for PPC</a><br>");
      document.write("            <hr size=\"1\">");
      document.write("            <a href=\"ctschedulerlt_ppc.html\">CT Scheduler Lite for PPC</a><br>");
      document.write("         </td></tr>");
      document.write("         </table>");
      document.write("      </div>");
      document.write("</td>");

      document.write("<td><a href=\"android_tmp.html\" id=\"p_android\" onmouseover=\"chimg('pict_android',img['m_android_hi'].src);\" onmouseout=\"chimg('pict_android',img['m_android'].src);\"><img name=\"pict_android\" src=\"img/android.jpg\" width=\"63\" height=\"21\" alt=\"Android\" border=\"0\"><br></a>");
      document.write("</td>");

      document.write("<td><a href=\"#\" id=\"p_download\" onmouseover=\"pulldown('download',true); chimg('pict_download',img['m_download_hi'].src);\" onmouseout=\"pulldown('download',false); chimg('pict_download',img['m_download'].src);\"><img name=\"pict_download\" src=\"img/download.jpg\" width=\"79\" height=\"21\" alt=\"Download\" border=\"0\"><br></a>");
      document.write("      <div class=\"submenu\" id=\"download\" onmouseover=\"pulldown('download',true); chimg('pict_download',img['m_download_hi'].src);\" onmouseout=\"pulldown('download',false); chimg('pict_download',img['m_download'].src);\">");
      document.write("         <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">");
      document.write("         <tr><td>");
      document.write("            <a href=\"purchase.html\">Smartphone Software</a><br>");
      document.write("            <a href=\"purchase_ppc.html\">Pocket PC Software</a><br>");
      document.write("         </td></tr>");
      document.write("         </table>");
      document.write("      </div>");
      document.write("</td>");


      document.write("<td><a href=\"contacts.html\" id=\"p_contacts\" onmouseover=\"chimg('pict_contacts',img['m_contacts_hi'].src);\" onmouseout=\"chimg('pict_contacts',img['m_contacts'].src);\"><img name=\"pict_contacts\" src=\"img/contacts.jpg\" width=\"69\" height=\"21\" alt=\"Contacts\" border=\"0\"><br></a>");
      document.write("</td>");

      document.write("   </tr>");
      document.write("   </table>");
}



function writeNews()
{

   document.write("<tr>");
   document.write("<td width=\"48\" align=\"center\" valign=\"top\"><span class=\"newshead\">Dec 10</span></td>");
   document.write("<td width=\"201\" valign=\"center\" class=\"news\">");
   document.write("<b>CT AlarmClock for Pocket PC v1.1</b> was updated. WM 6.5 and Sliding Panel plugin are supported now!");
   document.write("</td>");
   document.write("</tr>");

   document.write("<tr>");
   document.write("<td width=\"48\" align=\"center\" valign=\"top\"><span class=\"newshead\">Nov 27</span></td>");
   document.write("<td width=\"201\" valign=\"center\" class=\"news\">");
   document.write("<b>Alarm Master for Pocket PC v2.1</b> was updated. Now WM 6.5 and Sliding Panel plugin are supported!");
   document.write("</td>");
   document.write("</tr>");

   document.write("<tr>");
   document.write("<td width=\"48\" align=\"center\" valign=\"top\"><span class=\"newshead\">May 14</span></td>");
   document.write("<td width=\"201\" valign=\"center\" class=\"news\">");
   document.write("<b>CT AlarmClock for Smartphones v3.0</b> was released. Now multiple alarms are supported!");
   document.write("</td>");
   document.write("</tr>");

   document.write("<tr>");
   document.write("<td width=\"48\" align=\"center\" valign=\"top\"><span class=\"newshead\">Apr 24</span></td>");
   document.write("<td width=\"201\" valign=\"center\" class=\"news\">");
   document.write("<b>CT AlarmClock for Pocket PC v1.0</b> was released today!");
   document.write("</td>");
   document.write("</tr>");

   document.write("<tr>");
   document.write("<td width=\"48\" align=\"center\" valign=\"top\"><span class=\"newshead\">Apr 08</span></td>");
   document.write("<td width=\"201\" valign=\"center\" class=\"news\">");
   document.write("Now Pocket PC version of <b>Alarm Master</b> is available with FREE desktop Companion!. Welcome to <a href=\"alarmmaster_ppc.html\">the product page</a>!</font></b>");
   document.write("</td>");
   document.write("</tr>");

   document.write("<tr>");
   document.write("<td width=\"48\" align=\"center\" valign=\"top\"><span class=\"newshead\">Mar 31</span></td>");
   document.write("<td width=\"201\" valign=\"center\" class=\"news\">");
   document.write("<b>Alarm Master for SP</b> and <b>Alarm Master PRO for SP</b> were joined in new <b>Alarm Master v4.0 for SP</b>. Welcome to <a href=\"alarmmaster.html\">the product page</a>!</font></b>");
   document.write("</td>");
   document.write("</tr>");

}