jQuery(function(){

	// 메뉴?역 ?플
	// header
	
	/*
	jQuery('.gnb .menu a').each(function(index){
		jQuery(this).mouseover(function(){
			 switch(index){
				case 0 :  submenu1('THE88'); break;
				case 1 :  submenu1('THE4'); break;
				case 2 :  submenu1('THE3'); break;
				case 3 :  submenu1('THE5'); break;
				case 4 :  submenu1('THE210'); break;
				case 5 :  submenu1('THE211'); break;
				//case 6 : jQuery('.gnb .sub_item .arrow').css('left','830px'); break;
				//case 7 : jQuery('.gnb .sub_item .arrow').css('left','900px'); break;
				default : break;
			}
		});
	});
	*/


	jQuery('.gnb .sub_item .close').click(function(){
		jQuery('.gnb .sub_item').slideUp();
	});

	// ?합검????트박스
	jQuery('.select_input').mouseover(function(){
		jQuery(this).find('ul').show();
	});
	jQuery('.select_input').mouseout(function(){
		jQuery(this).find('ul').hide();
	});

	// hot travel
	jQuery('.hot_travel .more').click(function(){
		jQuery('.hot_travel_more').show();
	});
	jQuery('.hot_travel_more .close').click(function(){
		jQuery('.hot_travel_more').fadeOut();
	});

	// 카테고리??기 베스???품
	jQuery('#sub_section .category_best .tab a').each(function(index){
		jQuery(this).click(function(){
			switch(index){
				case 0 : jQuery(this).parent('.tab').css('background-position','0 -1317px'); break;
				case 1 : jQuery(this).parent('.tab').css('background-position','0 -1357px'); break;
				case 2 : jQuery(this).parent('.tab').css('background-position','0 -1398px'); break;
				case 3 : jQuery(this).parent('.tab').css('background-position','0 -1439px'); break;
				case 4 : jQuery(this).parent('.tab').css('background-position','0 -1480px'); break;
				default : break;
			}
			return false;
		});
	});

	jQuery('#honey_section .category_best .tab a').each(function(index){
		jQuery(this).click(function(){
			switch(index){
				case 0 : jQuery(this).parent('.tab').css('background-position','0 -1551px'); break;
				case 1 : jQuery(this).parent('.tab').css('background-position','0 -1591px'); break;
				case 2 : jQuery(this).parent('.tab').css('background-position','0 -1631px'); break;
				case 3 : jQuery(this).parent('.tab').css('background-position','0 -1671px'); break;
				case 4 : jQuery(this).parent('.tab').css('background-position','0 -1711px'); break;
				case 5 : jQuery(this).parent('.tab').css('background-position','0 -1751px'); break;
				case 6 : jQuery(this).parent('.tab').css('background-position','0 -1791px'); break;
				case 7 : jQuery(this).parent('.tab').css('background-position','0 -1831px'); break;
				default : break;
			}
			return false;
		});
	});

});

function setPng24(obj) { //IE6 .png??용?기 ?한 ?크립트
	obj.width=obj.height=1;
	obj.className=obj.className.replace(/\bpng24\b/i,'');
	obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');";
	obj.src='';
	return '';
}

function divDown()
{
    jQuery(".gnb .sub_item").slideDown();
}

function divUp()
{
    jQuery(".gnb .sub_item").slideUp();
}
