﻿// 이미지 롤오버
function imgMenuOver(containderID) {
	var objwrap = document.getElementById(containderID);
	var imgMenu = objwrap.getElementsByTagName("a");

	for (i=0; i<imgMenu.length; i++) {
		if(imgMenu[i].getElementsByTagName("img").length == 0) continue;

		if (imgMenu[i].getElementsByTagName("img")[0].src.indexOf("_on.gif") != -1 ) {
			continue;
		}
		imgMenu[i].onmouseover = function() {
			subImage = this.getElementsByTagName("img")[0];
			if (subImage.src.indexOf("_on.gif") != -1) return false;
			subImage.src = subImage.src.replace("_off.gif","_on.gif");
		}
		imgMenu[i].onfocus = function() {
			subImage = this.getElementsByTagName("img")[0];
			if (subImage.src.indexOf("_on.gif") != -1) return false;
			subImage.src = subImage.src.replace("_off.gif","_on.gif");
		}
		imgMenu[i].onmouseout = function() {
			subImage = this.getElementsByTagName("img")[0];
			subImage.src = subImage.src.replace("_on.gif", "_off.gif");
		}
		imgMenu[i].onblur = function() {
			subImage = this.getElementsByTagName("img")[0];
			subImage.src = subImage.src.replace("_on.gif", "_off.gif");
		}
	}
}

$(document).ready(function () {
	$('li.otherGame').hover (
		function() {
		 var imgSrc_Re = $(this).children('a').find('img').attr('src').replace("_open.gif","_close.gif");
		 $(this).children('a').find('img').attr('src',imgSrc_Re);
		 $('li.otherGame > ul').show();
	},
		function () {
		 var imgSrc_Re = $(this).children('a').find('img').attr('src').replace("_close.gif","_open.gif");
		 $(this).children('a').find('img').attr('src',imgSrc_Re);
		 $('li.otherGame > ul').hide();
	});
	
	$('li.otherGame a').focus(function() {
		$('li.otherGame > ul').show();
	});

	$('li.otherGame ul li:last-child a').blur(function() {
		$('li.otherGame > ul').hide();
	});	
});
var nBrowserCheck = $.browser;



