var gIndex = null;
$(document).ready(function(){
	init();
});


function init(){
	$(".parent").hover(
		function(){$(this).css("color","#D5BF82")},
		function(){$(this).css("color","#4c3222")}
	).click(function(){
		$(".menu_item").find(".close").removeClass("close").addClass("open").next().hide();
		if($(this).hasClass("open")){
			$(this).removeClass("open").addClass("close").next().show();
		}else if($(this).hasClass("close")){
			$(this).removeClass("close").addClass("open").next().hide();
		}
	});
	$(".child").hover(
		function(){$(this).parent().addClass("li_child");},
		function(){
			if(!$(this).parent().hasClass("def")){
				$(this).parent().removeClass("li_child");
			}
		}
	).click(function(){
		$(".li_child").removeClass("li_child def");
		$(this).parent().addClass("li_child def");
	});
	$(".city_spa").hover(
		function(){$(this).css("background-position","0px 0px")},
		function(){$(this).css("background-position","0px -22px")}
	);
}

var Index = function(){};
Index.prototype = {
	
} 
gIndex = new Index();
