function swf(src,w,h){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="bgcolor" value="#ffffff">';
	html += '<param name="menu" value="false">';
	html += '<param name="swliveconnect" value="true">';
	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}

function swft(src,w,h){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="wmode" value="transparent">';
	html += '<param name="menu" value="false">';
	html += '<param name="swliveconnect" value="true">';
	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}


function mov(src,w,h,auto){
	html = '';
	html += '<embed src="'+src+'" width="'+w+'" height="'+h+'" autostart="'+auto+'"></embed>';
	document.write(html);
}

function sub_movie(src,w,h){
	html='';
	html +='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+w+'" height="'+h+'" id="FLVPlayer">';
	html +='<param name="movie" value="'+src+'" />';
	html +='<param name="salign" value="lt" />';
	html +='<param name="quality" value="high" />';
	html +='<param name="scale" value="noscale" />';
	html +='<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_2&streamName=flash/fullautomovie01&autoPlay=true&autoRewind=true" />';
	html +='<embed src="'+src+'" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_2&streamName=flash/fullautomovie01&autoPlay=true&autoRewind=true" quality="high" scale="noscale" width="'+w+'" height="'+h+'" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	html +='<\/object>';
	document.write(html);
}

function sub_movie_arc(src,w,h){
	html='';
	html +='														<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="177" height="120" id="FLVPlayer">';
	html +='                                                             <param name="movie" value="FLVPlayer_Progressive.swf" />';
	html +='                                                             <param name="salign" value="lt" />';
	html +='                                                             <param name="quality" value="high" />';
	html +='                                                             <param name="scale" value="noscale" />';
	html +='                                                             <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_2&streamName=mushiCF&autoPlay=true&autoRewind=true" />';
	html +='                                                             <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_2&streamName=mushiCF&autoPlay=true&autoRewind=true" quality="high" scale="noscale" width="177" height="120" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	html +='</object>';
	document.write(html);
}

function movie_view(w,h){
	html = '';
	html +='		<object id="Player" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"  	width="'+w+'" height="'+h+'">';
	html +='			<param name="uiMode" value="none">';
	html +='			<param name="enableContextMenu" value="false">';
	html +='			<param name="stretchToFit" value="true">';
	html +='			<param name="captioningID" value="Captions">';
	html +='			<param name="SAMIFileName" value="">';
	html +='		</object>';
	document.write(html);
}

function open_movie(a,b,m){ //movie player , a= bbs_id or cont_kind , b = cont_no or art_no, m = l-> lounge, c -> contents
	if(m=='l'){
		window.open('/movie_player/Viewer2.php?bbs_id='+a+'&art_no='+b+'&m=l','','width=400,height=520');
	}else if(m=='c'){
		window.open('/movie_player/Viewer2.php?cont_kind='+a+'&cont_no='+b+'&m=c','','width=400,height=520');
	}
}
	
