// media player 
function meplayer(fileurl,width,height){
	if(-1 != navigator.userAgent.indexOf("MSIE"))
	{
	document.write('<div class="playerbox">');
	document.write('<div class="inbox">');
	document.write('<OBJECT id="player" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width='+width+' height='+height+'>');
	document.write('<param name="filename" value="'+fileurl+'" />');
	document.write('<param name="showcontrols" value="false" />');
	document.write('<param name="volume" value="100" />');
	document.write('</OBJECT>');
	document.write('</div>');
	document.write('<ul class="btn">');
	document.write('<li><a href="#" onclick="play(); return false;"><img src="../../images/Puplicity/btn_movie_play.gif" alt="play"/></a></li>');
	document.write('<li><a href="#" onclick="pause(); return false;"><img src="../../images/Puplicity/btn_movie_pause.gif" alt="pause"/></a></li>');
	document.write('<li><a href="#" onclick="stop(); return false;"><img src="../../images/Puplicity/btn_movie_stop.gif" alt="stop"/></a></li>');
	document.write('</ul>');
	document.write('</div>');
	}
	else if(-1 != navigator.userAgent.indexOf(""))
	{
	
	document.write('<embed type="application/x-mplayer2" id="player" src="'+fileurl+'" name="player" width="'+width+'" height="'+height+'"  />');
	/*
	document.write('<span class="hiddenlayer">'); 
	document.write('<OBJECT id="player" type="application/x-ms-wmp" width='+width+' height='+height+'>'); 
	document.write('<param name="filename" value="'+fileurl+'" />');
	//document.write('<param name="ShowControls" value="false" />');
	document.write('<param name="volume" value="100" />');
	document.write('</OBJECT>');
	document.write('</span>');
	*/

	} 
}

function play(){
	player.play();
}
function pause(){
	player.pause();
}
function stop(){
	player.stop();
}

function setPng24(obj) {
obj.width=obj.height=1;
obj.className=obj.className.replace(/\bpng24\b/i,'');
obj.style.filter =
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
obj.src='/images/comm/blank.gif'; // 404error 대처 
return '';
}


// image on/off Change
function imgChg(obj) {		/* onClick시 image-change, [ex:	imgChg(this); ] */
	if(obj.src.indexOf("off.gif") != -1) obj.src = obj.src.replace("off.gif", "on.gif");
	else if(obj.src.indexOf("on.gif") != -1) obj.src = obj.src.replace("on.gif", "off.gif");
}

// Content Display
function contView(obj) {	/* obj = id값(name), [ex:	contView('idname'); ]*/
	var target = document.getElementById(obj);
	target.style.display = (target.style.display=='none' ? 'block':'none');
}

// Content Display
function fsite(obj) {	/* obj = id값(name), [ex:	contView('idname'); ]*/
	var target = document.getElementById(obj);
	target.style.visibility = (target.style.visibility=='hidden' ? 'visible':'hidden');
}



