var preLoadImg = new Object();

function initRollOvers(){
	$("img.rollover").each(function(){
		var imgSrc = this.src;
		var sep = imgSrc.lastIndexOf('.');
		var onSrc = imgSrc.substr(0, sep) + '_on' + imgSrc.substr(sep, 4);
		preLoadImg[imgSrc] = new Image();
		preLoadImg[imgSrc].src = onSrc;
		$(this).hover(
			function() { this.src = onSrc; },
			function() { this.src = imgSrc; }
		);
	});
}
$(function(){
	initRollOvers();
	/*--- For Site Serch Submit ---*/
	$('#site-search-btn').mouseover(function(){
		 this.style.backgroundPosition = "left -25px";
	});
	$('#site-search-btn').mouseout(function(){
		this.style.backgroundPosition = "left top";
	});
	/*--- For remove class ---*/
	//$(".focus").parent().parent().parent().children().removeClass("focus");
	$(".focus").parent().parent().siblings().removeClass("focus");
});


