/*
 * Usage:
 * Rollover.attachRollover(elem, imgOvrSrc)
 * 
 * elem			Id of IMG tag
 * imgOvrSrc	URL of image to use when mouse is hovering over the image
 *
 * Notes: attachRollover will use the current img URL as the image to revert to
 * when the mouse is no longer hovering over the image 	
 */
var Rollover = {
	attachRollover : function(elem, imgOvrSrc) {
		var imgObj = $(elem);				/* Get the IMG tag */
		var imgOutSrc = imgObj.src;			/* Get IMG SRC */
		var linkObj = imgObj.parentNode;	/* Get the A node containing the IMG */
		
		linkObj.onmouseover = function() {
			imgObj.setAttribute('src', imgOvrSrc);
		};
		
		linkObj.onmouseout = function() {
			imgObj.setAttribute('src', imgOutSrc);
		};
	}
}
