function Download_Track(btag, ul, offerid, linkid, pageid, pageurl, omnitureid, casinoid) {
    var url = "download.casino?file_name=DesertDollar.exe&ul=" + ul + "&offerid=" + offerid + "&linkid=" + linkid + "&pageid=" + pageid + "&pageurl=" + pageurl + "&omnitureid=" + omnitureid + "&casinoid=" + casinoid + "&banner_tag=" + btag;
    window.open(url, '', 'width=10,height=10');
}

function GamePreview(GameType) {
    window.open("/gamespreview/?gameid=" + GameType + "", "GamePreview", "scrollbars=yes, resizable=no, width=780, height=630");
    return false;
}

function tournamentpop() {
    window.open("http://www.fortunelounge.eu/tournamentpop.asp?BTag=" + btag + "", "tournament", "width=570,height=399,scrollbars=yes,resizable=no")
}
function chatpopup(lang) {
    window.open("https://chat.casinodesk.com/webchat/chatform" + lang + ".asp", "Chat", "width=400, height=410, border=2, scrollbars=no, resizable=no");
}

function downloadCasino(btag) {
    parent.window.opener.location.replace("/downloadh");
    window.open('/download/download.asp?banner_tag='+btag+'&file_name=DesertDollar.exe&ul=en', 'download', 'width=5,height=5');
 parent.window.close();
 
	}


function MM_swapImgRestore() { //v3.0
    var i, x, a = document.MM_sr; for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) x.src = x.oSrc;
}

function MM_preloadImages() { //v3.0
    var d = document; if (d.images) {
        if (!d.MM_p) d.MM_p = new Array();
        var i, j = d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i < a.length; i++)
            if (a[i].indexOf("#") != 0) { d.MM_p[j] = new Image; d.MM_p[j++].src = a[i]; }
    }
}

function MM_findObj(n, d) { //v3.0
    var p, i, x; if (!d) d = document; if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
        d = parent.frames[n.substring(p + 1)].document; n = n.substring(0, p);
    }
    if (!(x = d[n]) && d.all) x = d.all[n]; for (i = 0; !x && i < d.forms.length; i++) x = d.forms[i][n];
    for (i = 0; !x && d.layers && i < d.layers.length; i++) x = MM_findObj(n, d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
    var i, j = 0, x, a = MM_swapImage.arguments; document.MM_sr = new Array; for (i = 0; i < (a.length - 2); i += 3)
        if ((x = MM_findObj(a[i])) != null) { document.MM_sr[j++] = x; if (!x.oSrc) x.oSrc = x.src; x.src = a[i + 2]; }
}

function openSupportPopup(mailtype) {
    window.open("/ContactForm/?MailType=" + mailtype, "Email_Vegas_Towers", "width=220,height=400,directories=no,toolbar=no,resizable=yes,location=no,menubar=no,status=no,scrollbars=no");
    return false;
}
function PreloadContent() {
    if (document.getElementById('theContentLayer') == null) {
    }
    else {
        document.getElementById('theContentLayer').style.visibility = "visible";
    }
}

function closeWin() {
    parent.document.getElementById('theContentLayer').style.visibility = "hidden";
}

function bonus() {
    window.open("/bonus_popup", "Bonus", "width=600,height=200,resizable=yes, scrollbars=no");
}

function SignUpOffers() {
    window.open("/termsofferpop", "TermsOffer", "width=480,height=300,scrollbars=yes");
}
function PromoTermsSpecial() {
    window.open("/promotermsspecial", "PromoTermsSpecial", "width=590,height=500, scrollbars=yes, resizable=no");
}

function PromoTermsEco() {
    window.open("/promotermseco", "PromoTermsEco", "width=590,height=500, scrollbars=yes, resizable=no");
}
function PromoTermsEntro() {
    window.open("/promotermsentropay", "PromoTermsEco", "width=590,height=500, scrollbars=yes, resizable=no");
}
function PromoTermsFire() {
    window.open("promotermsfire", "PromoTermsFire", "width=590,height=400, scrollbars=yes, resizable=no");
}

function PromoTermsNet() {
    window.open("/promotermsnet", "PromoTermsNet", "width=590,height=420, scrollbars=yes, resizable=no");
}

function PromoTermsClick() {
    window.open("/promotermsclick", "PromoTermsClick", "width=590,height=400, scrollbars=yes, resizable=no");
}

function LiveChat() {
    window.open("http://chat.casinodesk.com/chatframe.php?clientid=1&deptid=2", "LiveChat", "width=550,height=300, scrollbars=no, resizable=no");
}

function pop(btag) {
    window.open("http://www.fortunelounge.eu/cashin1.asp?btag=" +btag + "", "cashin", "width=570,height=390,scrollbars=no,resizable=no")
}


function selfassess() {
    window.open("/selfassessment", "SelfAssess", "width=500,height=550, scrollbars=yes, resizable=no");
}
function PromoTermsPages(member) 
{
    window.open("PromoTerms.aspx", "PromoTermsPages?234234", "width=590,height=400, scrollbars=yes, resizable=no");
}

function PromoTerms(page) 
{
    
    switch (page)
	{
	case 'Click':
		window.open("/promotermsclick", "promotermsclick", "width=590,height=400, scrollbars=yes, resizable=no");break;
	case 'ClickBuy':
		window.open("/promotermsclickbuy", "promotermsclickbuy", "width=590,height=400, scrollbars=yes, resizable=no");break;
	case 'Eco':
		window.open("/promotermseco", "promotermseco", "width=590,height=400, scrollbars=yes, resizable=no");break;
	case 'Entro':
		window.open("/promotermsentropay", "promotermsentropay", "width=590,height=400, scrollbars=yes, resizable=no");break;
	case 'Bookers':
		window.open("/promotermsbookers", "promotermsbookers", "width=590,height=400, scrollbars=yes, resizable=no");break;
	case 'Net':
		window.open("/promotermsnet", "promotermsnet", "width=590,height=400, scrollbars=yes, resizable=no");break;
	case 'UK':
		window.open("/promotermsuk", "promotermsuk", "width=590,height=400, scrollbars=yes, resizable=no");break;
	default:
	  window.open("/promotermseco", "promotermseco", "width=590,height=400, scrollbars=yes, resizable=no");
	}
}

