function IsElement(id) {
	return document.getElementById(id) != null ? true : false;
}
function player(id,url,width,height,type) {
	if (!IsElement('p_' + id)) {
		var player = document.createElement('div');
		player.id  = 'p_' + id;
		player.style.cssText = 'display:block;margin:5px 0 0 2px';
		player.innerHTML = eval('player_' + type)(url.replace('"',''),width,height);
		setTimeout(function(){document.getElementById(id).appendChild(player)},200);
	} else {
		var p = document.getElementById(id);
		p.removeChild(p.lastChild);
	}
}
function player_rm(url,width,height,auto){
	if ($.browser.msie) {
		return "<object classid=\"CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" width=\""+width+"\" height=\""+height+"\"><param name=\"src\" value=\""+url+"\" /><param name=\"controls\" value=\"Imagewindow\" /><param name=\"console\" value=\"clip1\" /><param name='autostart' value='"+(!auto ? 0 : 1)+"'></object><br /><object classid=\"CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" width=\""+width+"\" height=\"44\"><param name=\"src\" value=\""+url+"\" /><param name=\"controls\" value=\"ControlPanel,StatusBar\" /><param name=\"console\" value=\"clip1\" /><param name='autostart' value='"+(!auto ? 0 : 1)+"'></object>";
	} else if ($.browser.mozilla) {
		return "<object data=\""+url+"\" type=\"audio/x-pn-realaudio-plugin\" width=\""+width+"\" height=\""+height+"\" autostart='"+(!auto ? 0 : 1)+"' console=\"clip1\" controls=\"Imagewindow\"><embed src=\""+url+"\" type=\"audio/x-pn-realaudio-plugin\" autostart='"+(!auto ? 0 : 1)+"' console=\"clip1\" controls=\"Imagewindow\" width=\""+width+"\" height=\""+height+"\"></embed></object><br /><object data=\""+url+"\" type=\"audio/x-pn-realaudio-plugin\" width=\""+width+"\" height=\"44\" autostart='"+(!auto ? 0 : 1)+"' console=\"clip1\" controls=\"ControlPanel,StatusBar\"><embed src=\""+url+"\" type=\"audio/x-pn-realaudio-plugin\" autostart='"+(!auto ? 0 : 1)+"' console=\"clip1\" controls=\"ControlPanel,StatusBar\" width=\""+width+"\" height=\"44\"></embed></object>";
	} else if ($.browser.safari) {
		return "<object type=\"audio/x-pn-realaudio-plugin\" width=\""+width+"\" height=\""+height+"\"><param name=\"src\" value=\""+url+"\" /><param name=\"controls\" value=\"Imagewindow\" /><param name=\"console\" value=\"clip1\" /><param name='autostart' value='"+(!auto ? 0 : 1)+"'></object><br /><object type=\"audio/x-pn-realaudio-plugin\" width=\""+width+"\" height=\"44\"><param name=\"src\" value=\""+url+"\" /><param name=\"controls\" value=\"ControlPanel,StatusBar\" /><param name=\"console\" value=\"clip1\" /><param name='autostart' value='"+(!auto ? 0 : 1)+"'></object>";
	} else {
		return "<object classid=\"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" width=\""+width+"\" height=\""+height+"\"><param name=\"src\" value=\""+url+"\" /><param name=\"controls\" value=\"Imagewindow\" /><param name=\"console\" value=\"clip1\" /><param name='autostart' value='"+(!auto ? 0 : 1)+"'><embed src=\""+url+"\" type=\"audio/x-pn-realaudio-plugin\" autostart='"+(!auto ? 0 : 1)+"' console=\"clip1\" controls=\"Imagewindow\" width=\""+width+"\" height=\""+height+"\"></embed></object><br /><object classid=\"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" width=\""+width+"\" height=\"44\"><param name=\"src\" value=\""+url+"\" /><param name=\"controls\" value=\"ControlPanel\" /><param name=\"console\" value=\"clip1\" /><param name='autostart' value='"+(!auto ? 0 : 1)+"'><embed src=\""+url+"\" type=\"audio/x-pn-realaudio-plugin\" autostart='"+(!auto ? 0 : 1)+"' console=\"clip1\" controls=\"ControlPanel,StatusBar\" width=\""+width+"\" height=\"44\"></embed></object>";
	}
}
function player_flash(url,width,height,auto){
	if ($.browser.msie) {
		return "<object classid=\"CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+width+"\" height=\""+height+"\"><param name=\"src\" value=\""+url+"\" /><param name='autostart' value='"+(!auto ? 0 : 1)+"'><param name=\"loop\" value=\"true\" /><param name=\"quality\" value=\"high\" /></object>";
	} else {
		return "<object data=\""+url+"\" type=\"application/x-shockwave-flash\" width=\""+width+"\" height=\""+height+"\"><param name='autostart' value='"+(!auto ? 0 : 1)+"'><param name=\"loop\" value=\"true\" /><param name=\"quality\" value=\"high\" /><EMBED src=\""+url+"\" quality=\"high\" width=\""+width+"\" height=\""+height+"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED></object>";
	}
}
function player_wmv(url,width,height,auto) {
	if (height<64) height = 64;
	if ($.browser.msie) {
		return "<object classid=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" width=\""+width+"\" height=\""+height+"\"><param name='autostart' value='"+(!auto ? 0 : 1)+"'><param name=\"src\" value=\""+url+"\" /><param name=\"ShowStatusBar\" value=\"true\" /></object>";
	} else if ($.browser.mozilla || $.browser.safari) {
		return "<object type=\"application/x-mplayer2\" width=\""+width+"\" height=\""+height+"\"><param name=\"src\" value=\""+url+"\" /><param name='autostart' value='"+(!auto ? 0 : 1)+"'><param name=\"ShowStatusBar\" value=\"true\" /></object>";
	} else {
		return "<object classid=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" width=\""+width+"\" height=\""+height+"\"><param name='autostart' value='"+(!auto ? 0 : 1)+"'><param name=\"src\" value=\""+url+"\" /><param name=\"ShowStatusBar\" value=\"true\" /><embed type=\"application/x-mplayer2\" src=\""+url+"\" width=\""+width+"\" height=\""+height+"\" ShowStatusBar=\"true\"></embed></object>";
	}
}
function player_mp3(url){
	var oSwf = new SWFObject(url,'',290,24,'7', '', false,'high');
	//oSwf.addParam('quality', 'high');
	//oSwf.addParam('wmode', 'Transparent');
	oSwf.Text();
}
function player_video(swf,file,w,h,auto){
	var oSwf = new SWFObject(swf+'?IsAutoPlay='+(!auto ? 0 : 1)+'&IsContinue=1&vcastr_file='+file,'',w,h,'7', '', false,'high');
	//oSwf.addParam('quality', 'high');
	//oSwf.addParam('wmode', 'transparent');
	oSwf.Text();
}
function player_wmplay(url,width,height,auto){
	document.write(player_wmv(url,width,height,auto));
}
function player_rmplay(url,width,height,auto){
	document.write(player_rm(url,width,height,auto));
}
function player_swfplay(url,width,height,auto){
	document.write(player_flash(url,width,height,auto));
}
