var dli = 0; 
function getDownload(campid, subcamp, oldid) 
{
	if(dli==0)
	{
		pixel_tracking(campid, subcamp, oldid);
		window.location.href = 'http://www.superslots.com/download/download_engine.php';
		var timer = setTimeout("getDownload()",700);
	}
	if(dli == 1)
	{
		window.location.href = 'http://www.superslots.com/download-casino.php';
		return;
	}
	dli++;
}

function dontpop(){
popit='f';
}

  // 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,strOldID){
     	var _track_url = "";
     	var has_campaign = false;
       if(strOldID=="77SL270705pops" || strOldID=="77SL190705panelpop" || strOldID=="77SL150705homepop"){//1
			// EliteStreet Pixel Tracking Code 
			_track_url =  "<img src='http://roitrack.cpvfeed.com/conversion.jsp?vid=89915' width='1' height='1' />";
    		has_campaign = true; 			
       }else if(strOldID=="117SL110705250july" || strOldID=="117SL110705250vegas" || strOldID=="117SLhomepop"){//2
			 // Fastclick Pixel Tracking Code
			_track_url = "<img src='http://media.fastclick.net/w/roitrack.cgi?aid=2840' width='1' height='1' border='0' />";
    		has_campaign = true; 			
	}else if(strOldID=="122SL290705728flash" || strOldID=="122SL290705120flash" || strOldID=="122SL290705720flash" || strOldID=="122SL020805redwhitewin" || strOldID=="122SL020805rainbowslot" || strOldID=="122SL020805tripgoldslot" ||  strOldID=="122SL020805flaminslot" ||  strOldID=="122SL020805560panel" || strOldID=="122SL050805120lemonflash" || strOldID=="122SL050805120lemon" || strOldID=="122SL050805720grapeflash" || strOldID=="122SL050805720grape" || strOldID=="122SL050805728redflash" || strOldID=="122SL050805728red"){ //3
		    //AdJuggler 5.0 tracking code TrackedPage: superslots_signup_confirmpage
			_track_url = "<img src='http://rotator.adjuggler.com/servlet/ajrotator/track?page=126918&zone=medium21&type=lead&customer=' border='0' width='1' height='1' />";
    		has_campaign = true; 			
	}else if(strOldID=="130SL150805468lemon" || strOldID=="130SL150805468vegas" || strOldID=="130SL150805720tripslot" || strOldID=="130SL150805728slot" || strOldID=="130SL150805120600stripe" 
				|| strOldID=="130SL150805120600game" ||  strOldID=="130SL150805250slot" ||  strOldID=="130SL150805250vegas" || strOldID=="130SL150805125corner" || strOldID=="130SL15080512060" 
				|| strOldID=="130SL150805468double" || strOldID=="130SL150805468liberty" || strOldID=="130SL150805120600tripgold" || strOldID=="130SL150805120600rainbow" 
				|| strOldID=="130SL150805300home" || strOldID=="130SL150805720home" || strOldID=="130SL150805500panel" || strOldID=="130SL150805flaminslot" || strOldID=="130SL150805tripgoldslot" 
				|| strOldID=="130SL150805rainbowslot" || strOldID=="130SL150805tens" || strOldID=="130SL150805deuces" || strOldID=="130SL150805joker" || strOldID=="130SL150805redwhitewin"){ //4
			_track_url = "<img src='http://publishers.clickbooth.com/track_lead/517/OPTIONAL_INFORMATION' width='1' height='1' /> ";
    		has_campaign = true; 					
	}else if(strCampaignID=="26810"){ //5
			_track_url = "<img src='http://adopt.hotbar.com/conv.jsp?adv=153&ao=9980&rnd=[cachebuster]' width='1' height='1' /> ";
    		has_campaign = true; 					
	}else if(strCampaignID=="60129" || strCampaignID=="60708"){ //6
		_track_url = "<img src='http://ads.addynamix.com/cpa/2-28804-1' width='1' height='1' /> ";
    		has_campaign = true; 		 	 
	}else if(strCampaignID=="60143"){ //7
		_track_url = "<img src='http://roitrack.adtrgt.com/conversion.jsp?vid=559187' width='1' height='1' />";
    		has_campaign = true; 		 
	}else if(strCampaignID=="60286"){ //8
		_track_url = "<img src='http://roitrack.adtrgt.com/conversion.jsp?vid=560626' width='1' height='1' />";
    		has_campaign = true; 		 
	}else if(strCampaignID=="60143"){ //9
		_track_url = "<img src='https://secure.adtrgt.com/conversion.jsp?vid=559187' width='1' height='1' />";
    		has_campaign = true; 		 
	}else if(strCampaignID=="60286"){ //10
		_track_url = "<img src='https://secure.adtrgt.com/conversion.jsp?vid=560626' width='1' height='1' />";
    		has_campaign = true; 		 
	}else if(strCampaignID=="62226"){ //11
			_track_url = "<img src='http://a1.interclick.com/campCon.aspx?cid=2230' width='1' height='1' />";
	    		has_campaign = true; 		 
	}else if(strCampaignID=="62223"){ //12
			_track_url = "<img src='http://ad.outerinfoads.com/action?aid=536&acid=311&atp=0' width='1' height='1' />";
	    		has_campaign = true; 		 
	}else if(strCampaignID=="60706"){ //13
			_track_url = "<img src='http://ad.spot200.com/pixel?id=69357&t=2' width='1' height='1' />";
			has_campaign = true; 
	}else if(strCampaignID=="63764"){ //14
			_track_url = "<img src='http://ad.spot200.com/pixel?id=69357&t=2' width='1' height='1' />";
			has_campaign = true; 
	}else if(strCampaignID=="63779"){ //15
			_track_url = "<img src='http://ad.doubleclick.net/activity;src=1840647;type=super019;cat=super650;ord=" + Math.random() + "' width='1' height='1' />";
			has_campaign = true; 
	}else if(strCampaignID=="63780"){ //16
			_track_url = "<img src='http://ad.doubleclick.net/activity;src=1840647;type=super019;cat=super650;ord=" + Math.random() + "' width='1' height='1' />";
			has_campaign = true; 
	}else if(strCampaignID=="63056"){ //17
			_track_url = "<img src='http://ads.addynamix.com/cpa/2-28804-1' width='1' height='1' />";
			has_campaign = true; 
	}else if(strCampaignID=="64174"){ //18
			_track_url = "<img src='http://roitrack.adtrgt.com/conversion.jsp?vid=559187' width='1' height='1' />";
			has_campaign = true; 
	}
	else if(strCampaignID=="64171")
     	{
		_track_url = "<img src='http://xads.zedo.com/ads2/t?o=121982;h=473159;z=" + Math.random() + "' width='1' height='1' />";
		has_campaign = true;
     	}
     	else if(strCampaignID=="64170")
	{
		_track_url = "<img src='http://xads.zedo.com/ads2/t?o=121982;h=473159;z=" + Math.random() + "' width='1' height='1' />";
		has_campaign = true;
     	}
     	else if(strCampaignID=="64176")
     	{
		_track_url = "<img src='http://www.afftrck.com/redirconsume.aspx?CID=8560&p=img' width='1' height='1' />";
		has_campaign = true; 
	}
     	else if(strCampaignID=="64174")
     	{
		_track_url = "<img src='http://roitrack.adtrgt.com/conversion.jsp?vid=559187' width='1' height='1' />";
		has_campaign = true; 
	}
     	else if(strCampaignID=="80147")
     	{
		_track_url = "<img src='http://ads.addynamix.com/cpa/2-28804-3' width='1' height='1' />";
		has_campaign = true; 
	}
	else if(strCampaignID=="80189")
	{
		_track_url = "<img src='http://roitrack.addlvr.com/conversion.jsp?vid=563964' width='1' height='1' />";
		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();
     	} 	
     }
