<!--
var ShowPopupMsg = true;

document.onmousedown = function(evt) 
{
    // let's not forget poor Explorer
    // which doesn't pass the event as a parameter
    if(!evt)
        evt = window.event;

	var elem = evt.srcElement || evt.target;
    
    // First let's check if there is an event handler for the click or mouse down
    if ((elem != null) && (elem.tagName == 'A' || typeof(elem.onclick) == 'function' || typeof(elem.onmousedown) == 'function'))
    {
		ShowPopupMsg = false;
		return;
	}
		
    // Check if the element that was pressed was an anchor
    while ((elem != null) && (elem.tagName != 'A') && (elem.tagName != 'BODY'))
		elem = elem.parentElement || elem.parentNode;
            
    if ((elem != null) && (elem.tagName == 'A'))
		ShowPopupMsg = false;
}

window.onbeforeunload = function(evt) 
{
    // let's not forget poor Explorer
    // which doesn't pass the event as a parameter
    if(!evt)
        evt = window.event;

    // Checking if the window wasn't opened by another window, and not showing the message
    if (ConfirmAction())
		window.open('http://www.luckyacepoker.com/?aff=168390');
}

function ConfirmAction()
{
    // Check if the user should to be redirected
	if (null == window.opener && ShowPopupMsg && confirm('Get $400 to Play Poker Now.'))
		return true;
    else
        return false;
}
// -->