///µ¿¿µ»ó ÇÃ·¹ÀÌ¾î ±¸Çö///////////////////////////////////
// sUrl          : url
// sId           : id
// sWidth        : source width
// sHeight       : source height
// sShowControl  : ShowControls ( for true or false )
/////////////////////////////////////////////////////////
function diplayPlayer(sUrl,sId,sWidth,sHeight,sShowControl){
	var returnval = "";
	
	returnval = "<OBJECT CLASSID=\"clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95\"";
	if (sId!="")
		returnval += " id="+ sId;
	if (sWidth!="")
		returnval += " width="+ sWidth;
	if (sHeight!="")
		returnval += " height="+ sHeight;
	returnval += ">";	
	returnval += "<PARAM NAME=\"filename\" VALUE=\""+ sUrl +"\">";
	if (sShowControl!="")
	{
		returnval += "<PARAM NAME=\"ShowControls\" VALUE=\""+ sShowControl +"\">";
	}
	
	returnval += "</OBJECT>";

	return returnval;
}

///µ¿¿µ»ó ÇÃ·¹ÀÌ¾î ±¸Çö///////////////////////////////////
// sUrl          : url
// sId           : id
// sWidth        : source width
// sHeight       : source height
// sShowControl,sShowAudioControls,sShowPositionControls,sShowTracker
// sShowCaptioning,sShowGotoBar,sShowStatusBar,sAutoRewind : ( for true or false )
/////////////////////////////////////////////////////////
function diplayPlayer2(sUrl,sId,sWidth,sHeight,sShowControl,sShowAudioControls,sShowPositionControls,
	sShowTracker,sShowCaptioning,sShowGotoBar,sShowStatusBar,sAutoRewind){

	var returnval = "";
	
	returnval = "<OBJECT ";
	if (sId!="")
		returnval += " ID="+ sId;
	if (sWidth!="")
		returnval += " WIDTH="+ sWidth;
	if (sHeight!="")
		returnval += " HEIGHT="+ sHeight;
	returnval += " CLASSID=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" STANDBY=\"Loading Windows Media Player components...\" TYPE=\"application/x-oleobject\">";	

	returnval += "<PARAM NAME=\"FileName\" VALUE=\""+ sUrl +"\">";
	if (sShowControl!="")
		returnval += "<PARAM NAME=\"ShowControls\" VALUE=\""+ sShowControl +"\">";
	if (sShowAudioControls!="")
		returnval += "<PARAM NAME=\"ShowAudioControls\" VALUE=\""+ sShowAudioControls +"\">";
	if (sShowPositionControls!="")
		returnval += "<PARAM NAME=\"ShowPositionControls\" VALUE=\""+ sShowPositionControls +"\">";
	if (sShowTracker!="")
		returnval += "<PARAM NAME=\"ShowTracker\" VALUE=\""+ sShowTracker +"\">";
	if (sShowCaptioning!="")
		returnval += "<PARAM NAME=\"ShowCaptioning\" VALUE=\""+ sShowCaptioning +"\">";
	if (sShowGotoBar!="")
		returnval += "<PARAM NAME=\"ShowGotoBar\" VALUE=\""+ sShowGotoBar +"\">";
	if (sShowStatusBar!="")
		returnval += "<PARAM NAME=\"ShowStatusBar\" VALUE=\""+ sShowStatusBar +"\">";
	if (sAutoRewind!="")
		returnval += "<PARAM NAME=\"AutoRewind\" VALUE=\""+ sAutoRewind +"\">";

	returnval += "</OBJECT>";

	return returnval;
}

///µ¿¿µ»ó ÇÃ·¹ÀÌ¾î ±¸Çö///////////////////////////////////
// sUrl          : url
// sId           : id
// sWidth        : source width
// sHeight       : source height
// sShowControl  : ShowControls ( for true or false )
// sAutoStart
/////////////////////////////////////////////////////////
function diplayPlayer3(sUrl,sId,sWidth,sHeight,sShowControl,sAutoStart){
	var returnval = "";
	
	returnval = "<OBJECT CLASSID=\"clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95\"";
	if (sId!="")
		returnval += " id="+ sId;
	if (sWidth!="")
		returnval += " width="+ sWidth;
	if (sHeight!="")
		returnval += " height="+ sHeight;
	returnval += ">";	
	returnval += "<PARAM NAME=\"filename\" VALUE=\""+ sUrl +"\">";
	if (sShowControl!="")
	{
		returnval += "<PARAM NAME=\"ShowControls\" VALUE=\""+ sShowControl +"\">";
	}
	if (sAutoStart!="")
	{
		returnval += "<PARAM NAME=\"AutoStart\" VALUE=\""+ sAutoStart +"\">";
	}
	
	returnval += "</OBJECT>";

	return returnval;
}

///µ¿¿µ»ó ÇÃ·¹ÀÌ¾î ±¸Çö///////////////////////////////////
// sUrl          : url
// sId           : id
// sWidth        : source width
// sHeight       : source height
// sStyle        : CSS
// sShowControl  : ShowControls ( for true or false )
// sAutoStart
// sTransparentAtStart
/////////////////////////////////////////////////////////
function diplayPlayer4(sUrl,sId,sWidth,sHeight,sStyle,sShowControl,sAutoStart,sTransparentAtStart){
	var returnval = "";
	
	returnval = "<OBJECT CLASSID=\"clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95\"";
	if (sId!="")
		returnval += " id="+ sId;
	if (sWidth!="")
		returnval += " width="+ sWidth;
	if (sHeight!="")
		returnval += " height="+ sHeight;
	if (sStyle!="")
		returnval += " style=\""+ sStyle +"\"";
	returnval += ">";	
	returnval += "<PARAM NAME=\"filename\" VALUE=\""+ sUrl +"\">";
	if (sShowControl!="")
		returnval += "<PARAM NAME=\"ShowControls\" VALUE=\""+ sShowControl +"\">";
	if (sAutoStart!="")
		returnval += "<PARAM NAME=\"AutoStart\" VALUE=\""+ sAutoStart +"\">";
	if (sTransparentAtStart!="")
		returnval += "<PARAM NAME=\"TransparentAtStart\" VALUE=\""+ sTransparentAtStart +"\">";

	returnval += "</OBJECT>";
	return returnval;
}

// write document contents
function documentWrite(src){
	document.write(src);
}
/////////////////////////////////////////////////////////