			
			function popurl(){
				closepopup();
				refferdata = getRefferer();
                                window.open("http://citytower.affeurope.com/cgi-bin/redir.cgi?member=" + refferdata.member + "&profile=" + refferdata.profile);
				//location.href = "http://citytower.affeurope.com/cgi-bin/redir.cgi?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(); 
			}

                        function setPopUp(){
  
                            bodyWidth = $("body").width();
				bodyHeight = $("body").height();
				position = {}

				position.left = bodyWidth/2 - 300;
				if (exitsintCookie = $.cookie('banner_domainclick'))
				{
					member = exitsintCookie.split(',')[0];
					profile = exitsintCookie.split(',')[2];
				}
				else{
					member = 'exitrafpage';
				}


				enabled=1;
                                                                        var debug = 0;
				if((!($.cookie('ShowPopup')) && enabled && (refurl.indexOf("citytower") == -1)) || debug){
                                                                            $.doTimeout( (adv2009) ? 12000 : 10000, 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'},
             message: $('#flashpopup'), css : {  border: '0px', width: '600px', height: '530px', left: position.left+"px",top : '15%', cursor: 'auto', 'background-color' : 'transparent'},
						 overlayCSS: { opacity:   0.7 },  fadeIn:  500, fadeOut:  500 } );
					});
				};
                        }
			
			
			
		
		
		
