//<script language="JavaScript" ><!--
var ImageList = new Array()
function PreLoad() {
	var i;
	for (i = 0; i < document.images.length ; i++){
		if (document.images[i].lowsrc.length > 0){
			ImageList[i] = new Image();
			ImageList[i].src=document.images[i].lowsrc;
			//document.images[i].SavSrc=rslt.src;
		}
	}
}
function RestoreImage(strImageName) {
	document.images[strImageName].src=document.images[strImageName].SaveSrc
}
function SwapImage(strImageName) {
	document.images[strImageName].SaveSrc=document.images[strImageName].src;
	document.images[strImageName].src=document.images[strImageName].lowsrc;
}
function leftTrim(strValue){
	for (var i=0;(i < strValue.length) && (strValue.charAt(i)==" ");	i++){
	}
	return strValue.substring (i, strValue.length);
}

function rightTrim(strValue){
	for (var i=strValue.length-1;(i >= 0) && (strValue.charAt(i)==" ");	i--){
	}
	return strValue.substring (0, i+1);
}

function Trim(strValue){
	strValue = leftTrim(strValue);
	strValue = rightTrim(strValue);
	return strValue;
}

function SetCookie(sName, sValue){  
	document.cookie = sName + "=" + escape(sValue) + ";"; 
}

function GetCookie(sName){  
	// cookies are separated by semicolons  
	var aCookie = document.cookie.split(";");  
	for (var i=0; i < aCookie.length; i++)  {    
		// a name/value pair (a crumb) is separated by an equal sign    
		var aCrumb = aCookie[i].split("=");    
		if (sName == aCrumb[0])       
			return unescape(aCrumb[1]);  
	}  // a cookie with the requested name does not exist  
	return null;
}
//--></script>

