/* intro_about */

$(function(){
	$("#v2-site:not(.products) .navli").css("cursor","pointer");
	
	$("#v2-site:not(.products) li[class *=navlin]").each(function(){
 	
		var _this = $(this);
		var i= _this.attr("id");
		var _thisover = "."+i+"-select";
		var _a = _this.find("a");
		var _con = _a.attr("href");
		
		_this.click(function(){
			$(".navlis").hide();
			$(_thisover).show();
			$(".navlin").css("display","none").show();
			_this.hide();
			$(".site-detail").hide("1000");
			$(_con).show("1000");
			//return false;
		});
	});
});

/* intro_agency */
$(function(){
	$("#mnav li a").each(function(){
 		var _this = $(this);
		var _href = _this.attr("href");
		
		_this.click(function(){
			$("#mnav li").removeClass();
			$(this).parents("li").addClass("select");
			$(".snavT ul").css("display","none");
			//$(".content-part div").css("display","none");     //change is made here
			$(_href).css("display","");
		});
	});
});

/* pro_index */

$(function(){
	$("#pro-nav li a").each(function(){
 
		var _this = $(this);
		var _href = _this.attr("href");
		
		_this.click(function(){
			$("#pro-nav li").removeClass();
			$(this).parents("li").addClass("select");
			$(".prolist ul").css("display","none");
			$(_href).css("display","");
		});
	});
});

$(function(){
	$(".prolist li .propic").each(function(){
 
		var _this = $(this);
		var _thisnote = $(this).find("div");
		
		_this.hover(function(){
			_thisnote.css("display","block");
		}, function(){
			_thisnote.css("display","none");
		});
		
		_thisnote.hover(function(){
			_thisnote.css("display","block");
		}, function(){
			_thisnote.css("display","none");
		});
	});
});

