// JavaScript Document
// 
$.fn.simpleRollover = function( currentArray ) {
	$("[src*='_mouseout']", $(this)).each(
		function (i) {
			var currentObject = false;
			for(var j=0; j < currentArray.length; j++) {
				if($(this).attr("id") == currentArray[j]){
					currentObject = true;
				}
			}
			
			if( currentObject ) {
				$(this).attr("src", $(this).attr("src").replace("_mouseout", "_mouseover"));
			} else {
				$(this).mouseover(function(event){
					$(this).attr("src", $(this).attr("src").replace("_mouseout", "_mouseover"));
				}).mouseout(function(){
					$(this).attr("src", $(this).attr("src").replace("_mouseover", "_mouseout"));
				});
			}
		}
	);
}

