if(!ist) { var ist = []; }
/* --------------------------------------------------
	IE BackgroundImageCache
-------------------------------------------------- */
try{
	document.execCommand("BackgroundImageCache", false, true);
}
catch(err){}

/* --------------------------------------------------
	LOAD FUNCTION
-------------------------------------------------- */
(function($){
$(function(){

	$('.imgover').hoverImg();
	$('a[href^="#"],area[href^="#"]').filter(function (i) {
		return $(this).parents('.tabTitle').length == 0;
	}).scrollFor();
	ist.stayGnav();
});


})($jq['base']);

/* --------------------------------------------------
	STAY GLOBAL NAVIGATION
-------------------------------------------------- */
ist.stayGnav = function(){(function($){
	var suffix = '_s';
	var classList = [
		'home',
		'category'
	];
	for(var i=0, n=classList.length; i<n; i++){
		var regObj = new RegExp(classList[i]);
		if(regObj.test(document.body.className)){
			var convertId = '#Nav' + classList[i].charAt(0).toUpperCase() + classList[i].substr(1);
			$(convertId).find('.imgover').attr('src', function(){
				var imgsrc = this.src;
				var dot = imgsrc.lastIndexOf('.');
				return imgsrc.substr(0, dot) + suffix + imgsrc.substr(dot);
			}).unbind('mouseenter').unbind('mouseleave');
		}
	}
})($jq['base'])};


/* --------------------------------------------------
	LOAD FUNCTION
-------------------------------------------------- */
(function($){
$(window).load(function(){
	ist.alignBoxes();
});
})($jq['base']);



/* --------------------------------------------------
	ALIGN BOXES HEIGHT
-------------------------------------------------- */
ist.alignBoxesSetting = function(wrapStr, boxStr){(function($){
	$(wrapStr).each(function(){
		var maxHeight = 0;
		var alignBox = $(this).find(boxStr);
		if($.browser.msie && Number($.browser.version) < 7) { alignBox.height('auto'); }
		else { alignBox.css('min-height', 0); }

		setTimeout(function(){
			for(var i=0; i<alignBox.length; i++){
				maxHeight = Math.max(maxHeight, alignBox.eq(i).height());	
			}
			if($.browser.msie && Number($.browser.version) < 7) { alignBox.height(maxHeight); }
			else { alignBox.css('min-height', maxHeight); }
		},1);
	});
})($jq['base'])};

ist.alignBoxes = function(){(function($){
	ist.alignBoxesSetting('div.boxFrameWrap', 'div.linkItemList');
	ist.alignBoxesSetting('div.boxFrameWrap', 'p.fontMedium');
})($jq['base'])};




