

var exit=0;
function confirmExit() {
if (exit==0) {
window.open('/?EXIT&refererID=501011&agent=mgc1&lang=1');
	 }
	}

function loadpopunder(){}
function Exit(){
self.exit=1;
top.exit=1;
}
function PopPhone(Content)
{
    var PhoneWindow
    if(window.document.FrmPhone.SupportPhones.selectedIndex!=0)
    {
        PhoneWindow = window.open('','',"toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=260,height=140,left=300,top=240");
        PhoneWindow.document.write('<html><head><title>Contact Support by Telephone - Casino-on-Net</title></head><body bgcolor="#4b9e3b"><table width="%100" align="center"><tr><td valign="middle"><br><b><font face="Verdana" color="#ffffff" size="2">' + Content + '</font></b></td></tr></table></body></html>');
    }
}
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
function window_onscroll()
{
    if(document.all && document.getElementById) //added for IE4
    {
        if(window.document.getElementById("scrollPict"))
            window.document.getElementById("scrollPict").style.top=document.body.scrollTop+pictTop;
    }
    else if(document.all && !document.getElementById) //added for IE4
    {
        if(document.all['scrollPict'])
            document.all['scrollPict'].style.top=document.body.scrollTop+pictTop;
    }
}

function HandCursor(obj)
{
    obj.style.cursor='hand';
}
function ChangePic(PicName,imgFile)
{
	document[PicName].src=imgFile
}
function PopUpBonus()
	{
				PopupWindow = null;
				setTimeout("questionOpener()", 5000);
	}
function questionOpener() {
if (confirm('Click OK to download our free software while browsing the site')){
document.location.href = '/download_.cgi';
 }
}
function openPromWindow(num)
{
	
		var url= "http://playersclub.888.com/?lang=&sr=366048";

    nwin=window.open(url, "nwin",config="scrollbars=yes,resizable=yes,toolbar=yes,location=yes,status=yes,menubar=yes,height=450,width=650");
    nwin.focus();
}
function OpeneCogra()
{
var w = 520;
var h = 520;
var l = (window.screen.width-w)/2;
var t = (window.screen.height-h)/2;
window.open("/en/ecogra.htm","eCogra","resizable=yes,status=no,scrollbars=no,toolbar=no,menubar=no,left=" + l + ",top=" + t + ",width=" + w + ",height=" + h);
}
function ForGembl(){
					window.open("http://www.gamblersanonymous.org/","","width=400,height=430,resizable=yes,status=yes,scrollbars=yes,toolbar=yes,menubar=yes");
		   }
function OpenPop(adres)
	{
	  var w = 480;
	  var h = 352;
	  var l = (window.screen.width-w)/2;
	  var t = (window.screen.height-h)/2;
	  var windowprops = "location=no,scrollbars=auto,menubars=no,toolbars=no,resizable=no,left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
	  window.open(adres,"Flush",windowprops);
	}
function OpenPopUp(Look,location)
{
    var w = 314;
    var h = 459;
    var l = (window.screen.width-w)/2;
    var t = (window.screen.height-h)/2; 
    var filename = location + "popupgames.htm";
    
    if ((Look == "33") || (Look == "34")){filename = location + "msenter.htm"; h = 360;} // Mini Site
    window.open(filename,null,"height=" + h + ",width=" + w + ",status=no,toolbar=no,menubar=no,location=no,resize=no,left="+l+",top="+t);
}
