window.onerror=new Function("return true");
var links="no";
if (window.screen) {
    window.resizeTo(screen.availWidth,screen.availHeight);
    self.moveTo(0,0);
}

function fm(){
if (document.URL.indexOf("casinovr.com") == -1)
  window.open("globalcasinomovie.gjsp","","top=0,left=0,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=550,height=400")
else
  window.open("cvrglobalcasinomovie.gjsp","","top=0,left=0,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=550,height=400")
}

function remote() {
links="yes";
document.cookie="visit=''";
    msgWindow =window.open("matchplayoffer.gjsp","",
"top=5,left=5,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1,width=530,height=530")
    if (msgWindow.opener == null) msgWindow.opener = self;
}

function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) 
break; 
}
return null;
}

function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (2 < argc) ? argv[2] : null;
var path = (3 < argc) ? argv[3] : null;
var domain = (4 < argc) ? argv[4] : null;
var secure = (5 < argc) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}

function DisplayInfo() {
if(links=="no")
window.open("jackpot.html","JPWindow","top=35,left=125,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1,width=518,height=413")
}

function ResetCounts() {
var expdate = new Date();
expdate.setTime(expdate.getTime() +  (24 * 60 * 60 * 1000 * 365)); 
visit = 0;
SetCookie("visit", visit, expdate , "/", null, false);
}

function pff()
{
links="no";
//window.open("bacTry.html","",
//"top=25,left=30,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1,width=530,height=530")
//alert(links);
return "frameset4Fun.html";
//    if (msgWindow.opener == null) msgWindow.opener = self;
}

function pffsw()
{
links="no";
return "scratchNwinPage4Fun.html";
}

function pfr()
{
links="no";
return "frameset4Real.html";
}

function vis()
{
links="no";
return "visitors.html";
}

function pmr()
{
links="no";
return "payMethods4Real.html";
}

function jp()
{
//alert(links);
links="yes";
document.cookie="visit=''";
//alert(GetCookie("visit"));
//alert(links);
return "framesetJackpot.html";
}

function rc()
{
links="yes";
window.open("redcross.html","RCWindow",
"top=5,left=5,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1,width=530,height=530")
}

function highlight(which,color){
if (document.all)
which.style.backgroundColor=color
}
