﻿// JScript File
function OpenFixedWindow(theURL,winName,features)
    {   
    	window.open(theURL, winName, features);
    }
function OpenFixedWindowWithParams(theURL,TwoLetterISOLanguageName,TargetPage,CasinoBrand,winName,features)
{
    //theURL += "?TwoLetterISOLanguageName='" + TwoLetterISOLanguageName + "'&TargetPage='" + TargetPage + "'&CasinoBrand='" + CasinoBrand + "'";
    theURL += "?TwoLetterISOLanguageName=" + TwoLetterISOLanguageName + "&TargetPage=" + TargetPage + "&CasinoBrand=" + CasinoBrand + "";
    window.open(theURL, winName, features);
}
    
    //
    function dcsVar2()
    {
	    var dCurrent=new Date();
	    WT.tz=dCurrent.getTimezoneOffset()/60*-1;
	    if (WT.tz==0){
		    WT.tz="0";
	    }
	    WT.bh=dCurrent.getHours();
	    WT.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage;
	    if (typeof(screen)=="object"){
		    WT.cd=navigator.appName=="Netscape"?screen.pixelDepth:screen.colorDepth;
		    WT.sr=screen.width+"x"+screen.height;
	    }
	    if (typeof(navigator.javaEnabled())=="boolean"){
		    WT.jo=navigator.javaEnabled()?"Yes":"No";
	    }
	    if (document.title){
		    WT.ti=gI18n?dcsEscape(dcsEncode(document.title),I18NRE):document.title;
	    }
	    WT.js="Yes";
	    WT.jv=dcsJV();
	    if (document.body&&document.body.addBehavior){
		    document.body.addBehavior("#default#clientCaps");
		    if (document.body.connectionType){
			    WT.ct=document.body.connectionType;
		    }
		    document.body.addBehavior("#default#homePage");
		    WT.hp=document.body.isHomePage(location.href)?"1":"0";
	    }
	    if (parseInt(navigator.appVersion)>3){
		    if ((navigator.appName=="Microsoft Internet Explorer")&&document.body){
		    	    WT.bs=document.body.offsetWidth+"x"+document.body.offsetHeight;
		    }
		    else if (navigator.appName=="Netscape"){
			    WT.bs=window.innerWidth+"x"+window.innerHeight;
		    }
	    }
	    WT.fi="No";
	    if (window.ActiveXObject){
		    for(var i=10;i>0;i--){
			    try{
				    var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
				    WT.fi="Yes";
				    WT.fv=i+".0";
				    break;
			    }
			    catch(e){
			    }
		    }
	    }
	    else if (navigator.plugins&&navigator.plugins.length){
		    for (var i=0;i<navigator.plugins.length;i++){
			    if (navigator.plugins[i].name.indexOf('Shockwave Flash')!=-1){
				    WT.fi="Yes";
				    WT.fv=navigator.plugins[i].description.split(" ")[2];
				    break;
			    }
		    }
	    }
	    if (gI18n){
		    WT.em=(typeof(encodeURIComponent)=="function")?"uri":"esc";
		    if (typeof(document.defaultCharset)=="string"){
			    WT.le=document.defaultCharset;
		    } 
		    else if (typeof(document.characterSet)=="string"){
			    WT.le=document.characterSet;
		    }
	    }
	    WT.sp="@@SPLITVALUE@@";
	    DCS.dcsdat=dCurrent.getTime();
	    DCS.dcssip=window.location.hostname;
	    DCS.dcsuri="download.asp";
	    if (window.location.search){
		    DCS.dcsqry=window.location.search;
		    if (gQP.length>0){
			    for (var i=0;i<gQP.length;i++){
				    var pos=DCS.dcsqry.indexOf(gQP[i]);
				    if (pos!=-1){
					    var front=DCS.dcsqry.substring(0,pos);
					    var end=DCS.dcsqry.substring(pos+gQP[i].length,DCS.dcsqry.length);
					    DCS.dcsqry=front+end;
				    }
			    }
		    }
	    }
	    if ((window.document.referrer!="")&&(window.document.referrer!="-")){
		    if (!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){
			    DCS.dcsref=gI18n?dcsEscape(window.document.referrer, I18NRE):window.document.referrer;
		    }
	    }
    }
    
    //
    function LogAndRedirect(filename, btag)
    {
        //
        dcsVar2();
        dcsMeta();
        dcsFunc("dcsAdv");
        dcsTag();
        //
        window.location = "upe_download/download.asp?banner_tag=" + btag + "&lang=en&file_name=" + filename;
    }