var ns_oio = document.layers||navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
var ns6_oio = (!document.all && document.getElementById)?true:false;
var debug=false;

if(ns6_oio&&!debug)
	document.write('<div style="position:relative;z-index:1;>"');

var message_oio="<a href=\"http://www.888.com/CasinoInstaller?s=111111111111111111&sr=366048&lang=en\"><img src=\"images/popup-1.gif\" border=0></a>";
var cookie_oio="YZr7YYqX";
var drag_oio=false,x_oio,y_oio,a_oio,b_oio;

function move(e){
	if (drag_oio){
		left_oio=ns6_oio?a_oio+e.clientX-x_oio:a_oio+event.clientX-x_oio;
		optinover.style.left=left_oio;
		top_oio=ns6_oio?b_oio+e.clientY-y_oio:b_oio+event.clientY-y_oio-document.body.scrollTop;
		optinover.style.top=top_oio+(ns6_oio?0:document.body.scrollTop);
		shadow.style.left=left_oio+3;
		shadow.style.top=top_oio+(ns6_oio?0:document.body.scrollTop)+3;
	 return false;
	}
}

function drags_oio(e){
	if (!document.all&&!ns6_oio)
		return;

	var obj_oio=ns6_oio?e.target:event.srcElement;
	var topelement=ns6_oio?"HTML":"BODY";

		while (obj_oio.tagName!=topelement&&obj_oio.className!="draggable_oio"){
			obj_oio=ns6_oio?obj_oio.parentNode:obj_oio.parentElement;
		}
	if (obj_oio.className=="draggable_oio"){
		drag_oio=true;
		a_oio=parseInt(optinover.style.left+0);
		b_oio=parseInt(optinover.style.top+0);
		x_oio=ns6_oio?e.clientX:event.clientX;
		y_oio=ns6_oio?e.clientY:event.clientY;
		document.onmousemove=move;
		return false;
	}
}

	if(!ns_oio)
		document.onmousedown=drags_oio;
	if(!ns_oio)
		document.onmouseup=new Function("drag_oio=false");

function create_oio(){
d_oio = document;

if(ns6_oio&&!debug)
	d_oio.write('</div>');

d_oio.write('<div id="shadow" class="draggable_oio" style="position:absolute;visibility:hidden;"><table height=100% width=100% align=right valign=bottom cellpadding=0 cellspacing=0 border=0><tr height=10><td></td></tr></table></div>');
d_oio.write('<div id="optinover" class="draggable_oio" style="border-style:outset;border-width:0;visibility:hidden;position:absolute;z-index:100;background-color:lightgrey;width:200;height:200;">');
d_oio.write('<table id=optinoverTable height=200 width=200 align=left valign=top cellpadding=0 cellspacing=0 border=0 bgcolor=#4444cb style="cursor:move;background-color:#4444cb;border-style:solid;border-width:0;border-color:#4444cb;"><tr><td width=200 bgcolor=#4444cb height=26><font color=white face=Arial,verdana style="font-size:13px"><b>&nbsp;');
d_oio.write('www.casinonet.org.uk');
d_oio.write('</b></font></td><td bgcolor=#4444cb align=right valign=center height=26 width=10><a onclick="hide_oio();" onmouseover="this.style.cursor=\'default\';this.style.background=\'#FF7359\'" onmouseout="this.style.cursor=\'default\';this.style.background=\'#E76741\'" style="background:#E76741;border:0;color:white;font-family:arial,system,verdana;margin-left:0px;padding-left:4px;padding-right:'+(ns6_oio?'3':'4')+'px;padding-top:'+(ns6_oio?'0':'3')+'px;'+(ns6_oio?'padding-bottom:1px;':'')+'text-decoration:none;font-size:16px;left-indent:0px;"><b>X</b></a></td></tr><tr height=100%><td valign=top colspan=2>');
d_oio.write(message_oio);
d_oio.write('</td></tr></table></div>');}

function create_ns_oio(){d_oio = document;d_oio.open();d_oio.close();}
if(getcookie_oio(cookie_oio)==""){if(ns_oio){create_ns_oio();}else{create_oio();}}
var id_oio,d_oio,optinover,shadow,height_oio,left_oio,top_oio;

function var_oio(){
	id_oio = "optinover";
	d_oio = document;
	optinover = d_oio.getElementById?d_oio.getElementById(id_oio):d_oio.all[id_oio];
	shadow = d_oio.getElementById?d_oio.getElementById("shadow"):d_oio.all["shadow"];
	b=(typeof( window.innerWidth ) == 'number')?window.innerWidth:(document.documentElement &&document.documentElement.clientWidth?document.documentElement.clientWidth:(document.body&&document.body.clientWidth?document.body.clientWidth:800));
	left_oio=(b/2)-(520/2)-30;
	top_oio=90;
}

	if (!ns_oio&&getcookie_oio(cookie_oio)==""){
		var_oio();
		repos_oio();
	}

function repos_oio(){if(ns6_oio){optinover.style.top = top_oio+window.pageYOffset;shadow.style.top = top_oio+window.pageYOffset+3;optinover.style.height=document.defaultView.getComputedStyle(document.getElementById("optinoverTable"), "").getPropertyValue("height");shadow.style.height=document.defaultView.getComputedStyle(document.getElementById("optinoverTable"), "").getPropertyValue("height");shadow.style.width = document.defaultView.getComputedStyle(document.getElementById("optinoverTable"), "").getPropertyValue("width");}else{optinover.style.top = top_oio+d_oio.body.scrollTop;shadow.style.height=optinover.offsetHeight;shadow.style.top = (top_oio*1+3*1)+d_oio.body.scrollTop;shadow.style.width = optinover.style.width;}optinover.style.left = left_oio;shadow.style.left = left_oio+3;}

function hide_oio(){
		optinover.style.visibility='hidden';
		shadow.style.visibility='hidden';
		window.scrollBy(0,1);
		if(!ns6_oio)
			setTimeout('window.document.body.onscroll=null;',2000);
		optinover.style.left=0;
}


function show_ns_oio(){
        message_oios = message_oio.split("<P><UL>");
        message_oio=message_oios[0];
                        for(i=1;i<message_oios.length;i++){
                                message_oio+="\n"+message_oios[i];
                        }
        message_oios = message_oio.split("<P>");
        message_oio=message_oios[0];
                        for(i=1;i<message_oios.length;i++){
                                message_oio+="\n\n"+message_oios[i];
                        }
        message_oios = message_oio.split("<BR>");
        message_oio=message_oios[0];
                        for(i=1;i<message_oios.length;i++){
                                message_oio+="\n"+message_oios[i];
                        }
        message_oios = message_oio.split("<LI>");
        message_oio=message_oios[0];
                        for(i=1;i<message_oios.length;i++){
                                message_oio+="\n* "+message_oios[i];
                        }
        message_oios = message_oio.split("<");
        message_oio=message_oios[0];
                        for(i=1;i<message_oios.length;i++){
                                temp_oios = message_oios[i].split(">");
                                temp_oio="";
                                if(temp_oios.length>1){
                                        temp_oio=temp_oios[1];
                                } else {
                                        temp_oio=message_oios[i];
                                }
                                message_oio+=temp_oio;
                        }
}
var temp_top_oio;

function show_oio(){
        if(getcookie_oio(cookie_oio)==""){
                if(ns_oio){
                        show_ns_oio();
                } else{
                temp_top_oio = (ns6_oio?window.pageYOffset:d_oio.body.scrollTop)-(ns6_oio?document.defaultView.getComputedStyle(document.getElementById("optinoverTable"), "").getPropertyValue("height").substring(0,document.defaultView.getComputedStyle(document.getElementById("optinoverTable"), "").getPropertyValue("height").length-2):optinover.offsetHeight)-3;
                optinover.style.top=temp_top_oio;

                        if(ns6_oio){
                                shadow.style.top=0;
                        } else {
                                shadow.style.top=0-optinover.offsetHeight;}optinover.style.visibility='visible';shadow.style.visibility='visible';move_oio();if(!ns6_oio){window.document.body.onscroll=repos_oio;
                        }
                }
setcookie_oio();}
}

function move_oio(){if(optinover.style.top.substring(0,optinover.style.top.length-2)<90+(ns6_oio?window.pageYOffset:d_oio.body.scrollTop)){temp_top_oio+=10;optinover.style.top = temp_top_oio;shadow.style.top = temp_top_oio+3;setTimeout("move_oio()",10);}}

function getcookie_oio(cookieName) {var id = cookieName + "=";
var cookievalue = "";
if (document.cookie.length>0) {offset = document.cookie.indexOf(id);
if (offset != -1) {cookievalue = "x";}}return cookievalue;}

function setcookie_oio () {
var today = new Date();
var expdate = new Date(today.getTime() + 3650 * 24 * 60 * 60 * 1000);
// document.cookie = cookie_oio+"="+escape("done")+"expires="+expdate.toGMTString();
}
