function MM_openBrWindow(theURL,winName,features) { 
	  window.open(theURL,winName,features);
	}

function openWindow(url,arg1,arg2)
{
	window.open(url,arg1,arg2);
}
  // this function is used for pixel trackign when download link is clicked
  // in case you want to add more pixel tracking just add else if to the end
  // of if block. [ the second if block is an example]
  function pixel_tracking(strCampaignID,strSubCampaignID){
     	var _track_url = "";
     	var has_campaign = false;
     	if(strCampaignID  == "23870")
     	{
	   		_track_url = "<img src='http://www.clixgalore.com/AdvTransaction.aspx?AdID=4133&OID=123123123' />";
    		has_campaign = true;
     	}
     	else if(strCampaignID  == "23871")
     	{
    		_track_url = "<img src='http://www.clixgalore.com/AdvTransaction.aspx?AdID=4133&OID=123123123' />";
    		has_campaign = true;    		
     	}
     	if(has_campaign){
	     	var _track_win  = window.open("","","width=1,height=1,top=0,left=0");
	     	_track_win.blur();
	     	_track_win.document.write(_track_url);
	     	_track_win.document.close();
	     	_track_win.close();
     	} 	
     }

 var dli = 0;
function getDownload(campid, subcamp, oldid) {
	if(dli==0)
	{
		//pixel_tracking(campid, subcamp, oldid);
		window.location.href = 'http://www.slotsgalore.com/download/download_engine.php';
		var timer = setTimeout("getDownload()",700);
	}
	if(dli == 1)
	{
		window.location.href = 'http://www.slotsgalore.com/download-casino.php';
		return;
	}
	dli++;
}

function openHelp() {
	var refererurl = document.location.href;
	var hashIndex = refererurl.lastIndexOf('#');
	if(hashIndex != -1){
		refererurl = refererurl.substring(0,hashIndex);
	}
	var w = 630, h = 440;
	var t = 0, l = 0;
	if (window.screen) {
		if (window.screen.availWidth == 800)
			w = window.screen.availWidth * 41 / 100;
		else {
			w = window.screen.availWidth * 31 / 100;
		}
		h = window.screen.availHeight * 95 / 100;
		l = (window.screen.availWidth - w)*98/100;
	}
	var params =  "width=" + w + ",height=" + h + ",left=" + l + ",top=" + t + ",resizable=no,scrollbars=yes,toolbar=no";
    window.open('http://server.iad.liveperson.net/hc/LPvip/?cmd=file&file=visitorWantsToChat&site=LPvip&SESSIONVAR!source=website&SESSIONVAR!skill=Slots%20Galore%20Casino&referrer='+escape(document.location),'chatLPvip','width=472,height=320');
}

function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=625,height=550,scrollbars=yes');
return false;
}

