// JavaScript Document
var $imageWidth = null;
var $on = null;
//$on = true means the mouse is on the button else it can be left blank
var $buttonid = null;
function resized() {
document.getElementById("content").width=1;
	if (document.body.offsetWidth <= 800) {
		document.getElementById("banner").style.visibility="visible";
		document.getElementById("content").width=680;
	}
	else{
		document.getElementById("banner").style.visibility="hidden";
		$imageWidth = (document.body.offsetWidth-(163*2)-432)/2;
		document.getElementById("blank1").width = $imageWidth;
		document.getElementById("blank2").width = $imageWidth;
		document.getElementById("content").width = (document.body.offsetWidth-120);
	}
}
function buttons($buttonid, $on) {
	//$samepage is an optional paramater, see top
	if (document.getElementById($buttonid).style.backgroundImage == "url(Images/ButtonDown.jpg)" || document.getElementById($buttonid).style.backgroundImage == "url(Images/ButtonDownOver.jpg)") {
		var $Samepage = true;
	}
	var $Samepage
	if($on && !$Samepage) {
		document.getElementById($buttonid).style.backgroundImage = "url('Images/ButtonOver.jpg')";
	}
	else if(!$on && !$Samepage) {
		document.getElementById($buttonid).style.backgroundImage = "url('Images/Button.jpg')";
	}
	else if ($on && $Samepage) {
		document.getElementById($buttonid).style.backgroundImage = "url('Images/ButtonDownOver.jpg')";
	}
	else if (!$on && $Samepage) {
		document.getElementById($buttonid).style.backgroundImage = "url('Images/ButtonDown.jpg')";
	}
}