//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="http://iprevailed.com/services/" class="topnavTextLink">Overview</a>'
menu1[1]='<a href="http://iprevailed.com/hosting/" class="topnavTextLink">Web Hosting</a>'
menu1[2]='<a href="http://iprevailed.com/templates/" class="topnavTextLink">Web Site Templates</a>'
menu1[3]='<a href="http://iprevailed.com/services/marketing.php" class="topnavTextLink">Web Marketing</a>'
menu1[4]='<a href="http://iprevailed.com/hosting/email.php" class="topnavTextLink">E-Mail Hosting</a>'
menu1[5]='<a href="http://iprevailed.com/domains/" class="topnavTextLink">Domain Registration</a>'
//menu1[6]='<a href="http://iprevailed.com/services/ssl.php" class="topnavTextLink">SSL Certificates<img src="http://iprevailed.com/images/trans.gif" height="5" width="45" border="0"></a>'
//menu1[7]='<a href="http://iprevailed.com/services/merchant.php" class="topnavTextLink">Merchant Accounts<img src="http://iprevailed.com/images/trans.gif" height="5" width="21" border="0"></a><br><img src="http://iprevailed.com/images/trans.gif" height="5" width="10" border="0">'

//Contents for menu 2
var menu2=new Array()
menu2[0]='<a href="http://iprevailed.com/support/" class="topnavTextLink">Overview</a>'
menu2[1]='<a href="http://iprevailed.com/cgi-bin/support/pdesk.cgi" class="topnavTextLink">24/7 Help Desk</a>'
menu2[2]='<a href="http://iprevailed.com/support/live_help.php" class="topnavTextLink">Live Help</a>'
menu2[3]='<a href="http://iprevailed.com/cgi-bin/support/kb.cgi" class="topnavTextLink">Knowledge Base</a>'
//menu2[4]='<a href="http://iprevailed.com/support/help/" class="topnavTextLink">Demos & Guides<img src="http://iprevailed.com/images/trans.gif" height="5" width="46" border="0"></a><br><img src="http://iprevailed.com/images/trans.gif" height="5" width="10" border="0">'
		
//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="http://iprevailed.com/resources/" class="topnavTextLink">Overview</a>'
//menu3[0]='<a href="http://iprevailed.com/resources/whatis.php" class="topnavTextLink">What Is Web Hosting?<img src="http://iprevailed.com/images/trans.gif" height="5" width="15" border="0"></a>'
//menu3[1]='<a href="http://iprevailed.com/resources/site_tool_box.php" class="topnavTextLink">Help Switching Host<img src="http://iprevailed.com/images/trans.gif" height="5" width="20" border="0"></a>'
//menu3[2]='<a href="http://iprevailed.com/resources/first_steps.php" class="topnavTextLink">5 First Steps<img src="http://iprevailed.com/images/trans.gif" height="5" width="65" border="0"></a>'
//menu3[3]='<a href="http://iprevailed.com/resources/site_tool_box.php" class="topnavTextLink">Site Tool Box<img src="http://iprevailed.com/images/trans.gif" height="5" width="58" border="0"></a>'
//menu3[4]='<a href="http://iprevailed.com/resources/downloads.php" class="topnavTextLink">Downloads<img src="http://iprevailed.com/images/trans.gif" height="5" width="76" border="0"></a>'
menu3[1]='<a href="http://iprevailed.com/resources/web_elements/" class="topnavTextLink">Web Elements</a>'
		
//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="http://iprevailed.com/network/status.php" class="topnavTextLink">Network Status</a>'
menu4[1]='<a href="http://iprevailed.com/network/" class="topnavTextLink">Data Center</a>'
		
//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="http://iprevailed.com/company/about.php" class="topnavTextLink">About Us</a>'
menu5[1]='<a href="http://iprevailed.com/company/legal/" class="topnavTextLink">Legal</a>'
menu5[2]='<a href="http://iprevailed.com/company/testimonials/index.php" class="topnavTextLink">Testimonials</a>'
//menu5[3]='<a href="http://iprevailed.com/company/affiliates/" class="topnavTextLink">Affiliate Program<img src="http://iprevailed.com/images/trans.gif" height="5" width="40" border="0"></a>'
menu5[3]='<a href="http://iprevailed.com/company/contact.php" class="topnavTextLink">Contact Us</a>'
		
var menuwidth='165px' //default menu width
var menubgcolor='#ffffff'// url(http://iprevailed.com/images/org-90.gif)  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="border-width:1px; border-style:solid; border-top-color:#666666; border-left-color:#666666; border-right-color:#000000; border-bottom-color:#000000; visibility:hidden; width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

//document.write('<div id="dropmenudiv" style="visibility:hidden; background-repeat: no-repeat; background-position: left bottom; width:'+menuwidth+';background-image:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){

if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

<!---------------------------->

var dragapproved=false
var minrestore=0
var initialwidth,initialheight
var ie5=document.all&&document.getElementById
var ns6=document.getElementById&&!document.all

function iecompattest(){
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function drag_drop(e){
if (ie5&&dragapproved&&event.button==1){
document.getElementById("dwindow").style.left=tempx+event.clientX-offsetx+"px"
document.getElementById("dwindow").style.top=tempy+event.clientY-offsety+"px"
}
else if (ns6&&dragapproved){
document.getElementById("dwindow").style.left=tempx+e.clientX-offsetx+"px"
document.getElementById("dwindow").style.top=tempy+e.clientY-offsety+"px"
}
}

function initializedrag(e){
offsetx=ie5? event.clientX : e.clientX
offsety=ie5? event.clientY : e.clientY
document.getElementById("dwindowcontent").style.display="none" //extra
tempx=parseInt(document.getElementById("dwindow").style.left)
tempy=parseInt(document.getElementById("dwindow").style.top)

dragapproved=true
document.getElementById("dwindow").onmousemove=drag_drop
}

function loadwindow(url,width,height){
if (!ie5&&!ns6)
window.open(url,"","width=width,height=height,scrollbars=1")
else{
document.getElementById("dwindow").style.display=''
document.getElementById("dwindow").style.width=initialwidth=width+"px"
document.getElementById("dwindow").style.height=initialheight=height+"px"
document.getElementById("dwindow").style.left="30px"
document.getElementById("dwindow").style.top=ns6? window.pageYOffset*1+30+"px" : iecompattest().scrollTop*1+30+"px"
document.getElementById("cframe").src=url
}
}

function maximize(){
if (minrestore==0){
minrestore=1 //maximize window
document.getElementById("maxname").setAttribute("src","http://iprevailed.com/images/restore.gif")
document.getElementById("dwindow").style.width=ns6? window.innerWidth-20+"px" : iecompattest().clientWidth+"px"
document.getElementById("dwindow").style.height=ns6? window.innerHeight-20+"px" : iecompattest().clientHeight+"px"
}
else{
minrestore=0 //restore window
document.getElementById("maxname").setAttribute("src","http://iprevailed.com/images/max.gif")
document.getElementById("dwindow").style.width=initialwidth
document.getElementById("dwindow").style.height=initialheight
}
document.getElementById("dwindow").style.left=ns6? window.pageXOffset+"px" : iecompattest().scrollLeft+"px"
document.getElementById("dwindow").style.top=ns6? window.pageYOffset+"px" : iecompattest().scrollTop+"px"
}

function closeit(){
document.getElementById("dwindow").style.display="none"
}

function stopdrag(){
dragapproved=false;
document.getElementById("dwindow").onmousemove=null;
document.getElementById("dwindowcontent").style.display="" //extra
}
