/*

	This is the configuration JavaScript file.  Change the settings
	in the following section to match your affiliate tracking information.

*/

affiliate_username = "Bosshog";
affiliate_profile = "";

  ////////////////////////////////////////////////////////////////
 //                DO NOT EDIT BELOW THIS LINE                 //
////////////////////////////////////////////////////////////////

strSubAffLink = "http://adv.casinoblasters.com/index.php?" + affiliate_username;

strEuroLink = "http://banner.goldenpalace.com/cgi-bin/redir.cgi?id=N&member=" + affiliate_username + "&profile=thineuro";
strPoundLink = "http://banner.goldenpalace.com/cgi-bin/redir.cgi?id=N&member=" + affiliate_username + "&profile=thinpound";
strFrenchLink = "http://banner.goldenpalace.com/cgi-bin/redir.cgi?id=N&member=" + affiliate_username + "&profile=thinfr";
strSpanishLink = "http://banner.goldenpalace.com/cgi-bin/redir.cgi?id=N&member=" + affiliate_username + "&profile=thines";

function downloadCasinoSoft(){
	strDownloadURL = "http://banner.goldenpalace.com/cgi-bin/SetupCasino.exe?member=" + affiliate_username;
	if (affiliate_profile != "") strDownloadURL += "&profile=" + affiliate_profile;
	document.location = strDownloadURL;
}

function downloadPokerSoft(){
	strDownloadURL = "http://goldenpalacepoker.com/global/installer/v1/download.php?skin=gpi&member=" + affiliate_username;
	if (affiliate_profile != "") strDownloadURL += "&profile=" + affiliate_profile;
	document.location = strDownloadURL;
}

function PopWindow(Url) {
	var WindowWidth = 500;
	var WindowHeight = 400;
	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;
	PoppedWindow = window.open(Url,"PoppedWindow",WindowProps);
	return;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function PopPic(PicUrl, PicWidth, PicHeight){
	var PicWinHeight=PicHeight+60;
	var PicWinWidth=PicWidth+50;
	var xPopPic=100;
	var yPopPic=100;
	var nn=(document.layers)?true:false;
	var inheight=(nn)?window.innerHeight:document.body.clientHeight;
	var inwidth=(nn)?window.innerWidth:document.body.clientWidth;
	xPopPic=(inwidth/2)-(PicWinWidth/2);
	yPopPic=(inheight/2)-(PicWinHeight/2)+40;
	var PicWindowProps = "toolbar=0,location=0,status=0,menubar=0,scrollbars=0,width="+PicWinWidth+",height="+PicWinHeight+",left="+xPopPic+",top="+yPopPic+",screenX="+xPopPic+",screenY="+yPopPic;
	var PicPop=window.open('','PicPop',PicWindowProps);
   	var doc = PicPop.document;
   	doc.open('text/html');
   	doc.write('<HTML><HEAD><TITLE>Golden Palace Online Casino<\/TITLE><\/HEAD><BODY bgcolor="#000000" onLoad="self.focus();"><center>');
   	doc.write('<a href="javascript:opener.downloadCasinoSoft();"><IMG SRC="'+ PicUrl +'" height="'+PicHeight+'" width="'+PicWidth+'" border="0"></a><br><br>');
   	doc.write('<a href="javascript:self.close()"><font face="verdana,helvetica" size="2" color="white">Close Window<\/font><\/a><\/center><\/BODY><\/HTML>');
   	doc.close();
}

