//=============================================
// BlWin2()
//=============================================
$(function() {
	var anchors = $("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") &&
		anchor.getAttribute("rel") == "bl")
		anchor.target = "_blank";
	}
});

//=============================================
// SmartRollOver()
//=============================================
$(function() {
	var postfix = '_on';
	$('.ov').not('[src*="'+ postfix +'."]').each(function() {
		var img = $(this);
		var src = img.attr('src');
		var src_on = src.substr(0, src.lastIndexOf('.'))
		           + postfix
		           + src.substring(src.lastIndexOf('.'));
		$('<img>').attr('src', src_on);
		img.hover(
			function() {
				img.attr('src', src_on);
			},
			function() {
				img.attr('src', src);
			}
		);
	});
});

//=============================================
// areaOver()
//=============================================
$(function() {
	$(".hBlock").hover(
		function() {$(this).addClass("hover");},
		function() {$(this).removeClass("hover");}
	);
	$(".hCell").hover(
		function() {$(this).addClass("hover");},
		function() {$(this).removeClass("hover");}
	);
	$("#bbsEvSect .memDetail").hover(
		function() {$(this).addClass("hover");},
		function() {$(this).removeClass("hover");}
	);
	$(".bbsEvSect .memDetail").hover(
		function() {$(this).addClass("hover");},
		function() {$(this).removeClass("hover");}
	);
	$(".scheSect td").hover(
		function() {$(this).addClass("hover");},
		function() {$(this).removeClass("hover");}
	);
});

