function SwitchMenu(obj){
if(document.getElementById){
var el = document.getElementById(obj);
el.className = 'navblueon';
}
}
function SwitchMenu2(obj){
if(document.getElementById){
var el = document.getElementById(obj);
el.className = 'navblue';
}
}
function showSubNav(obj){
var subnav;
var thisobj;
if(document.getElementById){
thisobj = "document.getElementById('" + obj + "Menu')";
}
else if(document.all){
thisobj = "document.all['" + obj + "Menu']";
}
subnav = eval(thisobj);
if (subnav){
subnav.style.visibility = 'visible';	
}
}
function hideSubNav(obj){
var subnav;
var thisobj;
if(document.getElementById){
thisobj = "document.getElementById('" + obj + "Menu')";
}
else if(document.all){
thisobj = "document.all['" + obj + "Menu']";
}
subnav = eval(thisobj);
if (subnav){
subnav.style.visibility = 'hidden';	
}
}
var arSubNav = new Array();
arSubNav[0] = new Array("td1",20,110," ","/"," ","/");
arSubNav[1] = new Array("td2",80,140,"Webhosting Plans","webhosting_plan.html","Custom Hosting","custom_hosting.html");
arSubNav[2] = new Array("td3",210,95,"Starter","server_starter.html","Pro","server_pro.html","Enterprise","server_enterprise.html");
arSubNav[3] = new Array("td4",300,105,"Overview","reseller_overview.html","Reseller Plans","reseller_plans.html");
arSubNav[4] = new Array("td5",400,130,"Register Domain","domain_register.php","Domain Prices","domain_prices.html");
arSubNav[5] = new Array("td6",510,140,"SSL Certificates","ssl_certificates.html","Shopping Carts", "shopping_carts.html");
arSubNav[6] = new Array("td7",630,105,"Overview","overview_hostandserver.html","Data Centre","data_centre.html","Testimonials", "testimonials.html");

function writeSubNav(bgc, rbgc, textcolor, rtextcolor, linecolor, bordercolor){
if ((document.all) || (document.getElementById)){
var j = 0;
var subnav = "";
for (j = 0; j < arSubNav.length; j++){
subnav += "<div id=\"" + arSubNav[j][0] + "Menu\" style=\"z-index:999;position: absolute; filter: Alpha(Opacity=100); cursor: hand; left: " + arSubNav[j][1] +  "; width: " + arSubNav[j][2] + ";  visibility: hidden\" onmouseover=\"showSubNav('" + arSubNav[j][0] + "'); SwitchMenu('" + arSubNav[j][0] + "');\" onmouseout=\"hideSubNav('" + arSubNav[j][0] + "'); SwitchMenu2('" + arSubNav[j][0] + "')\">";
subnav += "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"" + arSubNav[j][2] + "\">";
subnav += "<tr>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"spacer.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td colspan=\"1\" bgcolor=\"295c90\" height=\"1\"><img src=\"spacer.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"spacer.gif\" width=\"1\" height=\"1\"></td>";
subnav += "</tr>";
subnav += "<tr>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"spacer.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td colspan=\"1\" bgcolor=\"cccccc\" height=\"1\"><img src=\"spacer.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"spacer.gif\" width=\"1\" height=\"1\"></td>";
subnav += "</tr>";
subnav += "<tr>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"spacer.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td colspan=\"1\" bgcolor=\"ebebeb\" height=\"1\"><img src=\"spacer.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"spacer.gif\" width=\"1\" height=\"1\"></td>";
subnav += "</tr>";
subnav += "<tr>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"spacer.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td colspan=\"1\" bgcolor=\"f7f7f7\" height=\"1\"><img src=\"spacer.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"spacer.gif\" width=\"1\" height=\"1\"></td>";
subnav += "</tr>";
for (i=3; i < arSubNav[j].length-1; i=i+2){
subnav += "<tr>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"spacer.gif\" width=\"1\" height=\"22\"></td>";
subnav += "<td background=\"navstripe.gif\" width=\"100%\" align=\"left\" bgcolor=\"" + bgc + "\" class=\"\" onClick=\"document.location.href='" + arSubNav[j][i+1] + "'\" onmouseover=\"this.bgColor='" + rbgc + "';this.style.color='" + rtextcolor+ "';\" onmouseout=\"this.bgColor='" + bgc + "';this.style.color='" + textcolor + "'\" style=\"color: " + textcolor + "\" nowrap><div style=\"padding-left:0px;\"><img src=\"spacer.gif\" width=\"10\" height=\"1\"><img src=\"tiny_blarrow.gif\">&nbsp;&nbsp;" + arSubNav[j][i] + "</a></div></td>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"spacer.gif\" width=\"1\" height=\"22\"></td>";
subnav += "</tr>";
}
subnav += "<tr>";
subnav += "<td align=\"left\" colspan=\"3\" height=\"6\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr><td rowspan=\"6\"><img src=\"btm.gif\" width=\"6\" height=\"6\"></td><td width=\"100%\" height=\"1\" bgcolor=\"f8f8f8\"><img src=\"spacer.gif\" width=\"1\" height=\"1\"></td><td rowspan=\"6\"><img src=\"btm2.gif\" width=\"6\" height=\"6\"></td></tr><tr><td height=\"1\" bgcolor=\"ffffff\"></td></tr><tr><td height=\"1\" bgcolor=\"f8f8f8\"></td></tr><tr><td height=\"1\" bgcolor=\"ffffff\"></td></tr><tr><td height=\"1\" bgcolor=\"f8f8f8\"></td></tr><tr><td height=\"1\" bgcolor=\"" + bordercolor + "\"></td></tr></table></td>";
subnav += "</tr>";
subnav += "</table>";
subnav += "</div>";
}
document.write(subnav);
}
}
