/*@cc_on 
var doc = document;
eval('var document = doc');
@*/

try{
document.execCommand('BackgroundImageCache', false, true);
}catch(e){}




var module = {};

(function($){
		  
if(!$.support.cssFloat){
if (typeof document.documentElement.style.msInterpolationMode == "undefined") var oldIE = true;
}
//----------------------------------------------------------//
//@imgover
//----------------------------------------------------------//

module.ImgOverSetting = {
	Class  : '.imgover',
	imgfileNamePlus : '_o',
	imgfileNameStay : '_o'
}

module.ImgOver = {
		
	overfunc : function (){
				
		$(module.ImgOverSetting.Class).each(function(index,obj){
					$(this).mouseover(module.ImgOver.imgOverFunc);
					$(this).mouseout(module.ImgOver.imgOutFunc);
					$(this).bind("beforeunload",module.ImgOver.imgOutFunc);
					
		});
	},
	
	imgOverFunc : function (e){
		if(this.className.indexOf('gnvstay') != -1) return;
		this.src = module.Imgsrc.add(this.src, module.ImgOverSetting.imgfileNamePlus);
	},
	imgOutFunc : function (e){
		if(this.className.indexOf('gnvstay') != -1) return;
		this.src = module.Imgsrc.del(this.src, module.ImgOverSetting.imgfileNamePlus);
	}
	
}
module.Imgsrc = {

	add : function (objsrc,plusnm){
		if(objsrc.indexOf(plusnm) != -1) return objsrc;
		var ftype = objsrc.substring(objsrc.lastIndexOf('.'), objsrc.length);
		var presrc = objsrc.replace(ftype, plusnm + ftype);
		return presrc;
	},
	
	del : function (objsrc,plusnm){
		if(objsrc.indexOf(plusnm) == -1) return objsrc;
		var ftype = objsrc.substring(objsrc.lastIndexOf('.'), objsrc.length);
		var presrc = objsrc.replace(plusnm + ftype, ftype);
		return presrc;
	}
}

$(function(){
	module.ImgOver.overfunc();						
});
//----------------------------------------------------------//


//----------------------------------------------------------//
//@global navi
//----------------------------------------------------------//
module.gnv = {
	
	init : function(){
		
	var bodyClass = $('body').attr('class');
	if(bodyClass == '') return;
	
	$('#globalnavi-inner li img').each(function(){
	
	if($(this).attr('src').indexOf(bodyClass) != -1){
	$(this).addClass('gnvstay');
	$(this).attr('src',module.Imgsrc.add($(this).attr('src'), module.ImgOverSetting.imgfileNameStay));
	}
	
	})	
		
	}
	
}

$(function(){
module.gnv.init();
});
//----------------------------------------------------------//


//----------------------------------------------------------//
//@form forcus
//----------------------------------------------------------//

module.formForcus = {
	
	inputset : function(){
		
		var searchInput = $('#suggestSearch');
		var sites = $('#sitesearch')
		
		searchInput.focus(function(){			   
		var mm = $(this);
		sites.css('backgroundImage','url(/common/images/header_searchbg_01_o.gif)');
		});

		searchInput.blur(function(){	  
		var mm = $(this);
		sites.css('backgroundImage','url(/common/images/header_searchbg_01.gif)');
		});

		var normalInput = $('.textfield-l,.textfield-m,.textfield-s');
		normalInput.focus(function(){							   
		$(this).css('backgroundColor','#efefe4');
		});

		normalInput.blur(function(){	  
		$(this).css('backgroundColor','#F8F8F8');
		});
	
	}
	
}

$(function(){
module.formForcus.inputset();
});
//---------------------------------------------------------//

$(function(){
if(typeof setDefaultStyleSheet == 'function') setDefaultStyleSheet();
});

})(jq132);