function request(name) {
	var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
	var r = window.location.search.substr(1).match(reg);
	if (r!=null) {
		return unescape(r[2]); 
	} else {
		return null;
	}
}
function writeFL(videoId,showcommendvideos)
{
    var pagepath="http://client.joy.cn/flvplayer/bdplayer.swf?strvid="+videoId;
    if(showcommendvideos)
    {
        pagepath+="&howcommendvideos="+howcommendvideos;
    }
	document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="480" height="410">');
	document.writeln('<param name="movie" value="'+pagepath+'" />');
	document.writeln('<param name="allowFullScreen" value="true" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<embed src="'+pagepath+'" allowfullscreen="true" width="480" height="410" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed></object>');
}
var v = request('videoId');
document.write('<div style="text-align:center">');
writeFL(v,window.mj_ShowCommendVideos)
document.write('</div>');
