//---------------------------------------------
// Page Style for dropdown menus
//---------------------------------------------
document.write("<style type=\"text/css\" media=\"screen\">");
document.write("#noprint      {}");
document.write("#printonly    {display:none;}");
document.write("#menu, #menu ul { padding: 0; margin: 0; list-style: none; line-height: 1; }");
document.write("#menu a { display: block; width: 90; }");
document.write("#menu li { float: left; width: 90; }");
document.write("#menu li ul { position: absolute; border: solid 1px gray; background: lightblue; width: 90; left: -999em; padding: 2; }");
document.write("#menu li:hover ul, #menu li.sfhover ul { left: auto; }");
document.write("#content { clear: left;	color: #ccc; }");
document.write("</style>");

document.write("<style type=\"text/css\" media=\"print\">");
document.write("#noprint      {display:none;}");
document.write("#printonly    {}");
document.write("#menu, #menu ul { padding: 0; margin: 0; list-style: none; line-height: 1; }");
document.write("#menu a { display: block; width: 90; }");
document.write("#menu li { float: left; width: 90; }");
document.write("#menu li ul { position: absolute; border: solid 1px gray; background: lightblue; width: 90; left: -999em; padding: 2; }");
document.write("#menu li:hover ul, #menu li.sfhover ul { left: auto; }");
document.write("#content { clear: left;	color: #ccc; }");
document.write("</style>");

function addMenus()
{
  var i,j,d=document,t=document.getElementsByTagName("UL");
  for(j=0;j<t.length;j++)
  {
    for(i=0;i<t[j].childNodes.length;i++)
    {
      n=t[j].childNodes[i];
      if(n.nodeName=="LI")
      {
        n.onmouseover =
          function()
          {
            this.className+=" sfhover";
          }
        n.onmouseout =
          function()
          {
            this.className=this.className.replace(" sfhover", "");
          }
      }
    }
  }
}
// Load menus when page loads
if (window.attachEvent) window.attachEvent("onload", addMenus);

//--------------------------------------------
// HomePage Picture Buttons
//--------------------------------------------
var i,d=document;
d.n=new Array();
d.m=new Array();

function preload()
{
  var a=preload.arguments;
  if(d.images)
  {
    for(i=0;i<(a.length/2);i++)
    {
      d.n[i]=new Image;
      d.n[i].src=a[i*2];
      d.m[i]=new Image;
      d.m[i].src=a[i*2+1];
    }
  }
}
function mOut()
{
  var i,a=mOut.arguments;
  for(i=0;i<a.length;i++) eval('d.p'+a[i]+'.src=d.m['+a[i]+'].src');
  return true;
}
function mOver()
{
  var i,a=mOver.arguments;
  for(i=0;i<a.length;i++) eval('d.p'+a[i]+'.src=d.n['+a[i]+'].src');
  return true;
}

//--------------------------------------------
// Dropdown Menu Buttons
//--------------------------------------------
function menulink(pTitle,pLink)
{
  document.write("   <li><INPUT TYPE=button STYLE=\"font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color: black; background: lightblue; height: 25px; width: 112px\" onmouseover=\"javascript:this.style.backgroundColor='#EEE2C6';\" onmouseout=\"javascript:this.style.backgroundColor='lightblue';\" WIDTH=\"112\" VALUE=\""+pTitle+"\" ONCLICK=\"window.location='"+pLink+"';\"><BR></li>");
}

//--------------------------------------------
// Display The Header
//--------------------------------------------
function displayHeader()
{
  document.write("<center>");
  document.write(" <table width=99% cellpadding=0 cellspacing=0><tr>");
  document.write("  <td width=75> <A HREF=\"http://www.cuberoot.biz\"><image src=\"images/titleleft.jpg\" alt=\"CubeRoot Ltd.\" width=75 height=60 border=0></A></td>");
  document.write("  <td width=50%><A HREF=\"index.html\"><image src=\"images/titlebar.jpg\"   width=\"100%\" height=60 border=0></A></td>");
  document.write("  <td width=403><A HREF=\"index.html\"><image src=\"images/title.jpg\" alt=\"NetCommander\" width=403 height=60 border=0></A></td>");
  document.write("  <td width=50%><A HREF=\"index.html\"><image src=\"images/titlebar.jpg\"   width=\"100%\" height=60 border=0></A></td>");
  document.write("  <td width=75> <A HREF=\"http://www.cuberoot.biz\"><image src=\"images/titleright.jpg\" width=75     height=60 border=0></A></td>");
  document.write(" </tr></table>");
  document.write(" <BR>");
  document.write(" <table id=\"noprint\" width=99% cellpadding=0 cellspacing=0><tr>");
  document.write("  <td width=  5><image src=\"images/bardivA.jpg\" width=5 height=21></td>");
  document.write("  <td width=50%><image src=\"images/bar.jpg\" width=\"100%\" height=23></td>");
  document.write("  <td width=90><ul id=\"menu\"><li><A HREF=\"index.html\"><image src=\"images/tool1.jpg\" border=0 width=90 height=21></A><ul>");
  menulink("NetCommander","index.html");
  menulink("CubeRoot","http://www.cuberoot.biz");
  document.write("  </ul></li></ul></td>");
  document.write("  <td width=90><ul id=\"menu\"><li><A HREF=\"products.html\"><image src=\"images/tool2.jpg\" border=0 width=90 height=21></A><ul>");
  menulink("Index",              "products.html");
  menulink("Key Features",       "server_room_temperature.html");
  menulink("Base Range",         "base_range.html");
  menulink("Sensors",            "sensors.html");
  menulink("Management Solution","management.html");
  menulink("Environment Monitor","computer_room_temperature.html");
  menulink("Building Management","enterprise.html");
  menulink("Energy Monitoring",  "energy.html");
  menulink("Fridge Monitor",     "healthcare.html");
  menulink("Security",           "security.html");
  menulink("Industrial Control", "industrial.html");
  menulink("Education",          "educational.html");
  menulink("Opportunity",        "opportunity.html");
  document.write("  </ul></li></ul></td>");
  document.write("  <td width=90><ul id=\"menu\"><li><A HREF=\"news.html\"><image src=\"images/tool3.jpg\" border=0 width=90 height=21></A><ul>");
  menulink("Latest News","news.html");
  document.write("  </ul></li></ul></td>");
  document.write("  <td width=90><ul id=\"menu\"><li><A HREF=\"http://www.cuberoot.biz\"><image src=\"images/tool4.jpg\" border=0 width=90 height=21></A><ul>");
  menulink("CubeRoot Home","http://www.cuberoot.biz/");
  menulink("About Us",     "http://www.cuberoot.biz/about/about.html");
  document.write("  </ul></li></ul></td>");
  document.write("  <td width=90><ul id=\"menu\"><li><A HREF=\"support.html\"><image src=\"images/tool5.jpg\" border=0 width=90 height=21></A><ul>");
  menulink("User Manuals",     "support.html");
  menulink("SNMP MIB",         "support.html");
  menulink("Technical Support","support.html");
  document.write("  </ul></li></ul></td>");
  document.write("  <td width=90><ul id=\"menu\"><li><A HREF=\"purchase.html\"><image src=\"images/tool6.jpg\" border=0 width=90 height=21></A><ul>");
  menulink("Base Units",         "purchase.html#BaseUnits");
  menulink("Sensors",            "purchase.html#Sensors");
  menulink("Server Monitoring",  "purchase.html#Server");
  menulink("Cameras",            "purchase.html#Cameras");
  menulink("Mains Control",      "purchase.html#MainsControl");
  menulink("Cables",             "purchase.html#Cables");
  menulink("Extension Options",  "purchase.html#Options");
  menulink("Additional Services","purchase.html#Services");
  document.write("  </ul></li></ul></td>");
  document.write("  <td width=90><ul id=\"menu\"><li><A HREF=\"contact.html\"><image src=\"images/tool7.jpg\" border=0 width=90 height=21></A><ul>");
  menulink("Contact Details","contact.html");
  document.write("  </ul></li></ul></td>");
  document.write("  <td width=50%><image src=\"images/bar.jpg\" width=\"100%\" height=23></td>");
  document.write("  <td width= 6><image src=\"images/bardivB.jpg\" width=6 height=21></td>");
  document.write(" </tr></table>");
  document.write("</center>");
  document.write("<BR>");
}

//--------------------------------------------
// Display The Footer
//--------------------------------------------
function displayFooter()
{
  document.write("<center>");
  document.write(" <BR>");
  document.write(" <DIV id=\"noprint\">");
  document.write(" <font size=-2>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"computer_room_temperature.html\">Environment</A>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"enterprise.html\">Building&nbsp;Management</A>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"healthcare.html\">HealthCare</A>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"educational.html\">Education</A>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"industrial.html\">Industrial</A>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"security.html\">Security</A>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"energy.html\">Energy&nbsp;Monitoring</A>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"opportunity.html\">Opportunity</A>");
  document.write("  <BR>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"http://www.netcommander.biz\">Home</A>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"server_room_temperature.html\">Key&nbsp;Features</A>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"base_range.html\">Base&nbsp;Range</A>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"products.html\">Products</A>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"news.html\">News</A>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"http://www.cuberoot.biz\">Company</A>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"http://www.cuberoot.biz/support/support.html\">Support</A>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"purchase.html\">Purchase</A>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"contact.html\">Contact</A>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"sitemap.xml\">Site Map</A>");
  document.write("  <A style=\"text-decoration:none\" HREF=\"http://www.energy-saving.me.uk\">Energy Saving Products</A>");
  document.write(" </font>");
  document.write(" <BR>");
  document.write(" </DIV>");
  document.write(" <DIV id=\"printonly\">");
  document.write(" <font size=-2>");
  document.write("CubeRoot Ltd: 18 Melton Street Leicester, LE1 3NB.&nbsp;&nbsp;Contact: Mr Bob Marles +44 0116 262 7370&nbsp;&nbsp;Email: sales@cuberoot.biz");
  document.write(" </font>");
  document.write(" </DIV>");
  document.write(" <font size=-2>&copy; Copyright CubeRoot Ltd. 2006</font>");
  document.write("</center>");
}


