
function SwitchMenu(obj){
if(document.getElementById){
var el = document.getElementById(obj);
el.className = 'mainlink';
}
}
function SwitchMenu2(obj){
if(document.getElementById){
var el = document.getElementById(obj);
el.className = 'mainlink';
}
}
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",10,111," ","/"," ","/");
arSubNav[1] = new Array("td2",215,185,"website templates","/templates/","search engine optimization","/seo.htm","tools &amp; technologies we use","/tech.htm");
arSubNav[2] = new Array("td3",340,140,"shopping carts","/ecommerce/shoppingcart.htm","merchant accounts","/ecommerce/merchantaccount.htm","fraud prevention","/ecommerce/fraudprevention.htm");
arSubNav[3] = new Array("td4",455,185,"search engine optimization","/seo.htm","Google PageRank","/pagerank.htm","email marketing","/pr/emailmanager.htm");
arSubNav[4] = new Array("td5",800,180,"live webcam south beach","/miami/webcam.htm","miami vice movie 2006","/miami/vice/","miami beach hotels","/miami/hotels/","ULTRA Music Festival DVD","/miami/ultra.htm","historic miami photos","/miami/photos.htm?cat=0","hurricane frances pictures","/miami/photos.htm?cat=1","hurricane watch","/miami/hurricanewatch.htm");
arSubNav[5] = new Array("td6",560,160,"database applications","/database/applications.php");

function writeSubNav(url, 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: pointer; left: " + arSubNav[j][1] + "px; 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 class=\"ff\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"" + arSubNav[j][2] + "\">";
subnav += "<tr>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/img/dot.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td colspan=\"1\" bgcolor=\"#295c90\" height=\"1\"><img src=\"/img/dot.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/img/dot.gif\" width=\"1\" height=\"1\"></td>";
subnav += "</tr>";
subnav += "<tr>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/img/dot.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td colspan=\"1\" bgcolor=\"#cccccc\" height=\"1\"><img src=\"/img/dot.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/img/dot.gif\" width=\"1\" height=\"1\"></td>";
subnav += "</tr>";
subnav += "<tr>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/img/dot.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td colspan=\"1\" bgcolor=\"#ebebeb\" height=\"1\"><img src=\"/img/dot.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/img/dot.gif\" width=\"1\" height=\"1\"></td>";
subnav += "</tr>";
subnav += "<tr>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/img/dot.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td colspan=\"1\" bgcolor=\"#f7f7f7\" height=\"1\"><img src=\"/img/dot.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/img/dot.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=\"/img/dot.gif\" width=\"1\" height=\"15\"></td>";
subnav += "<td background=\"/img/navstripe.gif\" width=\"100%\" align=\"left\" bgcolor=\"" + bgc + "\" class=\"\" onClick=\"document.location.href='"+ url + arSubNav[j][i+1] + "'\" onmouseover=\"this.bgColor='" + rbgc + "';this.style.color='" + rtextcolor+ "';\" onmouseout=\"this.bgColor='" + bgc + "';this.style.color='" + textcolor + "'\" style=\"color: " + textcolor + "\"><div style=\"padding-left:0px;\"><img src=\"/img/arrowBlue.png\" width=\"7\" height=\"7\" hspace=\"5\">" + arSubNav[j][i] + "</a></div></td>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/img/dot.gif\" width=\"1\" height=\"15\"></td>";
subnav += "</tr>";
}

subnav += "<tr>";
subnav += "<td background=\"/img/navstripe.gif\" align=\"left\" colspan=\"3\" height=\"6\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr><td rowspan=\"6\"><img src=\"/img/btm.gif\" width=\"6\" height=\"6\"></td><td width=\"100%\" height=\"1\" bgcolor=\"f8f8f8\"><img src=\"/img/dot.gif\" width=\"1\" height=\"1\"></td><td rowspan=\"6\"><img src=\"/img/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);
}
}