// focusing window
function focusW()
{
    window.focus();
}
setTimeout("focusW()", 420000);//

// verisign func
function popSign(url)
{
	sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,re sizable=1,width=720,height=450');
	self.name = "mainWin";
}

function Get_Cookie(name) {
   var start = document.cookie.indexOf(name+"=");
   var len = start+name.length+1;
   if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
   if (start == -1) return null;
   var end = document.cookie.indexOf(";",len);
   if (end == -1) end = document.cookie.length;
   var res = unescape(document.cookie.substring(len,end));
   var result = res.split(",");
   return (result[0]);
}

function upopup(url,w,h,s,n){
	var x;
	var l = (window.screen.width-w)/2;
	var t = (window.screen.height-h)/2; 
	x = window.open(url,n,"height="+h+",width="+w+",status=no,toolbar=no,menubar=no,location=no,scrollbars="+s+",left="+l+",top="+t);
    x.window.focus();
}

function Download(){
  	parent.window.location.href="http://banner.cdpoker.com/cgi-bin/SetupCasino.exe?member=anlevp&profile=cdpanlnp1";
}

function parentgoto(url){
    var isIE = document.all?true:false;		//true if browser is IE, false if Netscape
	var win;
	var base = 'index.html';
	if(!window.name)						//if never was a parent window (case 1)
	  win = window.open(base);				//open new one
	else{									//if there is a parent (case 2)
	  win = window.opener;					//find it
	  if(!win)								//if couldn't find (netscape friendle opener trouble)
	    win = window.open(base);			//open new one
	  if(win.closed)						//if it was closed (case 3)
	    win = window.open(base);			//open new one
	}  
	try{
	  win.mainFrame.location.href = url;
	}
	catch(e){
	  win.location.href = url;
	}
	win.focus();
}

var pre = "";
function show(what){
if (pre){
document.getElementById(pre).style.display="none";
}
what = new String(what);
var splited = what.split("/");
var what = splited[splited.length-1];
pre = what;
document.getElementById(pre).style.display="";
return false;
}

