var P_bNet=(navigator.appName.indexOf("Microsoft")!=-1)?false:true;var P_bShwd=false;var P_bExt=true;var P_sURL="";var append="";var P_sWCfg="toolbar=no,width=1,height=1,left="+(screen.width-50)+",top="+(screen.height-50)+",status=no,scrollbars=yes,resizable=no";var P_sUnd="N";var P_bNclk=true;var P_sCDom="";var referralid_script="";var filter="";var templatePopup="";var closePopup="";var logged="";function initialize(domain,referralid,appendFlight,filterID,objectId,templateName,loogedUser){P_sCDom=domain;P_sURL="http://"+domain+"/global/doubleclick.jsp?append="+appendFlight+"&objectId="+objectId+"&templateName="+templateName;referralid_script=referralid;logged=loogedUser;if(filterID!=""){filter="Filter"}if(logged=="true"&&(templateName==""||templateName=="COUNTRY"||templateName=="STATE")){closePopup="closePopup"}if(appendFlight=="flight"){append="Flight"}}var mailId="";function email(mail){mailId=mail}function chkExtLink(sURL){var sURL=String(sURL).toLowerCase();var reIntURLs=new RegExp(P_sCDom,"i");if(sURL.match(reIntURLs)){return(false)}else{return(true)}}function defPopEvts(){if(P_bNet==true){window.captureEvents(Event.CLICK);window.onclick=handleClick}else{document.onclick=handleClick}}function handleClick(evt){P_bExt=true;var sTURL="";if(P_bNet==false){sTURL=String(window.event.srcElement.href).toLowerCase()}else{sTURL=String(evt.target.href).toLowerCase()}if(sTURL==""||sTURL=="undefined"){P_bExt=false;return}if(sTURL.match(/javascript/i)){if(!(sTURL.match(/window\.open/i))){P_bExt=false}return}P_bExt=chkExtLink(sTURL);if(referralid_script=="GOOGLECPC"){P_bExt=false}mailSrting=new String(mailId);var mailIndex=mailSrting.indexOf("@");if(mailIndex!=-1){P_bExt=false}if(P_bExt==true){showGBP()}}function handleUnload(evt){var cookieValue=getCookie("popup_displayed");if(referralid_script=="GOOGLECPC"){P_bExt=false}if(filter=="Filter"){P_bExt=false}if(closePopup=="closePopup"){P_bExt=false}if(cookieValue=="true"){P_bExt=false}if(P_bExt!=false&&P_bNclk==true){showGBP()}}function showGBP(){if(P_bShwd==false&&P_sURL!=""&&P_sWCfg!=""){var winGBP=window.open(P_sURL,"GoodByePopup",P_sWCfg);if(winGBP!=null){if(P_sUnd=="Y"){winGBP.blur();window.focus()}else{window.focus()}P_bShwd=true}}}window.onload=defPopEvts;window.onunload=handleUnload;
