//Get Client Height ======================================================================== */
function GetClientWidth(){
	var viewportwidth;

	// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight

	if (typeof window.innerWidth != 'undefined'){
	   viewportwidth = window.innerWidth;
	}

	// 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;
	}

	// older versions of IE

	else{
	   viewportwidth = document.getElementsByTagName('body')[0].clientWidth;
	}

	return viewportwidth;
}//end method


//Get Client Width ========================================================================= */
function GetClientHeight(){
	var viewportheight;

	// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight

	if (typeof window.innerWidth != 'undefined'){
	   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){
		viewportheight = document.documentElement.clientHeight;
	}

	// older versions of IE

	else{
	   viewportheight = document.getElementsByTagName('body')[0].clientHeight;
	}
	
	return viewportheight;
}//end method ============================================================================== */



//ROLLOVER : start ========================================================================= */
var g_arrImgObjs = new Array();
function initImages(arrImgSource){
	for(i = 0 ; i < arrImgSource.length ; i+=3){
		g_arrImgObjs.push(arrImgSource[i]);
		picOff = new Image();
	   	picOff.src=arrImgSource[i+1];
		g_arrImgObjs.push(picOff);
		picOn = new Image();
	   	picOn.src=arrImgSource[i+2];
		g_arrImgObjs.push(picOn);
	}
}

function lightupImg(imgName){
	for(i = 0 ; i < g_arrImgObjs.length ; i+=3){
		if(g_arrImgObjs[i] == imgName){
			document.getElementById(imgName).src = g_arrImgObjs[i+2].src;
			break;
		}
	}
}

function turnoffImg(imgName){
	for(i = 0 ; i < g_arrImgObjs.length ; i+=3){
		if(g_arrImgObjs[i] == imgName){
			document.getElementById(imgName).src = g_arrImgObjs[i+1].src;
			break;
		}
	}
}//end method ============================================================================== */

