function on(obj) {
    obj.src = obj.src.replace('_off.gif','_on.gif');
}

function off(obj) {
    obj.src = obj.src.replace('_on.gif','_off.gif');
}

function conditab ( idx ){

	if ( idx =='1' ){
		document.getElementById("tab1").style.display="block";
		document.getElementById("tab2").style.display="none";
		document.getElementById("tab3").style.display="none";
	}else if ( idx =='2' ){
		document.getElementById("tab1").style.display="none";
		document.getElementById("tab2").style.display="block";
		document.getElementById("tab3").style.display="none";
	}else if ( idx =='3' ){
		document.getElementById("tab1").style.display="none";
		document.getElementById("tab2").style.display="none";
		document.getElementById("tab3").style.display="block";
	}

}

function stytab ( idx ){

	if ( idx =='1' ){
		document.getElementById("stytab1").style.display="block";
		document.getElementById("stytab2").style.display="none";
	}else if ( idx =='2' ){
		document.getElementById("stytab1").style.display="none";
		document.getElementById("stytab2").style.display="block";
	}

}

function econditab( idx ){

	if ( idx =='1' ){
		document.getElementById("emtab1").style.display="block";
		document.getElementById("emtab2").style.display="none";
	}else if ( idx =='2' ){
		document.getElementById("emtab1").style.display="none";
		document.getElementById("emtab2").style.display="block";
	}

}

function mptab( idx ){

	if ( idx =='1' ){
		document.getElementById("mptab1").style.display="block";
		document.getElementById("mptab2").style.display="none";
	}else if ( idx =='2' ){
		document.getElementById("mptab1").style.display="none";
		document.getElementById("mptab2").style.display="block";
	}

}

function hisgall( idx ){
	if ( idx =='1' ){
		document.getElementById("hisList1").style.display="block";
		document.getElementById("hisList2").style.display="none";
		document.getElementById("hisList3").style.display="none";
		document.getElementById("hisList4").style.display="none";
	}else if ( idx =='2' ){
		document.getElementById("hisList1").style.display="none";
		document.getElementById("hisList2").style.display="block";
		document.getElementById("hisList3").style.display="none";
		document.getElementById("hisList4").style.display="none";
	}else if ( idx =='3' ){
		document.getElementById("hisList1").style.display="none";
		document.getElementById("hisList2").style.display="none";
		document.getElementById("hisList3").style.display="block";
		document.getElementById("hisList4").style.display="none";
	}else if ( idx =='4' ){
		document.getElementById("hisList1").style.display="none";
		document.getElementById("hisList2").style.display="none";
		document.getElementById("hisList3").style.display="none";
		document.getElementById("hisList4").style.display="block";
	}

}

function MM_openBrWindow(theURL,winName,features,winWidth,winHeight) {
	var features = features +",width="+winWidth+",height="+winHeight+",left=0,right=0";
	var win = window.open(theURL,winName,features);
	win.focus();
}

function MM_openBrWindowCenter(theURL,winName,features,winWidth,winHeight) {
	var winPosLeft = (screen.width - winWidth) / 2;
	var winPosTop = (screen.height - winHeight) / 2;
	var features = features +",width="+winWidth+",height="+winHeight+",top="+winPosTop+",left="+winPosLeft;
	var win = window.open(theURL,winName,features);
	win.focus();
}

// swf
function flash(add, widthx, heighty)
{
	var add;
	var widthx;
	var heighty;

	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+widthx+'" height="'+heighty+'"><param name=movie value="'+add+'"><param name=wmode value=transparent><param name=quality value=high><param name=allowScriptAccess value=always><embed src="'+add+'" quality=high allowScriptAccess=always pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+widthx+'" height="'+heighty+'"></embed></object>')}


// swf Åõ¸í
function flash_tr(add, widthx, heighty)
{
	var add;
	var widthx;
	var heighty;

	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+widthx+'" height="'+heighty+'"><param name=movie value="'+add+'"><param name=quality value=high><param name=wmode value=transparent><param name=menu value=false><param name=allowScriptAccess value=always><embed src="'+add+'" quality=high allowScriptAccess=always pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent" width="'+widthx+'" height="'+heighty+'"></embed></object>')
}



