/***********************************************
* AnyLink Drop Down Menu-  Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="http://www.securepaynet.net/gdshop/traffic_blazer/landing.asp?ci=1800&prog_id=jasontd" title="Increase webtraffic">Increase Webtraffic</a>'
menu1[1]='<a href="../../js/webdesign_section_4.html" title="Website Design & Developement">Website Design & Developement</a>'
//menu1[2]='<a href="../../js/hsphere.html" title="H-sphere License">H-sphere License</a>'
menu1[2]='<a href="../../js/affiliate_program.html" title="Affiliate Programs">Affiliate Programs</a>'
menu1[3]='<a href="../../js/ssl_certificates.html" title="SSL Certificates">SSL Certificates</a>'
menu1[4]='<a href="../../js/domain_name_registration.html" title="Domain Name Registration">Domain Name Registration</a>'
menu1[5]='<a href="../../js/merchant_accounts.html" title="Merchant Account">Merchant Account</a>'
//menu1[6]='<a href="../../js/hack_guardian.html" title="Hack Guardian">Hack Guardian</a>'
//menu1[7]='<a href="../../js/voip_phone.html" title="VOIP Phone Service">VOIP Phone Service</a>'
menu1[8]='<a href="../../js/reseller_services.html" title="Reseller Services">Reseller Services</a>'


//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="../../js/value_linux_hosting_plans.html" title="Linux Hosting Plans">Linux Hosting Plans</a>'
menu2[1]='<a href="../../js/windows_plans.html" title="Windows Hosting Plans">Windows Hosting Plans</a>'
menu2[2]='<a href="../../js/fastez_site_hosting.html" title="FastEzSite Hosting Plans" >FastEzSite Hosting</a>'
menu2[3]='<a href="../../js/reseller_plans.html" title="Reseller Plans">Reseller Plans</a>'
menu2[4]='<a href="../../js/ms_exchange_hosting_bronze.html" title="MS Exchange Hosting Plans">MS Exchange Hosting Plans</a>'
menu2[5]='<a href="../../js/windows_linux_vps_hosting.html" title="VPS Hosting Plans">VPS Hosting Plans</a>'
menu2[6]='<a href="../../js/dedicated_cloud_server_plans.html" title="Cloud Dedicated Servers">Cloud Dedicated Servers</a>'
menu2[7]='<a href="../../js/ecommerce_hosting.html" title="Dedicated Plans">Ecommerce Hosting</a>'
menu2[8]='<a href="../../js/email_plans.html" title="Email Hosting Plans">Email Hosting Plans</a>'


var menu3=new Array()
menu3[0]='<a href="../../js/ournetwork.html" title="Our Network">Our Network</a>'
menu3[1]='<a href="../../js/history.html" title="History">History</a>'
menu3[2]='<a href="../../js/testimonial.html" title="Testimonials">Testimonials</a>'
menu3[3]='<a href="../../js/server_specifications.html" title="Server Specifications">Server Specifications</a>'
menu3[4]='<a href="../../js/before_you_buy.html" title="Before You Buy">Before You Buy</a>'
menu3[5]='<a href="../../js/policy_au.html" title="Acceptable Use Policy(AUP)">Acceptable Use Policy(AUP)</a>'
menu3[6]='<a href="../../js/policy_spam.html" title=" Spam Policy"> Spam Policy</a>'


var menu4=new Array()
menu4[0]='<a href="http://ourinternet.us/support/parallels-hsphere-3.3-user-guide/index.htm" title="User  Guide">User  Guide</a>'
menu4[1]='<a href="http://ourinternet.us/support/parallels-hsphere-3.3-reseller-guide/index.htm" title="Reseller Guide">Reseller Guide</a>'
menu4[2]='<a href="http://ourinternet.us/clientarea/hc_step01.php" title="Initial Reseller Setup">Initial Reseller Setup</a>'
menu4[3]='<a href="http://ourinternet.us/clientarea/online_video_tutorials.html" title="Help Movies">Help Movies</a>'
menu4[4]='<a href="http://ourinternet.us/e107/news.php" title="ourinternet News">Ourinternet News</a>'
menu4[5]='<a href="http://ourinternet.us/wordpress/?cat=9" title="Server Status">Server Status</a>'



var menu15=new Array()

var menuleft1=new Array()
menuleft1[0]='<li class="link"><a href="../../value_linux_hosting_plans.html" title="Linux Hosting">Linux Hosting Plans</a></li>'
/*menuleft1[1]='<li class="bbr"><img src="../../js/images/pre_sub.gif" /></li>'*/
menuleft1[1]='<li class="link"><a href="../../windows_plans.html" title="Windows Hosting" >Windows Hosting</a></li>'
menuleft1[2]='<li class="link"><a href="../../fastez_site_hosting.html" title="FastEzSite Hosting" >FastEzSite Hosting</a></li>'
/*menuleft1[3]='<li class="bbr"><img src="../../js/images/pre_sub.gif" /></li>'*/
menuleft1[3]='<li class="link"><a href="../../linux_vs_windows_hosting.html" title="Windows vs Linux" >Windows vs Linux ?</a></li>'
menuleft1[4]='<li class="link"><a href="../../cloud_hosting.html" title="What is the Cloud?" >What is the Cloud?</a></li>'

	
var menuwidth='' //default menu width
var menubgcolor=''  //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="visibility:hidden;width:'+menuwidth+';background-color:'+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="-500px"
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 topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
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){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
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 dropdownleft(obj, e, menucontents, menuwidth, left){
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.y=dropmenuobj.y-35;
dropmenuobj.x=dropmenuobj.x+left;
dropmenuobj.style.border="1px solid #A4C5FB";
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

