/*

	This is the configuration JavaScript file.  Change the settings
	in the following section to match your affiliate tracking information.
	var campaign_number = "73967"; // your campaign ID (REQIRED FOR TRACKING)
	var sub_campaign = "GoCO"; // your sub campaign (OPTIONAL)

*/
var campaign_number = "Aff_0415_539"; // your campaign ID (REQIRED FOR TRACKING)
var sub_campaign = ""; // your sub campaign (OPTIONAL)
var sub_fcampaign = "";
var campaign_numberus = "15426"; // your campaign ID (REQIRED FOR TRACKING)
var sub_campaignus = "4000"; // your sub campaign (OPTIONAL)
var sub_fcampaignus = "4001";
  ////////////////////////////////////////////////////////////////
 //                DO NOT EDIT BELOW THIS LINE                 //
////////////////////////////////////////////////////////////////
var strSubAffLink = "http://www.bestcasinopartner.com/?c=" + campaign_number + "&id=index";
function PopWin(url) {
	var url = 'http://www.gocasino.com/' + url;
	var WindowWidth = 550;
	var WindowHeight = 470;
	var WindowTop = (screen.availHeight/2) - (WindowHeight/2);
	var WindowLeft = (screen.availWidth/2) - (WindowWidth/2);
	var WindowProps = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=yes,resizable,width='+WindowWidth+',height='+WindowHeight+',left='+WindowLeft+',top='+WindowTop+',screenx='+WindowLeft+',screeny='+WindowTop;
	PoppedWin = window.open(url,"PoppedWin",WindowProps);
	PoppedWin.focus();
	return;
}
function toggleDisplay(obj) {
	var el = document.getElementById(obj);
	if(el.style.display != 'none'){
		el.style.display = 'none';
	}else{
		el.style.display = '';
	}
}
function previewHide() {
	document.getElementById("previewContainer").style.display = 'none';
	document.getElementById("previewShadow").style.display = 'none';
}
function previewShow(whatPic) {
	if (document.all) {
		if (document.documentElement && document.documentElement.scrollTop) {
			sTop = document.documentElement.scrollTop;
		} else {
			sTop = document.body.scrollTop;
		}
	} else {
		sTop = window.pageYOffset;
	}
	intPreviewTopPos = 200 + sTop;
	intPreviewLeftPos = (document.body.clientWidth - 400) / 2;
	intShadowWidth = document.body.clientWidth;
	intShadowHeight = document.body.clientHeight + 20;
	
	document.getElementById("previewContainer").style.top = intPreviewTopPos+'px';
	document.getElementById("previewContainer").style.left = intPreviewLeftPos+'px';
	document.getElementById("previewShadow").style.width = intShadowWidth+'px';
	document.getElementById("previewShadow").style.height = intShadowHeight+'px';
	
	document.getElementById("previewGamePic").innerHTML = '<a href="javascript:downloadCasinoSoft()"><img src="images/previews/preview_'+whatPic+'.jpg" width="360" height="271" alt="" border="0" /></a>';
	document.getElementById("previewContainer").style.display = 'block';
	document.getElementById("previewShadow").style.display = 'block';
}
function downloadCasinoSoft(){
	document.location='http://www.gowildcasino.com/download.html?btag='+campaign_number+'&subGid='+sub_campaign;
}
function popFlashGames() {
	var url = 'https://gowild.gameassists.co.uk/gowild/?btag='+campaign_number+'&subGid='+sub_fcampaign;
	var WindowWidth = 800;
	var WindowHeight = 600;
	var WindowTop = (screen.availHeight/2) - (WindowHeight/2);
	var WindowLeft = (screen.availWidth/2) - (WindowWidth/2);
	var WindowProps = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=yes,resizable,width='+WindowWidth+',height='+WindowHeight+',left='+WindowLeft+',top='+WindowTop+',screenx='+WindowLeft+',screeny='+WindowTop;
	PoppedFlashGames = window.open(url,"PoppedFlashGames",WindowProps);
	PoppedFlashGames.focus();

	return; 
}
function downloadCasinoSoftUS(){
	document.location='http://www.sunpalacecasino.eu/Remote/SmartDownload.php?casinoID=236&gAid='+campaign_numberus+'&subGid='+sub_campaignus;
}
function popFlashGamesUS() {
	var url = 'http://www.sunpalacecasino.eu/Remote/AidDownload.php?casinoID=236&gAID='+campaign_number+'&subGid='+sub_fcampaign+'&bannerID=0&Redirect=https://flash.sunpalacecasino.eu/login.php';
	var WindowWidth = 800;
	var WindowHeight = 600;
	var WindowTop = (screen.availHeight/2) - (WindowHeight/2);
	var WindowLeft = (screen.availWidth/2) - (WindowWidth/2);
	var WindowProps = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=yes,resizable,width='+WindowWidth+',height='+WindowHeight+',left='+WindowLeft+',top='+WindowTop+',screenx='+WindowLeft+',screeny='+WindowTop;
	PoppedFlashGames = window.open(url,"PoppedFlashGames",WindowProps);
	PoppedFlashGames.focus();

	return; 
}

