﻿function preloadimages(){	//You must call this function to preload the images	var myimages=new Array();	for (i=0;i<preloadimages.arguments.length;i++){		myimages[i]=new Image();		myimages[i].src=preloadimages.arguments[i];	}//End For}//End Function//Browser detectionfunction Is (){	var agt=navigator.userAgent.toLowerCase();	this.nav = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1)));	this.ie = (agt.indexOf("msie") != -1);	this.win = (navigator.appVersion.lastIndexOf('Win') != -1);}function Left(str, n){	if (n <= 0) // Invalid bound, return blank string		return "";	else if (n > String(str).length) // Invalid bound, return		return str; // entire string	else // Valid bound, return appropriate substring		return String(str).substring(0,n);}function Right(str, n){	if (n <= 0) // Invalid bound, return blank string		return "";	else if (n > String(str).length) // Invalid bound, return		return str; // entire string	else { // Valid bound, return appropriate substring		var iLen = String(str).length;		return String(str).substring(iLen, iLen - n);	}}// JScript File
function imgRollover(what){
    imageExt = Right(what.src,3)
    imageURL = what.src;
    imageLEN = String(imageURL).length - 4;
    imageURL = String(imageURL).substring(0,imageLEN) + '-over.' + imageExt;
    what.src = imageURL;

}
function imgRollout(what){
    imageExt = Right(what.src,3)
    imageURL = what.src;
    imageLEN = String(imageURL).length - 9;
    imageURL = String(imageURL).substring(0,imageLEN) + '.' + imageExt;
    what.src = imageURL;
}
