jQuery.preloadImages = function()
{
 for(var i = 0; i<arguments.length; i++)
 {
  jQuery("<img>").attr("src", arguments[i]);
 }
};
$.preloadImages('/images/m1-on.gif', '/images/m2-on.gif', '/images/m3-on.gif', '/images/m4-on.gif');
$(document).ready(function() {
	$('.rollover img').hover(
	 function()
	 {
	  this.src = this.src.replace("_off","_on");
	 },
	 function()
	 {
	  this.src = this.src.replace("_on","_off");
	 }
	);
});
	
function openCtr(theURL, winName, width, height) { //butchered by jake (jake@jp74.com)
	//desired new window height/width
	var winW = width;
	var winH = height;
	//do it
	var wide = parseInt(screen.width);
	var high = parseInt(screen.availHeight);	
	var xCoord = (wide - winW)/2;
	var yCoord = (high - winH)/2;
	if (navigator.appName == "Netscape")
		{ newWin = window.open(theURL,winName,"status=no,width=" + winW + ",height=" + winH + ",screenX=" + xCoord + ",screenY=" + yCoord);  }
	else
		{ newWin = window.open(theURL,winName,"status=no,width=" + winW + ",height=" + winH + ",left=" + xCoord + ",top=" + yCoord);  }
} 

function openNWin(theURL, winName, width, height) { //butchered by jake (jake@jp74.com)
	//desired new window height/width
	var winW = width;
	var winH = height;
	//do it
	var wide = parseInt(screen.width);
	var high = parseInt(screen.availHeight);	
	var xCoord = (wide - winW)/2;
	var yCoord = (high - winH)/2;
	if (navigator.appName == "Netscape")
		{ newWin = window.open(theURL,winName,"status=no, resizable=yes, scrollbars=yes, width=" + winW + ",height=" + winH + ",screenX=" + xCoord + ",screenY=" + yCoord);  }
	else
		{ newWin = window.open(theURL,winName,"status=no, resizable=yes, scrollbars=yes, width=" + winW + ",height=" + winH + ",left=" + xCoord + ",top=" + yCoord);  }
} 
