
document.title = "½ÃÅ¥¾ÆÀÌ´åÄÄ(ÁÖ)";

/* Window open */
var aWindow = null;
function openWind(a,w,h,s) {
	if(aWindow != null){
		aWindow.close();
	}

	aWindow = window.open(a,"", "width="+w+",scrollbars="+s+",height="+h);
	return;
}

/* flash view */
function viewFlash(flag) {
	document.write(flag);
}

/* show hide div */
function showhideDisplay(showelement, hiddenelement){
	var str = hiddenelement.split(",");
	if( document.all[showelement].style.display == 'none' ){
		document.all[showelement].style.display = "block";
		for(i=0; i<str.length; i++){
			document.all[str[i]].style.display = "none";
		}
	} else {
		document.all[showelement].style.display = 'none'
	}
}


/* images mouse over */
function imgRollover() {
	var imgarr     = document.getElementsByTagName('img');
	var imgSrc     = new Array();
	var imgClass   = new Array();
	
	for (i=0;i<imgarr.length;i++){
		if (imgarr[i].className.indexOf('imgclass')!=-1) {	
			imgSrc[i]=imgarr[i].getAttribute('src');		
			imgClass[i]=imgarr[i].className;				
			imgarr[i].setAttribute('xsrc', imgSrc[i]);
			imgarr[i].onmouseover=function(){
				this.setAttribute('src',this.className.match(/ (\S+)/)[1])
			}
			imgarr[i].onmouseout=function(){
				this.setAttribute('src',this.getAttribute('xsrc'))
			}
		}
	}
}
if (document.addEventListener){
	window.addEventListener("load",imgRollover,false);
} else if (document.attachEvent){
	window.attachEvent("onload",imgRollover);
}
