// start: mouseover script and image preloader
	
function msover(img,ref)
	{
			document.images[img].src = ref;
	}

function msout(img,ref)
	{
			document.images[img].src = ref;
	}
	
String.prototype.trim = function() {
a = this.replace(/^\s+/, '');
return a.replace(/\s+$/, '');
};

String.prototype.reverse=function(str){
	var newStr="";
	for (i=0;i<=str.length;i++) {
		newStr = str.charAt(i) + newStr;
	}
	return newStr;
}

String.prototype.replaceAll=function(haystack, needle, replacement){
	while(haystack.indexOf(needle)!=-1){
		haystack=haystack.replace(needle, " ");
	}
	return haystack;
}	
	
