
//use script to correctly position logo and search box - as absolutely positioned on centred layout
function positionLogo() {
	var w;
	if (self.innerWidth)	//all but IE
		w = self.innerWidth;
	else {					//IE
		if (document.body.offsetWidth) w = document.body.offsetWidth;
	}
	var e = document.getElementById('logo');
	e.style.left = w/2 - 470;
}

window.onresize = positionLogo;

function imgOn(imgName) {
	if (document.images) { 
		document[imgName].src = eval(imgName + "on.src");        
	}	
}
function imgOff(imgName) {
	if (document.images) { 
		document[imgName].src = eval(imgName + "off.src");        
	}	
}

//preload images
if (document.images) {
	imgViewAllon = new Image();
	imgViewAllon.src = "images/on.gif";  
	imgViewAlloff = new Image();
	imgViewAlloff.src = "images/off.gif";  	
}


