//<![CDATA[
function $(Obj){ return document.getElementById(Obj) }

function show_wideo(url, w, h, color){
	if(w == null) w = 510;
	if(h == null) h = 305;
	
	!document.all ? $('closeBtn').style.right = '-2px' : $('closeBtn').style.right = '-2px';
	!document.all ? $('closeBtn').style.top   = '-2px' : $('closeBtn').style.top   = '-8px'
	
	!document.all ?  BW = window.innerWidth  : BW = document.body.clientWidth;
	!document.all ?  BH = window.innerHeight : BH = document.body.clientHeight;
	ST = document.body.scrollTop;
	
	$('FlashPlayer').style.left = (BW-w) /2 + 'px';
	$('FlashPlayer').style.top = (BH-h) /2 + ST + 'px';
	$('FlashPlayer').style.cursor = 'move';
	$('FlashPlayer').style.height =  h + 30 + 'px';
	
	$('flashcontent').style.width = w + 20 + 'px';
	$('flashcontent').style.height = h + 20 + 'px'; 
	$('flashcontent').style.backgroundColor = '#000000';
	
	$('flashcontent').innerHTML = '<!--[if !IE]> --><object type="application/x-shockwave-flash" data="FSplayer.swf?file='+url+'" width="510" height="305"> <!-- <![endif]--> <!--[if IE]> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="510" height="305"> <param name="movie" value="FSplayer.swf?file='+url+'" /> <!--><!--dgx--> <param name="allowFullScreen" value="true" /> <param name="loop" value="true" /> <param name="menu" value="false" /> </object> <!-- <![endif]--> ';
	$('FlashPlayer').style.display = 'block';
}

function hide_wideo(){
	$('FlashPlayer').style.display = 'none'; 
	$('flashcontent').innerHTML  = '';
}
//]]>