function flashshow(_swfFile,_width,_height,_bgcolor){ 
  document.write('<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 width='+_width+' height='+_height+' id='+_swfFile+' align=>'); 
  document.write('<param name=quality value=high>'); 
  document.write('<param name=salign VALUE=LT>');
  document.write('<param name=menu VALUE=false>');
  document.write('<param name=wmode value=transparent>'); 
  document.write('<param name=movie value='+_swfFile+'>'); 
  document.write('<EMBED src='+_swfFile+' wmode=transparent quality=high salign=LT bgcolor='+_bgcolor+' WIDTH='+_width+' HEIGHT='+_height+' NAME='+_swfFile+' ALIGN= TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED>'); 
  document.write('</object>');
}

function flashshowall(_swfFile,_bgcolor){ 
  document.write('<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 width=100% height=100% id='+_swfFile+' align=middle>'); 
  document.write('<param name=quality value=high>'); 
  document.write('<param name=salign VALUE=LT>'); 
  document.write('<param name=menu VALUE=false>'); 
  document.write('<param name="scale" value="noscale" />'); 
  document.write('<param name="salign" value="lt" />'); 
  document.write('<param name="allowFullScreen" value="true" />'); 
  document.write('<param name=wmode value=transparent>'); 
  document.write('<param name=movie value='+_swfFile+'>'); 
  document.write('<EMBED src='+_swfFile+' wmode=transparent scale=noscale quality=high align=middle allowFullScreen=true salign=LT bgcolor='+_bgcolor+' WIDTH=100% HEIGHT=100% NAME='+_swfFile+' ALIGN= TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED>'); 
  document.write('</object>'); 
}




function videoshow(n){
	document.write('<OBJECT ID="Player" width="517" height="451" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">'); 
	document.write('<param name="URL" value="/smh/data/'+n+'" />'); 
	document.write('<param name="DisplaySize" value="2"/>'); 
	document.write('</OBJECT>'); 
}

function audioshow(n){
	document.write('<OBJECT ID="Player" width="229" height="64" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">'); 
	document.write('<param name="URL" value="/audio/'+n+'.mp3" />'); 
	document.write('<param name="DisplaySize" value="2"/>'); 
	document.write('</OBJECT>'); 
}

function hideMenu(){
	document.getElementById("menuHolder").style.overflow='hidden';
}

function showMenu(){
	document.getElementById("menuHolder").style.overflow='visible';
}

function viewMovie() {
	window.open('/movie/index.php', 'popup' ,'width=630,height=304,top=0,left=0,scrollbars=no,resizable=no');
}

function viewMovie2() {
	window.open('/movie/index.php', 'popup' ,'width=630,height=304,top=0,left=0,scrollbars=no,resizable=no');
}

function musicStart(n) {
	parent.hr_right.audioFile=1;
	parent.hr_right.Player.URL = "/audio/"+n+".mp3";
}

function musicStop() {
   parent.hr_right.Player.controls.stop();
}

function musicPlay(n) {
   if(n!=''&&parent.hr_right.audioFile==0) parent.hr_right.Player.URL = "/audio/"+n+".mp3";
   else parent.hr_right.Player.controls.play();
}

function musicPause() {
   parent.hr_right.Player.controls.pause();
}

function songshow(n){
	document.write('<OBJECT ID="SongPlayer" width="180" height="64" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">'); 
	document.write('<param name="URL" value="/audio/'+n+'.mp3" />'); 
	document.write('<param name="DisplaySize" value="2"/>'); 
	document.write('</OBJECT>'); 
}

function openWindowFull(u){
	var vn_screenx = window.screen.width; // È­¸é½ºÅ©¸° ³ÐÀÌ
	var vn_screeny = window.screen.height; // È­¸é½ºÅ©¸° ³ôÀÌ
	window.open(u,'','width='+vn_screenx+',height='+vn_screeny+',toolbar=no,status=no,scrollbars=yes,resizable=no;');
}

function live_pop(n) {
	if(n==1) {
		window.open('/online_worship.php', 'worship' ,'width=500,height=615,top=0,left=100,scrollbars=no,resizable=no');
	} else {
		window.open('/online_worship.php', 'worship' ,'width=500,height=655,top=0,left=100,scrollbars=no,resizable=no');
	}
}