<!--

// If you add an item to one of the dropdown menus and it 'wraps' in the menu
// because the menu is not wide enough, increase the pixel width of the menu
// The menu should re-center itself in relation to the toolbar button

var menu1_width=135 // This is the pixel width for the dropdown menu #1
var menu2_width=135 // This is the pixel width for the dropdown menu #2
var menu3_width=130 // This is the pixel width for the dropdown menu #3
var menu4_width=130 // This is the pixel width for the dropdown menu #4
var menu5_width=110 // This is the pixel width for the dropdown menu #5
var mainNumber = 5 // Number of Menus you want there to be!

var num = mainNumber+1;
hidden="hidden";
dontHideYet=false;
var currentSub = false;
var br;
function getBrowserType() {
    this.ver=navigator.appVersion
    this.dom=document.getElementById?1:0
    this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
    this.ie4=(document.all && !this.dom)?1:0;
    this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
    this.ns4=(document.layers && !this.dom)?1:0;
    this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6)
    this.name=this.ns4?'ns4':this.ns6?'ns6':this.ie4?'ie4':this.ie5?'ie5':this.ie6?'ie6':'x';
    return this
}
br=new getBrowserType();

function toggle(n) {

	if (br.dom) {
		if (n > num) {
			for (i=1; i<num; i++) {
				setTimeout("hide("+i+")",800);
			}
			dontHideYet=false;
			return false
		}
		if ((currentSub)&&(currentSub.visibility=='visible')) {
			currentSub.visibility='hidden';
		}
		for (i=1; i<num; i++) {
			document.getElementById('subItem'+i).style.visibility='hidden';
		}
		currentSub = document.getElementById('subItem'+n).style;
		currentSub.visibility = 'visible';
	} else if (br.ns4) {
		if (n > num) {
			for (i=1; i<num; i++) {
				setTimeout("hide("+i+")",800);
			}
			dontHideYet=false;
			return false
		}
		if ((currentSub)&&(currentSub.visibility=='visible')) {
			currentSub.visibility='hide';
		}
		for (i=1; i<num; i++) {
			eval('document.subItem'+i+'.visibility="hide"');
		}
		currentSub = eval('document.subItem'+n);
		currentSub.visibility = 'show';
	} else if (br.ie4) {
		if (n > num) {
			for (i=1; i<num; i++) {
				setTimeout("hide("+i+")",800);
			}
			dontHideYet=false;
			return false
		}
		if ((currentSub)&&(currentSub.visibility=='visible')) {
			currentSub.visibility='hidden';
		}
		for (i=1; i<num; i++) {
			eval('document.subItem'+i+'.style.visibility=hidden');
		}
		currentSub = eval('document.subItem'+n+'.style');
		currentSub.visibility = 'visible';
	}
}
function checkTohide(n) {
	setTimeout("hide("+n+")",1600);
}
function hide(n) {
	if (br.dom) {
		if (dontHideYet == false) {
			document.getElementById('subItem'+n).style.visibility=hidden;
		} else if (dontHideYet == true) {
			return false;
		}
	} else if (br.ns4) {
		if (dontHideYet == false) {
			eval('document.subItem'+n+'.visibility="hide"');
		} else if (dontHideYet == true) {
			return false;
		}
	} else if (br.ie4) {
		if (dontHideYet == false) {
			eval('document.subItem'+n+'.style.visibility="hide"');
		} else if (dontHideYet == true) {
			return false;
		}
	}
}

function do_top_of_menu(menuitemnum){
if (menuitemnum==1)
{menu_width=menu1_width
a=28
b=60
c='02'
}
if (menuitemnum==2)
{menu_width=menu2_width
a=178
b=54
c='04'
}


if (menuitemnum==3)
{menu_width=menu3_width
a=350
b=54
c='06'
}
if (menuitemnum==4)
{menu_width=menu4_width
a=486
b=54
c='08'
}


if (menuitemnum==5)
{menu_width=menu5_width
a=642
b=47
c='10'
}


if (br.ns4) {
var marginwidth=window.innerWidth-750
marginwidth=marginwidth/2
document.write('<layer id="subItem'+menuitemnum+'" bgcolor=white pagey=70 pagex="'+((marginwidth+a)-(menu_width/2)+b)+'" z-index="1" width="'+menu_width+'" visibility=hide onMouseOver="dontHideYet=true;" onMouseOut="toggle(num+1);">'); //NS4 Positions
} else {
if (br.ns6) {
var marginwidth=window.innerWidth-750
marginwidth=marginwidth/2
document.write('<div id="subItem'+menuitemnum+'" class="subItem" style="top:118px;width:'+((menu_width)-10)+'px;left:'+((marginwidth+a)-(menu_width/2)+b)+'px" onMouseOver="dontHideYet=true;" onMouseOut="toggle(num+1);">'); //DOM positions
} else {
if(navigator.platform.indexOf('Mac')>-1){
document.write('<div id="subItem'+menuitemnum+'" class="subItem" style="top:30px;left:'+(a-(menu_width/2)+b)+'px;width:'+menu_width+'px;" onMouseOver="dontHideYet=true;toggle(\''+menuitemnum+'\');" onMouseOut="toggle(num+1);">'); //DOM positions

}
else{
var marginwidth=document.body.clientWidth-750
marginwidth=marginwidth/2
document.write('<div id="subItem'+menuitemnum+'" class="subItem" style="top:125px;left:'+((marginwidth+a)-(menu_width/2)+b)+'px;width:'+menu_width+'px;" onMouseOver="dontHideYet=true;" onMouseOut="toggle(num+1);">'); //DOM positions
}
}
}}


function do_bottom_of_menu(){

if (br.ns4) {document.write('</layer>')
} else {
document.write('</div>')
}
}


function write_div1(){
	
	document.write(" <div><a class=\"menu\" href=\"/hosting/\">&raquo; hosting overview</a></div><div style=\"padding-top: 3px;\"><a  class=\"menu\" href=\"https://secure.digitalis.com.au/hosting/order.php\">&raquo; order securely</a></div>");
}

function write_div2(){
	
	document.write(" <div><a class=\"menu\"  href=\"/domains/\">&raquo; prices & features</a></div><div style=\"padding-top: 3px;\"><a class=\"menu\"  href=\"http://access.digitalis.com.au\">&raquo; manage domain</a></div><div style=\"padding-top: 3px;\"><a class=\"menu\"  href=\"/domains/renewals.htm\">&raquo; renew domain</a></div><div style=\"padding-top: 3px;\"><a class=\"menu\"  href=\"https://secure.digitalis.com.au/domains/order.php\">&raquo; order new domain</a></div>");
}

function write_div3(){
	
	document.write(" <div><a class=\"menu\"  href=\"https://secure.digitalis.com.au/helpdesk/pdesk.cgi\">&raquo; client helpdesk</a></div><div style=\"padding-top: 3px;\"><a  class=\"menu\" href=\"/support/\">&raquo; online material</a></div><div style=\"padding-top: 3px;\"><a class=\"menu\"  href=\"mailto:support@digitalis.com.au\">&raquo; e-mail us</a></div>");
}

function write_div4(){
	
	document.write(" <div><a class=\"menu\"  href=\"https://secure.digitalis.com.au/hosting/order.php\">&raquo; order hosting</a></div><div style=\"padding-top: 3px;\"><a class=\"menu\"  href=\"https://secure.digitalis.com.au/domains/order.php\">&raquo; order new domain</a></div>");
}

function write_div5(){
	
	document.write(" <div><a  class=\"menu\" href=\"/company/index.htm\">&raquo; about</a></div><div style=\"padding-top: 3px;\"><a class=\"menu\"  href=\"/company/contact.htm\">&raquo; contact us</a></div><div style=\"padding-top: 3px;\"><a class=\"menu\"  href=\"/company/network.htm\">&raquo; network info</a></div><div style=\"padding-top: 3px;\"><a class=\"menu\"  href=\"/company/news.htm\">&raquo; company news</a></div><div style=\"padding-top: 3px;\"><a class=\"menu\"  href=\"/company/sitemap.htm\">&raquo; sitemap</a></div>");
}

//-->