var n = navigator;
var ua = n.userAgent;

var home_site		= 'http://adtools.gossipkings.com/flvads/' + base_id;
var seq				= Math.floor(Math.random() * 3) + 1
var action_player 	= home_site + '/lib/im_common/chat_player.swf';
var action_flv		= home_site + '/lib/im_common/0' + seq + '.flv';
var background_image	= home_site + '/lib/im_common/bg_flv_2.gif';
var close_button	= home_site + '/lib/im_common/close.gif';

function moveIt(id,x){
  var supported=(document.getElementById);
  if(!supported) return;
  var divPath=document.getElementById(id);
  var currPos=parseInt(divPath.style.bottom);
  divPath.style.display='block';
  if(currPos<x){
    currPos+=5;divPath.style.bottom=currPos+"px";
    setTimeout("moveIt('"+id+"',"+x+")",15)
  }
}
window.onload=function(){moveIt('video',-4)};

if (-1 != ua.indexOf( 'Firefox' )){
document.write('<div id="video" style="bottom:-200px;display:none;">');
document.write('        <div class="container" style="background-image: url('+background_image+') ! important;">');
document.write('                <div class="video">');
document.write('                        <object style="visibility: visible;" id="videoDiv" data="'+action_player+'" type="application/x-shockwave-flash" height="104" width="135">');
document.write('                        <param value="false" name="menu">');
document.write('                        <param value="transparent" name="wmode">');
document.write('                        <param value="flvURL='+action_flv+'&amp;targetURL='+ref_url+'" name="flashvars">');
document.write('                        </object>');
document.write('                </div>');
document.write('                <div class="close" style="z-index: 4000;">');
document.write('                  <img src="'+close_button+'" onclick="document.getElementById(\'video\').style.display=\'none\';" border="0" height="9" width="9">');
document.write('                </div>');
document.write('        </div>');
document.write('</div>');
}else	{
document.write('&nbsp;');
document.write('<div id="video" style="bottom:-200px;display:none;">');
document.write('	<div class="container" style="background-image: url('+background_image+') ! important;">');
document.write('		<div class="video">');
document.write('			<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="visibility: visible;" id="videoDiv"');
document.write('			codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"  height="104" width="135" id="unique_id" >');
document.write('			<param name="allowScriptAccess" value="sameDomain" />');
document.write('			<param name="movie" value="'+action_player+'" />');
document.write('			<param name="wmode" value="transparent" />');
document.write('			<param name="scale" value="exactfit" />');
document.write('			<param name="quality" value="high" />');
document.write('			<param name="bgcolor" value="#333" />');
document.write('			<param name="wmode" value="transparent" />');
document.write('			<param name="flashvars" value="flvURL='+action_flv+'&targetURL='+ref_url+'" />');
document.write('			<param name="menu" value="false" />');
document.write('			<embed src="'+action_player+'" name="unique_id" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" 	');
document.write('			pluginspage="http://www.adobe.com/go/getflashplayer" quality="high"  height="104" width="135"');
document.write('			flashvars="flvURL='+action_flv+'&targetURL='+ref_url+'" />');
document.write('			</object>');
document.write('		</div>');
document.write('	</div>	');
document.write('</div>');
}