<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

function newImage(arg) {
 if (document.images) {
  rslt = new Image();
  rslt.src = arg;
  return rslt;
 }
}
 
function changeImages() {
 if (document.images && (preloadFlag == true)) {
  for (var i=0; i<changeImages.arguments.length; i+=2) {
   document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
  }
 }
}
 
var preloadFlag = false;
function preloadImages() {
 if (document.images) {
  photooftheweek_over = newImage("/images/buttons/sidemenu/photooftheweek_over.gif");
  logout_over = newImage("/images/buttons/sidemenu/logout_over.gif");
  managealbums_over = newImage("/images/buttons/sidemenu/managealbums_over.gif");
  help_over = newImage("/images/buttons/sidemenu/help_over.gif");
  viewalbums_over = newImage("/images/buttons/sidemenu/viewalbums_over.gif");
  addphotos_over = newImage("/images/buttons/sidemenu/addphotos_over.gif");
  addressbook_over = newImage("/images/buttons/sidemenu/addressbook_over.gif");
  createalbum_over = newImage("/images/buttons/sidemenu/createalbum_over.gif");
  sharedalbums_over = newImage("/images/buttons/sidemenu/userprofile_over.gif");
  return_over = newImage("/images/header/buttons/menu_returntomyplace.gif");
  viewcom_over = newImage("/images/buttons/sidemenu/viewcompetitions_over.gif");
  submitphoto_over = newImage("/images/buttons/sidemenu/submitphoto_over.gif");
  submitvote_over = newImage("/images/buttons/sidemenu/submitvote_over.gif");
  preloadFlag = true;
 }
}

/**
 * DropDown menu for the Contact Us link
 */
function fwLoadMenus() {
  if (window.fw_menu_0) return;


  window.fw_menu_0_1 = new Menu("root",195,20,"Verdana, Arial, Helvetica, sans-serif",10,"#000080","#eae8ff","#eae8ff","#6666cc");
  fw_menu_0_1.addMenuItem("Dialup Internet","location='http://www.westnet.com.au/products/home/dialup/'");
  fw_menu_0_1.addMenuItem("Broadband Internet","location='http://www.westnet.com.au/products/home/broadband/'");
  fw_menu_0_1.addMenuItem("Additional Services","location='http://www.westnet.com.au/products/home/additional/'");
   fw_menu_0_1.fontWeight="bold";
   fw_menu_0_1.hideOnMouseOut=true;

  window.fw_menu_0_2 = new Menu("root",195,20,"Verdana, Arial, Helvetica, sans-serif",10,"#000080","#eae8ff","#eae8ff","#6666cc");
  fw_menu_0_2.addMenuItem("Dialup Internet","location='http://www.westnet.com.au/products/business/dialup/'");
  fw_menu_0_2.addMenuItem("Broadband Internet","location='http://www.westnet.com.au/products/business/broadband/'");
  fw_menu_0_2.addMenuItem("Hosting & Domain Registration","location='http://www.westnet.com.au/products/hosting/'");
  fw_menu_0_2.addMenuItem("Additional Services","location='http://www.westnet.com.au/products/business/additional/'");
   fw_menu_0_2.fontWeight="bold";
   fw_menu_0_2.hideOnMouseOut=true;

  window.fw_menu_0_3 = new Menu("root",195,20,"Verdana, Arial, Helvetica, sans-serif",10,"#000080","#eae8ff","#eae8ff","#6666cc");
  fw_menu_0_3.addMenuItem("Join WestNet","location='http://www.westnet.com.au/products/signup/'");
  fw_menu_0_3.addMenuItem("Payment Options","location='http://www.westnet.com.au/products/signup/payment/'");
  fw_menu_0_3.addMenuItem("Terms & Conditions","location='http://www.westnet.com.au/products/signup/terms/general.shtm'");
   fw_menu_0_3.fontWeight="bold";
   fw_menu_0_3.hideOnMouseOut=true;


  window.fw_menu_0 = new Menu("root",195,20,"Verdana, Arial, Helvetica, sans-serif",10,"#000080","#eae8ff","#eae8ff","#6666cc");
  fw_menu_0.addMenuItem("Contact Details","location='http://www.westnet.com.au/about/contact/'");
  fw_menu_0.addMenuItem("Our Staff","location='http://www.westnet.com.au/about/contact/staff/'");
  fw_menu_0.addMenuItem("Our Agents","location='http://www.westnet.com.au/about/contact/agents/'");
  fw_menu_0.addMenuItem("Feedback","location='http://www.westnet.com.au/about/contact/feedback/'");
   fw_menu_0.fontWeight="bold";
   fw_menu_0.hideOnMouseOut=true;

  fw_menu_0.writeMenus();
} // fwLoadMenus()


/**
 * fw_menu 24OCT2000 Version 4.0
 * John Ahlquist, October 2000
 * Copyright (c) 2000 Macromedia, Inc.
 *
 * based on menu.js
 * by gary smith, July 1997
 * Copyright (c) 1997-1999 Netscape Communications Corp.
 *
 * Netscape grants you a royalty free license to use or modify this
 * software provided that this copyright notice appears on all copies.
 * This software is provided "AS IS," without a warranty of any kind.
 */
function Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh) {
	this.version = "990702 [Menu; menu.js]";
	this.type = "Menu";
	this.menuWidth = mw;
	this.menuItemHeight = mh;
	this.fontSize = fs||12;
	this.fontWeight = "plain";
	this.fontFamily = fnt||"arial,helvetica,verdana,sans-serif";
	this.fontColor = "#6666cc";
	this.fontColorHilite = fhclr||"#ffffff";
	this.bgColor = "#3333CC";
	this.menuBorder = 1;
	this.menuItemBorder = 1;
	this.menuItemBgColor = "#F4F5FF";
	this.menuLiteBgColor = "#ffffff";
	this.menuHiliteBgColor = "#6666cc";
	this.menuContainerBgColor = "#cccccc";
	this.childMenuIcon = "arrows.gif";
	this.items = new Array();
	this.actions = new Array();
	this.childMenus = new Array();

	this.hideOnMouseOut = true;

	this.addMenuItem = addMenuItem;
	this.addMenuSeparator = addMenuSeparator;
	this.writeMenus = writeMenus;
	this.FW_showMenu = FW_showMenu;
	this.onMenuItemOver = onMenuItemOver;
	this.onMenuItemAction = onMenuItemAction;
	this.hideMenu = hideMenu;
	this.hideChildMenu = hideChildMenu;

	if (!window.menus) window.menus = new Array();
	this.label = label || "menuLabel" + window.menus.length;
	window.menus[this.label] = this;
	window.menus[window.menus.length] = this;
	if (!window.activeMenus) window.activeMenus = new Array();
}

function addMenuItem(label, action) {
	this.items[this.items.length] = label;
	this.actions[this.actions.length] = action;
}

function addMenuSeparator() {
	this.items[this.items.length] = "separator";
	this.actions[this.actions.length] = "";
	this.menuItemBorder = 0;
}

// For NS6. 
function FIND(item) {
	if (document.all) return(document.all[item]);
	if (document.getElementById) return(document.getElementById(item));
	return(false);
}

function writeMenus(container) {
	if (window.triedToWriteMenus) return;

	if (!container && document.layers) {
		window.delayWriteMenus = this.writeMenus;
		var timer = setTimeout('delayWriteMenus()', 250);
		container = new Layer(100);
		clearTimeout(timer);
	} else if (document.all || document.hasChildNodes) {
		document.writeln('<SPAN ID="menuContainer"></SPAN>');
		container = FIND("menuContainer");
	}

	window.fwHideMenuTimer = null;
	if (!container) return;	
	window.triedToWriteMenus = true; 
	container.isContainer = true;
	container.menus = new Array();
	for (var i=0; i<window.menus.length; i++) 
		container.menus[i] = window.menus[i];
	window.menus.length = 0;
	var countMenus = 0;
	var countItems = 0;
	var top = 0;
	var content = '';
	var lrs = false;
	var theStat = "";
	var tsc = 0;
	if (document.layers) lrs = true;
	for (var i=0; i<container.menus.length; i++, countMenus++) {
		var menu = container.menus[i];
		if (menu.bgImageUp) {
			menu.menuBorder = 0;
			menu.menuItemBorder = 0;
		}
		if (lrs) {
			var menuLayer = new Layer(100, container);
			var lite = new Layer(100, menuLayer);
			lite.top = menu.menuBorder;
			lite.left = menu.menuBorder;
			var body = new Layer(100, lite);
			body.top = menu.menuBorder;
			body.left = menu.menuBorder;
		} else {
			content += ''+
			'<DIV ID="menuLayer'+ countMenus +'" STYLE="position:absolute;z-index:1;left:10;top:'+ (i * 100) +';visibility:hidden;">\n'+
			'  <DIV ID="menuLite'+ countMenus +'" STYLE="position:absolute;z-index:1;left:'+ menu.menuBorder +';top:'+ menu.menuBorder +';visibility:hide;" onMouseOut="mouseoutMenu();">\n'+
			'	 <DIV ID="menuFg'+ countMenus +'" STYLE="position:absolute;left:'+ menu.menuBorder +';top:'+ menu.menuBorder +';visibility:hide;">\n'+
			'';
		}
		var x=i;
		for (var i=0; i<menu.items.length; i++) {
			var item = menu.items[i];
			var childMenu = false;
			var defaultHeight = menu.fontSize+6;
			var defaultIndent = menu.fontSize;
			if (item.label) {
				item = item.label;
				childMenu = true;
			}
			menu.menuItemHeight = menu.menuItemHeight || defaultHeight;
			menu.menuItemIndent = menu.menuItemIndent || defaultIndent;
			var itemProps = 'font-family:' + menu.fontFamily +';font-weight:' + menu.fontWeight + ';fontSize:' + menu.fontSize + ';';
			if (menu.fontStyle) itemProps += 'font-style:' + menu.fontStyle + ';';
			if (document.all) 
				itemProps += 'font-size:' + menu.fontSize + ';" onMouseOver="onMenuItemOver(null,this);" onClick="onMenuItemAction(null,this);';
			else if (!document.layers) {
				itemProps += 'font-size:' + menu.fontSize + 'px;'; // zilla wants 12px.
			}
			var l;
			if (lrs) {
				l = new Layer(800,body);
			}
			var dTag	= '<DIV ID="menuItem'+ countItems +'" STYLE="position:absolute;left:0;top:'+ (i * menu.menuItemHeight) +';'+ itemProps +'">';
			var dClose = '</DIV>'
			if (menu.bgImageUp) {
				menu.menuBorder = 0;
				menu.menuItemBorder = 0;
				dTag	= '<DIV ID="menuItem'+ countItems +'" STYLE="background:url('+menu.bgImageUp+');position:absolute;left:0;top:'+ (i * menu.menuItemHeight) +';'+ itemProps +'">';
				if (document.layers) {
					dTag = '<LAYER BACKGROUND="'+menu.bgImageUp+'" ID="menuItem'+ countItems +'" TOP="'+ (i * menu.menuItemHeight) +'" style="' + itemProps +'">';
					dClose = '</LAYER>';
				}
			}
			var textProps = 'position:absolute;left:' + menu.menuItemIndent + ';top:4;';
			if (lrs) {
				textProps +=itemProps;
				dTag = "";
				dClose = "";
			}

			var dText	= '<DIV ID="menuItemText'+ countItems +'" STYLE="' + textProps + 'color:'+ menu.fontColor +';">'+ item +'&nbsp</DIV>\n<DIV ID="menuItemHilite'+ countItems +'" STYLE="' + textProps + 'top:4;color:'+ menu.fontColorHilite +';visibility:hidden;">'+ item +'&nbsp</DIV>';
			if (item == "separator") {
				content += ( dTag + '<DIV ID="menuSeparator'+ countItems +'" STYLE="position:absolute;left:1;top:5;"></DIV>\n<DIV ID="menuSeparatorLite'+ countItems +'" STYLE="position:absolute;left:1;top:5;"></DIV>\n' + dClose);
			} else if (childMenu) {
				content += ( dTag + dText + '<DIV ID="childMenu'+ countItems +'" STYLE="position:absolute;left:0;top:4;"><IMG SRC="'+ menu.childMenuIcon +'"></DIV>\n' + dClose);
			} else {
				content += ( dTag + dText + dClose);
			}
			if (lrs) {
				l.document.open("text/html");
				l.document.writeln(content);
				l.document.close();	
				content = '';
				theStat += "-";
				tsc++;
				if (tsc > 50) {
					tsc = 0;
					theStat = "";
				}
				status = theStat;
			}
			countItems++;  
		}
		if (lrs) {
			// focus layer
			var focusItem = new Layer(100, body);
			focusItem.visiblity="hidden";
			focusItem.document.open("text/html");
			focusItem.document.writeln("&nbsp;");
			focusItem.document.close();	
		} else {
		  content += '	  <DIV ID="focusItem'+ countMenus +'" STYLE="position:absolute;left:0;top:0;visibility:hide;" onClick="onMenuItemAction(null,this);">&nbsp;</DIV>\n';
		  content += '   </DIV>\n  </DIV>\n</DIV>\n';
		}
		i=x;
	}
	if (document.layers) {		
		container.clip.width = window.innerWidth;
		container.clip.height = window.innerHeight;
		container.onmouseout = mouseoutMenu;
		container.menuContainerBgColor = this.menuContainerBgColor;
		for (var i=0; i<container.document.layers.length; i++) {
			proto = container.menus[i];
			var menu = container.document.layers[i];
			container.menus[i].menuLayer = menu;
			container.menus[i].menuLayer.Menu = container.menus[i];
			container.menus[i].menuLayer.Menu.container = container;
			var body = menu.document.layers[0].document.layers[0];
			body.clip.width = proto.menuWidth || body.clip.width;
			body.clip.height = proto.menuHeight || body.clip.height;
			for (var n=0; n<body.document.layers.length-1; n++) {
				var l = body.document.layers[n];
				l.Menu = container.menus[i];
				l.menuHiliteBgColor = proto.menuHiliteBgColor;
				l.document.bgColor = proto.menuItemBgColor;
				l.saveColor = proto.menuItemBgColor;
				l.onmouseover = proto.onMenuItemOver;
				l.onclick = proto.onMenuItemAction;
				l.action = container.menus[i].actions[n];
				l.focusItem = body.document.layers[body.document.layers.length-1];
				l.clip.width = proto.menuWidth || body.clip.width + proto.menuItemIndent;
				l.clip.height = proto.menuItemHeight || l.clip.height;
				if (n>0) l.top = body.document.layers[n-1].top + body.document.layers[n-1].clip.height + proto.menuItemBorder;
				l.hilite = l.document.layers[1];
				if (proto.bgImageUp) l.background.src = proto.bgImageUp;
				l.document.layers[1].isHilite = true;
				if (l.document.layers[0].id.indexOf("menuSeparator") != -1) {
					l.hilite = null;
					l.clip.height -= l.clip.height / 2;
					l.document.layers[0].document.bgColor = proto.bgColor;
					l.document.layers[0].clip.width = l.clip.width -2;
					l.document.layers[0].clip.height = 1;
					l.document.layers[1].document.bgColor = proto.menuLiteBgColor;
					l.document.layers[1].clip.width = l.clip.width -2;
					l.document.layers[1].clip.height = 1;
					l.document.layers[1].top = l.document.layers[0].top + 1;
				} else if (l.document.layers.length > 2) {
					l.childMenu = container.menus[i].items[n].menuLayer;
					l.document.layers[2].left = l.clip.width -13;
					l.document.layers[2].top = (l.clip.height / 2) -4;
					l.document.layers[2].clip.left += 3;
					l.Menu.childMenus[l.Menu.childMenus.length] = l.childMenu;
				}
			}
			body.document.bgColor = proto.bgColor;
			body.clip.width  = l.clip.width +proto.menuBorder;
			body.clip.height = l.top + l.clip.height +proto.menuBorder;
			var focusItem = body.document.layers[n];
			focusItem.clip.width = body.clip.width;
			focusItem.Menu = l.Menu;
			focusItem.top = -30;
            focusItem.captureEvents(Event.MOUSEDOWN);
            focusItem.onmousedown = onMenuItemDown;
			menu.document.bgColor = proto.menuBorderBgColor;
			var lite = menu.document.layers[0];
			lite.document.bgColor = proto.menuLiteBgColor;
			lite.clip.width = body.clip.width +1;
			lite.clip.height = body.clip.height +1;
			menu.clip.width = body.clip.width + (proto.menuBorder * 3) ;
			menu.clip.height = body.clip.height + (proto.menuBorder * 3);
		}
	} else {
		if ((!document.all) && (container.hasChildNodes)) {
			container.innerHTML=content;
		} else {
			container.document.open("text/html");
			container.document.writeln(content);
			container.document.close();	
		}
		if (!FIND("menuLayer0")) return;
		var menuCount = 0;
		for (var x=0; x<container.menus.length; x++) {
			var menuLayer = FIND("menuLayer" + x);
			container.menus[x].menuLayer = "menuLayer" + x;
			menuLayer.Menu = container.menus[x];
			menuLayer.Menu.container = "menuLayer" + x;
			menuLayer.style.zIndex = 1;
		    var s = menuLayer.style;
			s.top = s.pixelTop = -300;
			s.left = s.pixelLeft = -300;

			var menu = container.menus[x];
			menu.menuItemWidth = menu.menuWidth || menu.menuIEWidth || 140;
			menuLayer.style.backgroundColor = menu.menuBorderBgColor;
			var top = 0;
			for (var i=0; i<container.menus[x].items.length; i++) {
				var l = FIND("menuItem" + menuCount);
				l.Menu = container.menus[x];
				if (l.addEventListener) { // ns6
					l.style.width = menu.menuItemWidth;	
					l.style.height = menu.menuItemHeight;
					l.style.top = top;
					l.addEventListener("mouseover", onMenuItemOver, false);
					l.addEventListener("click", onMenuItemAction, false);
					l.addEventListener("mouseout", mouseoutMenu, false);
				} else { //ie
					l.style.pixelWidth = menu.menuItemWidth;	
					l.style.pixelHeight = menu.menuItemHeight;
					l.style.pixelTop = top;
				}
				top = top + menu.menuItemHeight+menu.menuItemBorder;
				l.style.fontSize = menu.fontSize;
				l.style.backgroundColor = menu.menuItemBgColor;
				l.style.visibility = "inherit";
				l.saveColor = menu.menuItemBgColor;
				l.menuHiliteBgColor = menu.menuHiliteBgColor;
				l.action = container.menus[x].actions[i];
				l.hilite = FIND("menuItemHilite" + menuCount);
				l.focusItem = FIND("focusItem" + x);
				l.focusItem.style.pixelTop = l.focusItem.style.top = -30;
				var childItem = FIND("childMenu" + menuCount);
				if (childItem) {
					l.childMenu = container.menus[x].items[i].menuLayer;
					childItem.style.pixelLeft = childItem.style.left = menu.menuItemWidth -11;
					childItem.style.pixelTop = childItem.style.top =(menu.menuItemHeight /2) -4;
					//childItem.style.pixelWidth = 30 || 7;
					//childItem.style.clip = "rect(0 7 7 3)";
					l.Menu.childMenus[l.Menu.childMenus.length] = l.childMenu;
				}
				var sep = FIND("menuSeparator" + menuCount);
				if (sep) {
					sep.style.clip = "rect(0 " + (menu.menuItemWidth - 3) + " 1 0)";
					sep.style.width = sep.style.pixelWidth = menu.menuItemWidth;	
					sep.style.backgroundColor = menu.bgColor;
					sep = FIND("menuSeparatorLite" + menuCount);
					sep.style.clip = "rect(1 " + (menu.menuItemWidth - 3) + " 2 0)";
					sep.style.width = sep.style.pixelWidth = menu.menuItemWidth;	
					sep.style.backgroundColor = menu.menuLiteBgColor;
					l.style.height = l.style.pixelHeight = menu.menuItemHeight/2;
					l.isSeparator = true
					top -= (menu.menuItemHeight - l.style.pixelHeight)
				} else {
					l.style.cursor = "hand"
				}
				menuCount++;
			}
			menu.menuHeight = top-1;
			var lite = FIND("menuLite" + x);
			var s = lite.style;
			s.height = s.pixelHeight = menu.menuHeight +(menu.menuBorder * 2);
			s.width = s.pixelWidth = menu.menuItemWidth + (menu.menuBorder * 2);
			s.backgroundColor = menu.menuLiteBgColor;

			var body = FIND("menuFg" + x);
			s = body.style;
			s.height = s.pixelHeight = menu.menuHeight + menu.menuBorder;
			s.width = s.pixelWidth = menu.menuItemWidth + menu.menuBorder;
			s.backgroundColor = menu.bgColor;

			s = menuLayer.style;
			s.width = s.pixelWidth  = menu.menuItemWidth + (menu.menuBorder * 4);
			s.height = s.pixelHeight  = menu.menuHeight+(menu.menuBorder*4);
		}
	}
	if (document.captureEvents) {	
		document.captureEvents(Event.MOUSEUP);
	}
	if (document.addEventListener) {	
		document.addEventListener("mouseup", onMenuItemOver, false);
	}
	if (document.layers && window.innerWidth) {
		window.onresize = NS4resize;
		window.NS4sIW = window.innerWidth;
		window.NS4sIH = window.innerHeight;
	}
	document.onmouseup = mouseupMenu;
	window.fwWroteMenu = true;
	status = "";
}

function NS4resize() {
	if (NS4sIW < window.innerWidth || 
		NS4sIW > window.innerWidth || 
		NS4sIH > window.innerHeight || 
		NS4sIH < window.innerHeight ) 
	{
		window.location.reload();
	}
}

function onMenuItemOver(e, l) {
	FW_clearTimeout();
	l = l || this;
	a = window.ActiveMenuItem;
	if (document.layers) {
		if (a) {
			a.document.bgColor = a.saveColor;
			if (a.hilite) a.hilite.visibility = "hidden";
			if (a.Menu.bgImageOver) {
				a.background.src = a.Menu.bgImageUp;
			}
			a.focusItem.top = -100;
			a.clicked = false;
		}
		if (l.hilite) {
			l.document.bgColor = l.menuHiliteBgColor;
			l.zIndex = 1;
			l.hilite.visibility = "inherit";
			l.hilite.zIndex = 2;
			l.document.layers[1].zIndex = 1;
			l.focusItem.zIndex = this.zIndex +2;
		}
		if (l.Menu.bgImageOver) {
			l.background.src = l.Menu.bgImageOver;
		}
		l.focusItem.top = this.top;
		l.Menu.hideChildMenu(l);
	} else if (l.style && l.Menu) {
		if (a) {
			a.style.backgroundColor = a.saveColor;
			if (a.hilite) a.hilite.style.visibility = "hidden";
			if (a.Menu.bgImageUp) {
				a.style.background = "url(" + a.Menu.bgImageUp +")";;
			}
		} 
		if (l.isSeparator) return;
		l.style.backgroundColor = l.menuHiliteBgColor;
		l.zIndex = 1;  // magic IE 4.5 mac happy doohicky.	jba
		if (l.Menu.bgImageOver) {
			l.style.background = "url(" + l.Menu.bgImageOver +")";
		}
		if (l.hilite) {
			l.style.backgroundColor = l.menuHiliteBgColor;
			l.hilite.style.visibility = "inherit";
		}
		l.focusItem.style.top = l.focusItem.style.pixelTop = l.style.pixelTop;
		l.focusItem.style.zIndex = l.zIndex +1;
		l.Menu.hideChildMenu(l);
	} else {
		return; // not a menu - magic IE 4.5 mac happy doohicky.  jba
	}
	window.ActiveMenuItem = l;
}

function onMenuItemAction(e, l) {
	l = window.ActiveMenuItem;
	if (!l) return;
	hideActiveMenus();
	if (l.action) {
		eval("" + l.action);
	}
	window.ActiveMenuItem = 0;
}

function FW_clearTimeout()
{
	if (fwHideMenuTimer) clearTimeout(fwHideMenuTimer);
	fwHideMenuTimer = null;
	fwDHFlag = false;
}
function FW_startTimeout()
{
	fwStart = new Date();
	fwDHFlag = true;
	fwHideMenuTimer = setTimeout("fwDoHide()", 500);
}

function fwDoHide()
{
	if (!fwDHFlag) return;
	var elapsed = new Date() - fwStart;
	if (elapsed < 500) {
		fwHideMenuTimer = setTimeout("fwDoHide()", 550-elapsed);
		return;
	}
	fwDHFlag = false;
	hideActiveMenus();
	window.ActiveMenuItem = 0;
}

function FW_showMenu(menu, x, y, child) {
	if (!window.fwWroteMenu) return;
	FW_clearTimeout();
	if (document.layers) {
		if (menu) {
			var l = menu.menuLayer || menu;
			l.left = 1;
			l.top = 1;
			hideActiveMenus();
			if (this.visibility) l = this;
			window.ActiveMenu = l;
		} else {
			var l = child;
		}
		if (!l) return;
		for (var i=0; i<l.layers.length; i++) { 			   
			if (!l.layers[i].isHilite) 
				l.layers[i].visibility = "inherit";
			if (l.layers[i].document.layers.length > 0) 
				FW_showMenu(null, "relative", "relative", l.layers[i]);
		}
		if (l.parentLayer) {
			if (x != "relative") 
				l.parentLayer.left = x || window.pageX || 0;
			if (l.parentLayer.left + l.clip.width > window.innerWidth) 
				l.parentLayer.left -= (l.parentLayer.left + l.clip.width - window.innerWidth);
			if (y != "relative") 
				l.parentLayer.top = y || window.pageY || 0;
			if (l.parentLayer.isContainer) {
				l.Menu.xOffset = window.pageXOffset;
				l.Menu.yOffset = window.pageYOffset;
				l.parentLayer.clip.width = window.ActiveMenu.clip.width +2;
				l.parentLayer.clip.height = window.ActiveMenu.clip.height +2;
				if (l.parentLayer.menuContainerBgColor) l.parentLayer.document.bgColor = l.parentLayer.menuContainerBgColor;
			}
		}
		l.visibility = "inherit";
		if (l.Menu) l.Menu.container.visibility = "inherit";
	} else if (FIND("menuItem0")) {
		var l = menu.menuLayer || menu;	
		hideActiveMenus();
		if (typeof(l) == "string") {
			l = FIND(l);
		}
		window.ActiveMenu = l;
		var s = l.style;
		s.visibility = "inherit";
		if (x != "relative") 
			s.left = s.pixelLeft = x || (window.pageX + document.body.scrollLeft) || 0;
		if (y != "relative") 
			s.top = s.pixelTop = y || (window.pageY + document.body.scrollTop) || 0;
		l.Menu.xOffset = document.body.scrollLeft;
		l.Menu.yOffset = document.body.scrollTop;
	}
	if (menu) {
		window.activeMenus[window.activeMenus.length] = l;
	}
}

function onMenuItemDown(e, l) {
	var a = window.ActiveMenuItem;
	if (document.layers) {
		if (a) {
			a.eX = e.pageX;
			a.eY = e.pageY;
			a.clicked = true;
		}
    }
}

function mouseupMenu(e)
{
	hideMenu(true, e);
	hideActiveMenus();
	return true;
}

function mouseoutMenu()
{
	hideMenu(false, false);
	return true;
}


function hideMenu(mouseup, e) {
	var a = window.ActiveMenuItem;
	if (a && document.layers) {
		a.document.bgColor = a.saveColor;
		a.focusItem.top = -30;
		if (a.hilite) a.hilite.visibility = "hidden";
		if (mouseup && a.action && a.clicked && window.ActiveMenu) {
 			if (a.eX <= e.pageX+15 && a.eX >= e.pageX-15 && a.eY <= e.pageY+10 && a.eY >= e.pageY-10) {
				setTimeout('window.ActiveMenu.Menu.onMenuItemAction();', 2);
			}
		}
		a.clicked = false;
		if (a.Menu.bgImageOver) {
			a.background.src = a.Menu.bgImageUp;
		}
	} else if (window.ActiveMenu && FIND("menuItem0")) {
		if (a) {
			a.style.backgroundColor = a.saveColor;
			if (a.hilite) a.hilite.style.visibility = "hidden";
			if (a.Menu.bgImageUp) {
				a.style.background = "url(" + a.Menu.bgImageUp +")";;
			}
		}
	}
	if (!mouseup && window.ActiveMenu) {
		if (window.ActiveMenu.Menu) {
			if (window.ActiveMenu.Menu.hideOnMouseOut) {
				FW_startTimeout();
			}
			return(true);
		}
	}
	return(true);
}

function PxToNum(pxStr)
{ // pxStr == 27px, we want 27.
	if (pxStr.length > 2) {
		n = Number(pxStr.substr(0, pxStr.length-2));
		return(n);
	}
	return(0);
}

function hideChildMenu(hcmLayer) {
	FW_clearTimeout();
	var l = hcmLayer;
	for (var i=0; i < l.Menu.childMenus.length; i++) {
		var theLayer = l.Menu.childMenus[i];
		if (document.layers) {
			theLayer.visibility = "hidden";
		} else {
			theLayer = FIND(theLayer);
			theLayer.style.visibility = "hidden";
		}
		theLayer.Menu.hideChildMenu(theLayer);
	}

	if (l.childMenu) {
		var childMenu = l.childMenu;
		if (document.layers) {
			l.Menu.FW_showMenu(null,null,null,childMenu.layers[0]);
			childMenu.zIndex = l.parentLayer.zIndex +1;
			childMenu.top = l.top + l.parentLayer.top + l.Menu.menuLayer.top + l.Menu.menuItemHeight/3;
			if (childMenu.left + childMenu.clip.width > window.innerWidth) {
				childMenu.left = l.parentLayer.left - childMenu.clip.width + l.Menu.menuLayer.left + 15;
				l.Menu.container.clip.left -= childMenu.clip.width;
			} else {
				childMenu.left = l.parentLayer.left + l.parentLayer.clip.width  + l.Menu.menuLayer.left -5;
			}
			var w = childMenu.clip.width+childMenu.left-l.Menu.container.clip.left;
			if (w > l.Menu.container.clip.width)  
				l.Menu.container.clip.width = w;
			var h = childMenu.clip.height+childMenu.top-l.Menu.container.clip.top;
			if (h > l.Menu.container.clip.height) l.Menu.container.clip.height = h;
			l.document.layers[1].zIndex = 0;
			childMenu.visibility = "inherit";
		} else if (FIND("menuItem0")) {
			childMenu = FIND(l.childMenu);
			var menuLayer = FIND(l.Menu.menuLayer);
			var s = childMenu.style;
			s.zIndex = menuLayer.style.zIndex+1;
			if (document.all) { // ie case.
				s.pixelTop = l.style.pixelTop + menuLayer.style.pixelTop + l.Menu.menuItemHeight/3;
				s.left = s.pixelLeft = (menuLayer.style.pixelWidth) + menuLayer.style.pixelLeft -5;
			} else { // zilla case
				var top = PxToNum(l.style.top) + PxToNum(menuLayer.style.top) + l.Menu.menuItemHeight/3;
				var left = (PxToNum(menuLayer.style.width)) + PxToNum(menuLayer.style.left) -5;
				s.top = top;
				s.left = left;
			}
			childMenu.style.visibility = "inherit";
		} else {
			return;
		}
		window.activeMenus[window.activeMenus.length] = childMenu;
	}
}

function hideActiveMenus() {
	if (!window.activeMenus) return;
	for (var i=0; i < window.activeMenus.length; i++) {
		if (!activeMenus[i]) continue;
		if (activeMenus[i].visibility && activeMenus[i].Menu) {
			activeMenus[i].visibility = "hidden";
			activeMenus[i].Menu.container.visibility = "hidden";
			activeMenus[i].Menu.container.clip.left = 0;
		} else if (activeMenus[i].style) {
			var s = activeMenus[i].style;
			s.visibility = "hidden";
			s.left = -200;
			s.top = -200;
		}
	}
	if (window.ActiveMenuItem) {
		hideMenu(false, false);
	}
	window.activeMenus.length = 0;
}

/**
 * No spam email script.
 */
var wn_domain = "westnet.com.au";

function nospam(name) {
document.write('<a href=\"mailto:' + name + '@' + wn_domain + '\">' + name + '@' + wn_domain + '</a>');
}

/**
 * Popup Script
 */
function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	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.opera5)
	return this
}
var bw=lib_bwcheck()

/***************************************************************************************
Variables to set:
***************************************************************************************/
messages=new Array()
//Write your descriptions in here.
messages[0] = "Selecting this will diplay an action in the Chat Window."
messages[1] = "Selecting this will play a sound to the people in the Chat Room."
messages[2] = "Selecting this will diplay an icon in the Chat Window."
messages[3] = "Selecting this will put you in a different Chat Room."
messages[4] = "Selecting this will diplay a list of Chat Rooms."
messages[5] = "Selecting this will diplay your text in Bold."
messages[6] = "Selecting this will change the colour of your text."
messages[7] = "Selecting this will disconnect you from the Chat Room."
messages[8] = "Selecting this will turn the sound off."
//To have more descriptions just add to the array.

fromX = 20 //How much from the actual mouse X should the description box appear?
fromY = -20 //How much from the actual mouse Y should the description box appear?

//To set the font size, font type, border color or remove the border or whatever,
//change the clDescription class in the stylesheet.

//Makes crossbrowser object.
function makeObj(obj){								
   	this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj]:0;
	if(!this.evnt) return false
	this.css=bw.dom||bw.ie4?this.evnt.style:bw.ns4?this.evnt:0;	
   	this.wref=bw.dom||bw.ie4?this.evnt:bw.ns4?this.css.document:0;		
	this.writeIt=b_writeIt;																
	return this
}

// A unit of measure that will be added when setting the position of a layer.
var px = bw.ns4||window.opera?"":"px";

function b_writeIt(text){
	if (bw.ns4){this.wref.write(text);this.wref.close()}
	else this.wref.innerHTML = text
}

//Capturing mousemove
var descx = 0
var descy = 0
function popmousemove(e){descx=bw.ns4||bw.ns6?e.pageX:event.x; descy=bw.ns4||bw.ns6?e.pageY:event.y}

var oDesc;
//Shows the messages
function popup(num){
    if(oDesc){
		oDesc.writeIt('<div class="clDescription">'+messages[num]+'</div>')
		if(bw.ie5||bw.ie6) descy = descy+document.body.scrollTop
		oDesc.css.left = (descx+fromX)+px
		oDesc.css.top = (descy+fromY)+px
		oDesc.css.visibility = "visible"
    }
}
//Hides it
function popout(){
	if(oDesc) oDesc.css.visibility = "hidden"
}
function setPopup(){
   	if(bw.ns4)document.captureEvents(Event.MOUSEMOVE)
    document.onmousemove = popmousemove;
	oDesc = new makeObj('divDescription')
}

/**
 * Popup Script for requesting a call
 */

function openrequestcall() {
  popupwin = window.open('https://secure1.wn.com.au/myaccount/requestacall/', 'Request', 'resizable=yes,scrollbars=yes,width=468,height=435')
  }

/**
 * Popup Script for Quiz
 */

function openquiz(vtheanswer) {

var vtherandom = document.quiz.vtherandomnumber.value

var vtheanswer = 0
for (i=0; i<document.quiz.quizsel.length;i++){
	if (document.quiz.quizsel[i].checked == true)
	vtheanswer = i + 1
}

if (vtheanswer == 0){
	alert ("Please make a selection.")
	return;
}

version=parseInt(navigator.appVersion);



      if (navigator.appVersion.indexOf('5.')>-1)
      {version=5};

      if (navigator.appVersion.indexOf('6.')>-1)
      {version=6};

      if (((navigator.appName=='Microsoft Internet Explorer') && (version > 4)) || ((navigator.userAgent.indexOf('Netscape') == -1) && (navigator.userAgent.indexOf('Opera') == -1)))
        {
          NewWinWidth=266;
          NewWinHeight=250;
          NewWinTop = (screen.availHeight / 2) - (NewWinHeight / 2);
          NewWinLeft = (screen.availWidth / 2) - (NewWinWidth / 2);
        }
      else
        {
          NewWinWidth=266;
          NewWinHeight=250;
          NewWinTop = 1;
          NewWinLeft = 1;
        }
      window.open("http://myplace.westnet.com.au/quiz/answer.asp?answer=" + vtheanswer + "&vtherandom=" + vtherandom, "Quiz", "address=yes,resizable=no,scrollbars=yes,status=1,height=" + NewWinHeight + ",width=" + NewWinWidth + ",toolbar=0,left=" + NewWinLeft + ",top=" + NewWinTop);
      //
    }

/**
 * Popup Script for Automatic Config
 */

function openwindowauto() {
  popupwin = window.open('https://secure1.wn.com.au/tools/config.asp', 'Configure', 'resizable=yes,scrollbars=no,width=550,height=411')
  }


/**
 * Popup Script for ADSL Signup
 */

function openadsl(){
      version=parseInt(navigator.appVersion);



      if (navigator.appVersion.indexOf('5.')>-1)
      {version=5};

      if (navigator.appVersion.indexOf('6.')>-1)
      {version=6};

      if (((navigator.appName=='Microsoft Internet Explorer') && (version > 4)) || ((navigator.userAgent.indexOf('Netscape') == -1) && (navigator.userAgent.indexOf('Opera') == -1)))
        {
          NewWinWidth=721;
          NewWinHeight=408;
          NewWinTop = (screen.availHeight / 2) - (NewWinHeight / 2);
          NewWinLeft = (screen.availWidth / 2) - (NewWinWidth / 2);
        }
      else
        {
          NewWinWidth=745;
          NewWinHeight=420;
          NewWinTop = 1;
          NewWinLeft = 1;
        }
      window.open("https://secure1.wn.com.au/adsl/signup/","","toolbar=0,menubar=0,resizable=1,scrollbars=0,status=1,height=" + NewWinHeight + ",width=" + NewWinWidth + ",toolbar=0,left=" + NewWinLeft + ",top=" + NewWinTop);
      //
      if ((navigator.appName == 'Microsoft Internet Explorer' && (version > 4)) != true)
        {
          alert('Westnet ADSL Online Signup is best viewed using Internet Explorer 5 or above.  Your current browser has identified itself as "' + navigator.appName + ':' + navigator.userAgent + '".\n\n It is ok to continue with this browser, however parts of the signup process may appear different than intended.  If you have trouble seeing page contents at any time, simply resize/maximize the browser window.\n\n Click OK to begin.');
        }
    }

/**
 * Popup Script for Dialup Signup
 */

function opendialup(){
      version=parseInt(navigator.appVersion);



      if (navigator.appVersion.indexOf('5.')>-1)
      {version=5};

      if (navigator.appVersion.indexOf('6.')>-1)
      {version=6};

      if (((navigator.appName=='Microsoft Internet Explorer') && (version > 4)) || ((navigator.userAgent.indexOf('Netscape') == -1) && (navigator.userAgent.indexOf('Opera') == -1)))
        {
          NewWinWidth=550;
          NewWinHeight=411;
          NewWinTop = (screen.availHeight / 2) - (NewWinHeight / 2);
          NewWinLeft = (screen.availWidth / 2) - (NewWinWidth / 2);
        }
      else
        {
          NewWinWidth=550;
          NewWinHeight=411;
          NewWinTop = 1;
          NewWinLeft = 1;
        }
      window.open("https://secure1.wn.com.au/signup","","toolbar=0,menubar=0,resizable=1,scrollbars=0,status=1,height=" + NewWinHeight + ",width=" + NewWinWidth + ",toolbar=0,left=" + NewWinLeft + ",top=" + NewWinTop);
      //
      if ((navigator.appName == 'Microsoft Internet Explorer' && (version > 4)) != true)
        {
          alert('Westnet Dialup Online Signup is best viewed using Internet Explorer 5 or above.  Your current browser has identified itself as "' + navigator.appName + ':' + navigator.userAgent + '".\n\n It is ok to continue with this browser, however parts of the signup process may appear different than intended.  If you have trouble seeing page contents at any time, simply resize/maximize the browser window.\n\n Click OK to begin.');
        }
    }

/**
 * Popup Script for Hosting Wizard Signup
 */

function openhostingwiz(){
      version=parseInt(navigator.appVersion);



      if (navigator.appVersion.indexOf('5.')>-1)
      {version=5};

      if (navigator.appVersion.indexOf('6.')>-1)
      {version=6};

      if (((navigator.appName=='Microsoft Internet Explorer') && (version > 4)) || ((navigator.userAgent.indexOf('Netscape') == -1) && (navigator.userAgent.indexOf('Opera') == -1)))
        {
          NewWinWidth=550;
          NewWinHeight=411;
          NewWinTop = (screen.availHeight / 2) - (NewWinHeight / 2);
          NewWinLeft = (screen.availWidth / 2) - (NewWinWidth / 2);
        }
      else
        {
          NewWinWidth=550;
          NewWinHeight=411;
          NewWinTop = 1;
          NewWinLeft = 1;
        }
      window.open("https://secure1.wn.com.au/signup","","toolbar=0,menubar=0,resizable=1,scrollbars=0,status=1,height=" + NewWinHeight + ",width=" + NewWinWidth + ",toolbar=0,left=" + NewWinLeft + ",top=" + NewWinTop);
      //
      if ((navigator.appName == 'Microsoft Internet Explorer' && (version > 4)) != true)
        {
          alert('Westnet Dialup Online Signup is best viewed using Internet Explorer 5 or above.  Your current browser has identified itself as "' + navigator.appName + ':' + navigator.userAgent + '".\n\n It is ok to continue with this browser, however parts of the signup process may appear different than intended.  If you have trouble seeing page contents at any time, simply resize/maximize the browser window.\n\n Click OK to begin.');
        }
    }

/**
 * Popup Script for Wireless Gero Map
 */

function opengeromap(){
      version=parseInt(navigator.appVersion);



      if (navigator.appVersion.indexOf('5.')>-1)
      {version=5};

      if (navigator.appVersion.indexOf('6.')>-1)
      {version=6};

      if (((navigator.appName=='Microsoft Internet Explorer') && (version > 4)) || ((navigator.userAgent.indexOf('Netscape') == -1) && (navigator.userAgent.indexOf('Opera') == -1)))
        {
          NewWinWidth=645;
          NewWinHeight=645;
          NewWinTop = (screen.availHeight / 2) - (NewWinHeight / 2);
          NewWinLeft = (screen.availWidth / 2) - (NewWinWidth / 2);
        }
      else
        {
          NewWinWidth=645;
          NewWinHeight=645;
          NewWinTop = 1;
          NewWinLeft = 1;
        }
      window.open("http://www.westnet.com.au/products/broadband/wireless/geromap.shtm","","toolbar=0,menubar=0,resizable=1,scrollbars=0,status=1,height=" + NewWinHeight + ",width=" + NewWinWidth + ",toolbar=0,left=" + NewWinLeft + ",top=" + NewWinTop);
      //
    }

/**
 * Popup Script for Wireless Bunbury Map
 */

function openbunmap(){
      version=parseInt(navigator.appVersion);



      if (navigator.appVersion.indexOf('5.')>-1)
      {version=5};

      if (navigator.appVersion.indexOf('6.')>-1)
      {version=6};

      if (((navigator.appName=='Microsoft Internet Explorer') && (version > 4)) || ((navigator.userAgent.indexOf('Netscape') == -1) && (navigator.userAgent.indexOf('Opera') == -1)))
        {
          NewWinWidth=645;
          NewWinHeight=645;
          NewWinTop = (screen.availHeight / 2) - (NewWinHeight / 2);
          NewWinLeft = (screen.availWidth / 2) - (NewWinWidth / 2);
        }
      else
        {
          NewWinWidth=645;
          NewWinHeight=645;
          NewWinTop = 1;
          NewWinLeft = 1;
        }
      window.open("http://www.westnet.com.au/products/broadband/wireless/bunmap.shtm","","toolbar=0,menubar=0,resizable=1,scrollbars=0,status=1,height=" + NewWinHeight + ",width=" + NewWinWidth + ",toolbar=0,left=" + NewWinLeft + ",top=" + NewWinTop);
      //
    }



/**
 * Popup Script for Wireless Kal Map
 */

function openkalmap(){
      version=parseInt(navigator.appVersion);



      if (navigator.appVersion.indexOf('5.')>-1)
      {version=5};

      if (navigator.appVersion.indexOf('6.')>-1)
      {version=6};

      if (((navigator.appName=='Microsoft Internet Explorer') && (version > 4)) || ((navigator.userAgent.indexOf('Netscape') == -1) && (navigator.userAgent.indexOf('Opera') == -1)))
        {
          NewWinWidth=645;
          NewWinHeight=645;
          NewWinTop = (screen.availHeight / 2) - (NewWinHeight / 2);
          NewWinLeft = (screen.availWidth / 2) - (NewWinWidth / 2);
        }
      else
        {
          NewWinWidth=645;
          NewWinHeight=645;
          NewWinTop = 1;
          NewWinLeft = 1;
        }
      window.open("http://www.westnet.com.au/products/broadband/wireless/kalmap.shtm","","toolbar=0,menubar=0,resizable=1,scrollbars=0,status=1,height=" + NewWinHeight + ",width=" + NewWinWidth + ",toolbar=0,left=" + NewWinLeft + ",top=" + NewWinTop);
      //
    }



/**
 * Popup Script for Wireless Perth Map
 */

function openperthmap(){
      version=parseInt(navigator.appVersion);



      if (navigator.appVersion.indexOf('5.')>-1)
      {version=5};

      if (navigator.appVersion.indexOf('6.')>-1)
      {version=6};

      if (((navigator.appName=='Microsoft Internet Explorer') && (version > 4)) || ((navigator.userAgent.indexOf('Netscape') == -1) && (navigator.userAgent.indexOf('Opera') == -1)))
        {
          NewWinWidth=750;
          NewWinHeight=550;
          NewWinTop = (screen.availHeight / 2) - (NewWinHeight / 2);
          NewWinLeft = (screen.availWidth / 2) - (NewWinWidth / 2);
        }
      else
        {
          NewWinWidth=750;
          NewWinHeight=550;
          NewWinTop = 1;
          NewWinLeft = 1;
        }
      window.open("http://www.westnet.com.au/products/broadband/wireless/perthmap.shtm","","toolbar=0,menubar=0,resizable=1,scrollbars=1,status=1,height=" + NewWinHeight + ",width=" + NewWinWidth + ",toolbar=0,left=" + NewWinLeft + ",top=" + NewWinTop);
      //
    }



/**
 * Popup Script for compare chart
 */

function opencompare(){
      version=parseInt(navigator.appVersion);



      if (navigator.appVersion.indexOf('5.')>-1)
      {version=5};

      if (navigator.appVersion.indexOf('6.')>-1)
      {version=6};

      if (((navigator.appName=='Microsoft Internet Explorer') && (version > 4)) || ((navigator.userAgent.indexOf('Netscape') == -1) && (navigator.userAgent.indexOf('Opera') == -1)))
        {
          NewWinWidth=596;
          NewWinHeight=295;
          NewWinTop = (screen.availHeight / 2) - (NewWinHeight / 2);
          NewWinLeft = (screen.availWidth / 2) - (NewWinWidth / 2);
        }
      else
        {
          NewWinWidth=596;
          NewWinHeight=295;
          NewWinTop = 1;
          NewWinLeft = 1;
        }
      window.open("http://www.westnet.com.au/products/compare.asp","","toolbar=0,menubar=0,resizable=1,scrollbars=1,status=1,height=" + NewWinHeight + ",width=" + NewWinWidth + ",toolbar=0,left=" + NewWinLeft + ",top=" + NewWinTop);
      //
    }


/**
 * Popup Script for Hosting DNS thingy
 */

function openhostdns(){
      version=parseInt(navigator.appVersion);



      if (navigator.appVersion.indexOf('5.')>-1)
      {version=5};

      if (navigator.appVersion.indexOf('6.')>-1)
      {version=6};

      if (((navigator.appName=='Microsoft Internet Explorer') && (version > 4)) || ((navigator.userAgent.indexOf('Netscape') == -1) && (navigator.userAgent.indexOf('Opera') == -1)))
        {
          NewWinWidth=500;
          NewWinHeight=300;
          NewWinTop = (screen.availHeight / 2) - (NewWinHeight / 2);
          NewWinLeft = (screen.availWidth / 2) - (NewWinWidth / 2);
        }
      else
        {
          NewWinWidth=500;
          NewWinHeight=300;
          NewWinTop = 1;
          NewWinLeft = 1;
        }
      window.open("http://www.westnet.com.au/products/hosting/signupwizard/whoisdetails.asp","","toolbar=0,menubar=0,resizable=1,scrollbars=1,status=0,height=" + NewWinHeight + ",width=" + NewWinWidth + ",toolbar=0,left=" + NewWinLeft + ",top=" + NewWinTop);
      //
    }

/**
 * CloseWindow
 */

function hclosewin(){

window.close();

    }


/**
 * redirect dialup
 */

function hredialup(){

window.opener.document.location = "http://www.westnet.com.au/products/dialup/";
hclosewin();

    }

/**
 * redirect dialup
 */

function hredialup(){

window.opener.document.location = "http://www.westnet.com.au/products/dialup/";
hclosewin();

    }

/**
 * redirect isdn
 */

function hredisdn(){

window.opener.document.location = "http://www.westnet.com.au/products/dialup/isdn";
hclosewin();

    }

/**
 * redirect adsl
 */

function hredadsl(){

window.opener.document.location = "http://www.westnet.com.au/products/broadband/adsl/";
hclosewin();

    }

/**
 * redirect wireless
 */

function hredwireless(){

window.opener.document.location = "http://www.westnet.com.au/products/broadband/wireless/";
hclosewin();

    }

/**
 * redirect sat
 */

function hredsat(){

window.opener.document.location = "http://www.westnet.com.au/products/broadband/satellite/";
hclosewin();

    }

/**
 * redirect fibre
 */

function hredfibre(){

window.opener.document.location = "http://www.westnet.com.au/products/broadband/fibre/";
hclosewin();

    }


/**
 * Calculations Script for ADSL area
 */
	function calculate(what) 
	{
		for (var i=1,Total=0;i<4;i++)
		{
			if (i==2)
			{
				temp = what.elements['amount' +i].value
				what.elements['amount' +i].value *= .185
			}
			Total += what.elements['amount' + i].value - 0;
			if (i==2)
			{
				what.elements['amount' +i].value = temp	
			}
		}
		 what.Total.value = roundAmount(Total)
	}
	
	function roundAmount(n) {
  var s = "" + Math.round(n * 100) / 100
  var i = s.indexOf('.')
  if (i < 0) return s + ".00"
  var t = s.substring(0, i + 1) + 
     s.substring(i + 1, i + 3)
  if (i + 2 == s.length) t += "0"
  return t
}

/**
 * Finds out if is netscape 4.7
 */

function isitnav(vsizenumber){
var vstr = navigator.appVersion
var visthere = vstr.indexOf("4.7")
var viesize = vsizenumber + 4

if (navigator.appName == "Netscape"){
	if (visthere >= 0){
		return(vsizenumber)
	}
}
else
{
	return(viesize)
}
}

/**
 * Script for Select WA town
 */

function hselectwatown(){

if (document.watown.area.selectedIndex == 0){
	alert("Please make a selection.")
	return
}
else if (document.watown.area.value == "----")
{
	alert("Please make a selection.")
	return
}
else
{
watown.submit();
}
}

/**
 * Popup Script for myphoto
 */

function openmyphoto(){
      version=parseInt(navigator.appVersion);



      if (navigator.appVersion.indexOf('5.')>-1)
      {version=5};

      if (navigator.appVersion.indexOf('6.')>-1)
      {version=6};

      if (((navigator.appName=='Microsoft Internet Explorer') && (version > 4)) || ((navigator.userAgent.indexOf('Netscape') == -1) && (navigator.userAgent.indexOf('Opera') == -1)))
        {
          NewWinWidth=750;
          NewWinHeight=540;
          NewWinTop = (screen.availHeight / 2) - (NewWinHeight / 2);
          NewWinLeft = (screen.availWidth / 2) - (NewWinWidth / 2);
        }
      else
        {
          NewWinWidth=750;
          NewWinHeight=540;
          NewWinTop = 1;
          NewWinLeft = 1;
        }
      window.open("default.htm","","toolbar=0,menubar=0,resizable=1,scrollbars=1,status=1,height=" + NewWinHeight + ",width=" + NewWinWidth + ",toolbar=0,left=" + NewWinLeft + ",top=" + NewWinTop);
      //
    }


// -->