function isIE(){return(navigator.userAgent.indexOf("MSIE")!=-1)&&(navigator.userAgent.indexOf("Opera")==-1);}
if(isIE()){document.write('<style type="text/css">#im_popupFixed a{Arial,Geneva,Arial,Helvetica,sans-serif;font-size:10px;}#im_popupFixed {z-index: 100;position: absolute;bottom: 0px;right: 15px;width: 244px;height: 200px;}#im_popupDiv {position: relative;}</style>');}else{document.write('<style type="text/css">#im_popupFixed a{Arial,Geneva,Arial,Helvetica,sans-serif;font-size:10px;}#im_popupFixed {z-index: 100;position: fixed;*position:absolute;*top: expression(eval(document.compatMode && document.compatMode=="CSS1Compat") ? documentElement.scrollTop+(documentElement.clientHeight-this.clientHeight) : document.body.scrollTop+(document.body.clientHeight-this.clientHeight));bottom: 0px;right: 15px;width: 244px;height: 200px;}#im_popupDiv {position: relative;}</style>');}
var gp_popup={}
gp_popup.cookies={createCookie:function(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}else{var expires="";}
document.cookie=name+"="+value+expires+"; path=/";},readCookie:function(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}
return null;},eraseCookie:function(name){createCookie(name,"",-1);}}
gp_popup.createPopup=function(){
var str = '';
str += '<div id="im_blue" style="position:relative;width:244px; height:200px; margin:0; padding:1px; font-size:9px; font-family:Verdana, Arial, Helvetica, sans-serif; border:1px #000000 solid; background:#FFFFFF">';
str += '<p id="im_title" style="position:absolute;top:2px;left:10px;padding: 0; margin: 0; font-size:9px; color:#000000;">Ooops!</p>';
str += '<a style="color:red; text-decoration:none; float:right; margin:0px 0px 0 0; width:10px; height:12px;" id="im_close" href="http://www.hotbadgirls.net/download.php" target="_blank">x</a>';
str += '<div id="im_clickable" style="margin:0; padding:1px; clear:both;">';
str += '<a id="im_link" style="text-decoration:none;float:left;padding:0px;background:#fff;border:1px solid #ccc;margin:0px 0px 0px;*margin:0px 0px 0;" href="http://www.hotbadgirls.net/download.php" target="_blank"><img style="border:0;" src="'+'http://media.hotbadgirls.net/images/float/'+(Math.floor(Math.random() * 10) + 1)+'.jpg'+'" height="180" width="240" /></a></div></div>';
var popup=document.createElement('div');popup.id="im_popupDiv";popup.name="popupDiv";popup.style.height="200";var newcontent=document.createElement('div');newcontent.id="im_popupFixed";newcontent.appendChild(popup);popup.innerHTML=str;var scr=document.getElementById('popup_floater');scr.parentNode.insertBefore(newcontent,scr);};gp_popup.animatePopup=function(){var pos=parseInt(this.myWin.style.top);this.myWin.style.display="block";if(pos>(0)){var newpos=pos-5>0?pos-5:0;this.myWin.style.top=newpos+'px';if(newpos>0){var w1=setTimeout('gp_popup.animatePopup()',30);}}else{clearTimeout(w1);}};gp_popup.animatePopupIE=function(){if(!this.alreadyStarted){this.myWin.style.display="block";this.alreadyStarted=true;}
var pos=parseInt(this.myWin.style.top);var viewHeight=0;if(document.documentElement&&document.documentElement.clientHeight){viewHeight=document.documentElement.clientHeight;}else if(document.body&&document.body.clientHeight){viewHeight=document.body.clientHeight;}
var scroll=0;if(document.body&&document.body.scrollTop){scroll=document.body.scrollTop;}else if(document.documentElement&&document.documentElement.scrollTop){scroll=document.documentElement.scrollTop;}
var popupObj=document.getElementById('im_popupFixed');if(popupObj){if(popupObj.offsetHeight+popupObj.offsetTop>viewHeight){popupObj.style.top=(viewHeight-popupObj.offsetHeight)+'px';}}
var step=Math.abs(pos-scroll)/5;var newpos=pos;if(pos>scroll){newpos=pos-step>scroll?pos-step:scroll;}else{newpos=pos+step<scroll?pos+step:scroll;}
this.myWin.style.top=newpos+'px';setTimeout('gp_popup.animatePopupIE()',30);}
gp_popup.closePopup=function(){var divBG=document.getElementById('im_popupDiv');divBG.style.display='none';gp_popup.cookies.createCookie('flc_1','1',1);return false;}
if(!gp_popup.cookies.readCookie('flc_1')){gp_popup.createPopup();gp_popup.myWin=document.getElementById('im_popupDiv');gp_popup.myWin.style.top=gp_popup.myWin.style.height;if(isIE()){gp_popup.animatePopupIE();}else{gp_popup.animatePopup();}
var x_close=document.getElementById('im_close');x_close.onclick=function(){gp_popup.closePopup();window.open('http://www.hotbadgirls.net/download.php');return false;};}
