			
			function popurl(){
				closepopup();
				refferdata = getRefferer();
				window.open("http://www.affeurope.net/redirs/ccc/go.php?member=" + refferdata.member + "&profile=" + refferdata.profile);
			}
			
			function getRefferer(){
				values = {};
				if (exitsintCookie = $.cookie('banner_domainclick'))
				{
					values.member = exitsintCookie.split(',')[0];
					values.profile = exitsintCookie.split(',')[2];
				}
				else{
					values.member = 'exitrafpage';
					values.profile = refdefault.profile;
				}
				return values;
			}
			
			
			function closepopup(){
				$.unblockUI(); 
			}
			
			$(document).ready(function() { 

			
				bodyWidth = $("body").width();
				bodyHeight = $("body").height();
				position = {}
				
				position.left = bodyWidth/2 - 197;
				if (exitsintCookie = $.cookie('banner_domainclick'))
				{
					member = exitsintCookie.split(',')[0];
					profile = exitsintCookie.split(',')[2];
				}
				else{
					member = 'exitrafpage';
				}
				
				enabled=1;
				if(!($.cookie('ShowPopup')) && enabled && (refurl.indexOf("cityclubcasino") == -1)){
					$.doTimeout( 50000, function(){
						$.cookie('ShowPopup', '1', { expires: 7 }); // set cookie 
						
						$.blockUI ({
						 message: $('#bgPopUp'), css : {  border: '0px', width: '395px', height: '205px', left: position.left+"px", cursor: 'auto', color: 'white'}, 
						 overlayCSS: { opacity:   0.7 },  fadeIn:  500, fadeOut:  500 } ); 
						 
						 
						
					
					});
				};
			});
			
			
			
		
		
		