function chkStage() {
	size = 960; // 945
	
	var viewportwidth;
	var viewportheight;
	 
	// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
	 
	if (typeof window.innerWidth != 'undefined')
	 {
		  viewportwidth = window.innerWidth,
		  viewportheight = window.innerHeight
	 }
	 
	// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
	
	 else if (typeof document.documentElement != 'undefined'
		 && typeof document.documentElement.clientWidth !=
		 'undefined' && document.documentElement.clientWidth != 0)
	 {
		   viewportwidth = document.documentElement.clientWidth,
		   viewportheight = document.documentElement.clientHeight
	 }
	 
	 // older versions of IE
	 
	 else
	 {
		   viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
		   viewportheight = document.getElementsByTagName('body')[0].clientHeight
	 }
	 
	if (viewportwidth < size) {
		window.document.body.style.overflowX = "auto";
		window.document.getElementById('page-wrapper').style.width = 1081;
	} else {
		window.document.body.style.overflowX = "hidden";
		window.document.getElementById('page-wrapper').style.width = 1300;
	};
}

/*function rollOver(objid,objsrc) {
	window.document.getElementById(objid).src = objsrc.substr(0,objsrc.length-4)+'-h.gif';
};

function rollOut(objid,objsrc) {
	window.document.getElementById(objid).src = objsrc.substr(0,objsrc.length-6)+'.gif';
};*/

function rollOver(objid,catid,objsrc,top) {
	if (top) {
		window.document.getElementById(catid).className = 'hover';
	} else {
		window.document.getElementById(catid).className = 'hover';
	};
	window.document.getElementById(objid).src = objsrc;
};

function rollOut(objid,catid,objsrc,top) {
	if (top) {
		window.document.getElementById(catid).className = top;
	} else {
		window.document.getElementById(catid).className = '';
	};
	window.document.getElementById(objid).src = objsrc;
};
