// JavaScript Document// JavaScript Document// Son of Suckerfish Drop Down navigation// http://www.htmldog.com/articles/suckerfish/dropdowns/sfHover = function() {	var sfEls = document.getElementById("nav").getElementsByTagName("LI");	for (var i=0; i<sfEls.length; i++) {		sfEls[i].onmouseover=function() {			this.className+=" sfhover";		}		sfEls[i].onmouseout=function() {			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");		}	}}if (window.attachEvent) window.attachEvent("onload", sfHover);// add class="rollover" to an image to invoke a rollover image name currnetimage_roll function initRollovers() {    if (!document.getElementById) return          var aPreLoad = new Array();    var sTempSrc;    var aImages = document.getElementsByTagName('img');    for (var i = 0; i < aImages.length; i++) {	if (aImages[i].className == 'rollover') {	    var src = aImages[i].getAttribute('src');	    var ftype = src.substring(src.lastIndexOf('.'), src.length);	    var hsrc = src.replace(ftype, '_roll'+ftype);	    aImages[i].setAttribute('hsrc', hsrc);	    	    aPreLoad[i] = new Image();	    aPreLoad[i].src = hsrc;	    	    aImages[i].onmouseover = function() {		sTempSrc = this.getAttribute('src');		this.setAttribute('src', this.getAttribute('hsrc'));	    }	    aImages[i].onmouseout = function() {		if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_roll'+ftype, ftype);		this.setAttribute('src', sTempSrc);	    }	}    }}sfHover = function() {	var sfEls = document.getElementById("nav").getElementsByTagName("LI");	for (var i=0; i<sfEls.length; i++) {		sfEls[i].onmouseover=function() {			this.className+=" sfhover";		}		sfEls[i].onmouseout=function() {			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");		}	}}if (window.attachEvent) window.attachEvent("onload", sfHover);var newWin = null;function popUp(strURL, strType, strHeight, strWidth) { if (newWin != null && !newWin.closed)   newWin.close(); var strOptions=""; if (strType=="console")   strOptions="resizable,height="+strHeight+",width="+strWidth; if (strType=="fixed")   strOptions="status,height="+strHeight+",width="+strWidth; if (strType=="elastic")   strOptions="toolbar,menubar,scrollbars,"+"resizable,location,height="+strHeight+",width="+strWidth; newWin = window.open(strURL, 'newWin', strOptions); newWin.focus();}function main_load(){   if(arguments.callee.done) return;   arguments.callee.done = true;   if(typeof sIFR == "function")   {      sIFR.replaceElement(named({sSelector:"h1", sFlashSrc:"/flash/helvetica_neue.swf", sColor:"#002975", sBgColor:"#FFFFFF", sWmode: "transparent"}));    };   initRollovers();   // initPopups();  }// for Internet Explorer (using conditional comments)/*@cc_on @*//*@if (@_win32)document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");var script = document.getElementById("__ie_onload");script.onreadystatechange = function(){	if(this.readyState == "complete") main_load();};/*@end @*/if(document.addEventListener) document.addEventListener("DOMContentLoaded", main_load, false);if (/WebKit/i.test(navigator.userAgent)) { // sniff  var _timer = setInterval(function() {    if (/loaded|complete/.test(document.readyState)) {      clearInterval(_timer);      main_load(); // call the onload handler    }  }, 10);}window.onload = main_load;function regions(){	var a = new Array("adelaide","gold_coast","melbourne","perth");	var b = new Array();	var p="";	for(i=0; i<4; i++){		if(document.getElementById(a[i]).checked==true){			if(b.length==0){				b[0]=document.getElementById(a[i]).value;			}			else{				b[b.length]=document.getElementById(a[i]).value;			}		}	}	p=b.join(", ");	document.getElementById("vip_shopping_form_region").value = p;}function areas(){	var a = new Array("wf","mf","cw","hw","fe","book","faj","td");	var b = new Array();	var p="";	for(i=0; i<8; i++){		if(document.getElementById(a[i]).checked==true){			if(b.length==0){				b[0]=document.getElementById(a[i]).value;			}			else{				b[b.length]=document.getElementById(a[i]).value;			}		}	}	p=b.join(", ");	document.getElementById("vip_shopping_form_areas_interest").value = p;}