function cBut(nam) {

	document.images[nam].src = "image/home/" + nam + "2.gif"; }



function cBut2(nam) {

	document.images[nam].src = "image/home/" + nam + "1.gif"; }



function cBut3(nam) {

	document.images[nam].src = "image/menu/" + nam + "2.gif"; }



function cBut4(nam) {

	document.images[nam].src = "image/menu/" + nam + "1.gif"; }





/* LinkPopup CheckBrowser */

function chkBrowser(){

	oP = window.opera;

	n6 = document.getElementById;

	iE = document.all;

	n4 = document.layers;



	if (oP) {

		document.onmousemove = getOp;

	}

	else if (iE) {

		document.onmousemove = getIe;

	}

	else if (n6) {

		window.addEventListener("mousemove",getN6,true);

	}

	else if (n4) {

		window.captureEvents(Event.MOUSEMOVE);

		window.onmousemove = getN4;

	}

}



function getOp() {

	mouX = window.event.clientX + 20;

	mouY = window.event.clientY;

	}



function getN6(eve) {

	mouX = eve.clientX + window.pageXOffset + 20;

	mouY = eve.clientY + window.pageYOffset;

}



function getIe() {

	mouX = window.event.clientX + document.body.scrollLeft + 20;

	mouY = window.event.clientY + document.body.scrollTop;

}



function getN4(eve) {

	mouX = eve.x + 20;

	mouY = eve.y;

}



function oPop(id){

	if (oP) {

		document.getElementById(id).style.top = 150 + "px";

		document.getElementById(id).style.left = mouX + "px";

		document.getElementById(id).style.visibility = "visible";

		fixX = mouX; fixY = 150;

		mBox = 1;

	}

	else if (iE) {

		document.all(id).style.top = 150 +"px";

		document.all(id).style.left = mouX +"px";

		document.all(id).style.visibility = "visible";

		fixX = mouX; fixY = 150;

		mBox = 1;

	}

	else if (n6) {

		document.getElementById(id).style.top = 150 + "px";

		document.getElementById(id).style.left = mouX + "px";

		document.getElementById(id).style.visibility = "visible";

		fixX = mouX; fixY = 150;

		mBox = 1;

	}

	else if (n4) {

		document[id].top = 150;

		document[id].left = mouX;

		document[id].visibility = "visible";

		fixX = mouX; fixY = 150;

		mBox = 1;

	}

}



/* PopupClose */

function cls(){

	if (oP) {

		if (mBox == 1) {

			document.onmousedown = delw;

		}

	}

	else if (iE) {

		if (mBox == 1) {

			document.onmousedown = delw;

		}

	}

	else if (n6) {

		if (mBox == 1) {

			window.addEventListener("mousedown",delw,true);

		}

	}

	else if (n4) {

		if (mBox == 1) {

			window.captureEvents(Event.MOUSEDOWN);

			window.onmousedown = delw('pop1');

		}

	}

}



function delw() {

	nfixX = fixX + 105;

	nfixY = fixY + 113;

	if (mouX - 20 < fixX || mouX - 20 > nfixX || mouY < fixY || mouY > nfixY) {

		if (oP) {

			document.getElementById('pop1').style.visibility = "hidden";

		}

		else if (iE) {

			document.all('pop1').style.visibility = "hidden";

		}

		else if (n6) {

			document.getElementById('pop1').style.visibility = "hidden";

		}

	}

}





/* Open ConcertPage */

function oConc() {

	window.open("page/concert/concert0508.html","concert","toolbar=no,location=no,status=no,manubar=no,scrollbars=yes,width=640,height=500");

}



function SndoConc() {

	window.open("page/concert/concert0509.html","2ndconcert","toolbar=no,location=no,status=no,manubar=no,scrollbars=yes,width=640,height=500");

}



function oNowCon() {

	window.open("../../../page/concert/concert0508.html","concert","toolbar=no,location=no,status=no,manubar=no,scrollbars=yes,width=640,height=500");

}



function SndoNowCon() {

	window.open("../../../page/concert/concert0509.html","2ndconcert","toolbar=no,location=no,status=no,manubar=no,scrollbars=yes,width=640,height=500");

}



/* Open PDF */

function oPdf(URL) {

	window.open(URL,"pdf","toolbar=no,location=no,status=no,manubar=no,scrollbars=yes,width=700,height=500");

}



function winCont() {

	window.focus();

	window.moveTo(0,50);

}