// JavaScript Document
$(document).ready(function() {
	
	$("div.d2").css("z-index", "999");

	var _imgs = "../img/btn_more_off.gif../img/btn_more_on.gif";
	var _yorn = "txt_offtxt_on";
	//alert((function(){ return "lsh JS going..."})());
	var _lnbs = $(".lnb li,.lnb_m li").each(function(idx, e) {
		$(e).bind("mouseover", function() {
			$("div.d2:visible").hide();
			$(this).find("div.d2").show();
		}).bind("mouseout", function() {
			$("div.d2:hidden").hide();
			$(this).find("div.d2").hide();
		});
	})
	
	var  _jobs = $("tr.jobtitle").each(function(idx, e) {
		$(e).find("img").click(function() {
			this.src = _imgs.replace($(this).attr("src"), "")
			var _job = $(this).closest("tr.jobtitle").next().find("td")[0];
			_job.className = _yorn.replace(_job.className, "");
		});
	})
	
	//$("#container,#spot").hover(function() {$("div.d2:visible").hide();});
	$(".lnb li div.d2").bind("mouseout",  function(e) {$(this).hide()});
	$(".lnb li div.d2").bind("mouseover", function(e) {$(this).show()});
});

