// Use jQuery

/*
	PreLoad & RollOver (_off -> _over)
----------------------------------------------------------------------*/
$(function(){
	var preLoad = new Object();
	$('img').each(function(){
		try{
			if ($(this).attr('src').match(/_off\./i)){
				var preImg = $(this).attr('src').replace(/_off\./i, '_over.');
				preLoad[preImg] = new Image();
				preLoad[preImg].src = preImg;
				$(this).hover(
					function(){ $(this).attr('src', $(this).attr('src').replace(/_off\./i, '_over.')); }, //Over
					function(){ $(this).attr('src', $(this).attr('src').replace(/_over\./i, '_off.')); } //Out
				);
				$(this).mouseup(
					function(){ $(this).attr('src', $(this).attr('src').replace(/_over\./i, '_off.')); } //Release
				);
			}
		}catch(e){}
	});
});

