﻿function showcmp(id, width, height, url, vars, transparent){
	var wmode = transparent ? "transparent" : "opaque";
	var html = '';
	html += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	html += 'width="'+width+'" ';
	html += 'height="'+height+'" ';
	html += 'id="'+id+'"';
	html += '>';
	html += '<param name="movie" value="'+url+'" />';
	html += '<param name="allowFullScreen" value="true" />';
	html += '<param name="allowScriptAccess" value="always" />';
	html += '<param name="wmode" value="'+wmode+'" />';
	html += '<param name="flashvars" value="'+vars+'" />';
	html += '<embed type="application/x-shockwave-flash" ';
	html += 'width="'+width+'" ';
	html += 'height="'+height+'" ';
	html += 'name="'+id+'" ';
	html += 'src="'+url+'" ';
	html += 'allowfullscreen="true" ';
	html += 'allowscriptaccess="always" ';
	html += 'wmode="'+wmode+'" ';
	html += 'flashvars="'+vars+'"'
	html += '></embed>';
	html += '</object>';
	document.write(html);
}
var wen = {
	addFav:function (title) {
		var title = title || document.getElementsByTagName("title")[0].innerHTML;
		if( document.all ) {
			window.external.AddFavorite(location.href, title);
		}else if (window.sidebar) {
			window.sidebar.addPanel(title, location.href,"");
		} else if( window.opera && window.print ) {
			return true;
		}
	},
	setHome:function(obj,host){
		if(!host){
			var host = window.location.href;
		}
		obj.style.behavior = 'url(#default#homepage)';
		obj.setHomePage(host);
	}
};
document.write ('<base target="_blank">');
function hanurl(url) {
var sgkey = $D('sb', 'value');
var slurl = window.location.href;
slurl=slurl.replace(/play/g,"down");
slurl=slurl.replace(/html/g,"lrc");
cmp.movie = "/mp/cmp.swf?skins=skins/vplayer.zip&src="+url+"&lrc="+slurl+"&label="+sgkey+"&backgrounds=";
//cmp.play();
}
