function n_GetX(El) {
 var X = 0;
 do {X += El.offsetLeft} while ((El = El.offsetParent) != null);
 return X;
}


function n_GetY(El) {
 var Y = 0;
 do { Y += El.offsetTop } while ((El = El.offsetParent) != null);
 return Y;
}



function pro_cookie()
{

function setCookie( name, value, expires )
{
var today = new Date();
today.setTime( today.getTime() );
if ( expires )
{
expires = expires * 1000 * 60 * 60 * 24;
var expires_date = new Date( today.getTime() + expires );
expires_date=expires_date.toGMTString();
}
else
{
var expires_date="";
}

document.cookie = name + "=" + escape(value) + "; expires=" + expires_date;
}


function getCookie(byname)
{
byname=byname+"=";
nlen = byname.length;
fromN = document.cookie.indexOf(byname)+0;
if((fromN) != -1)
{
fromN +=nlen
toN=document.cookie.indexOf(";",fromN)+0;
if(toN == -1)
{
toN=document.cookie.length;
}
return unescape(document.cookie.substring(fromN,toN));
}
return null;
}

var cookie = getCookie("bo_cards");
var location = window.location.pathname.toLowerCase();

if (location != '/')
{
	if(!cookie)
	{
	setCookie("bo_cards", 1 , 0);
	document.getElementById('PopUpLayer').style.visibility = 'visible';
	}
	else
	{
	document.getElementById('PopUpLayer').style.visibility = 'hidden';
	}
}
else
{
	document.getElementById('PopUpLayer').style.visibility = 'visible';
}

}
