var natsShowExit = true; var isUsingSpecial = false; document.onclick = function(){ natsShowExit = false; }; var popDialogOptions = "dialogWidth:940px; dialogHeight:710px; dialogTop:0px; dialogLeft:0px; edge:Raised; center:0; help:0; resizable:0; scroll:1; status:0"; var popWindowOptions = "scrollbars=1,menubar=0,toolbar=0,location=0,personalbar=0,status=0,resizable=0,height=710,width=940"; var useDialog = false; var isNew = false; var popURL = "http://exit.swankdollars.com/14/?nats=MjAxNDcwLjc1LjEuMS4xLjAuMC4wLjA"; var isSP2 = false; var u = "6BF52A52-394A-11D3-B153-00C04F79FAA6"; function setWindowSize(width, height){ popWindowOptions = "scrollbars=1,menubar=0,toolbar=0,location=0,personalbar=0,status=0,resizable=0,height=" +height+ ",width=" +width; popDialogOptions = "dialogWidth:" +width+ "px; dialogHeight:" +height+ "px; dialogTop:0px; dialogLeft:0px; edge:Raised; center:0; help:0; resizable:0; scroll:1; status:0"; } function natsExit() { if (natsShowExit && !isUsingSpecial) { natsShowExit = false; exitWindow = window.open(popURL,"",popWindowOptions); if(exitWindow != null ){ exitWindow.blur(); } window.focus(); } else if (natsShowExit && isUsingSpecial) { natsExitNew(); } } function natsExitNew() { if(natsShowExit) { natsShowExit=false; //Mike Edit if (!window.showModalDialog) { useDialog = false; } if(!isSP2 && !useDialog) { exitWindow = window.open(popURL,"",popWindowOptions); if(exitWindow != null){ exitWindow.blur(); } window.focus(); } else if(!isSP2 && useDialog) { window.showModalDialog(popURL,'',popDialogOptions); } else { iie.launchURL(popURL); } } } function natsInner() { document.body.innerHTML+=""; } function checkVersion() { isSP2 = (window.navigator.userAgent.indexOf("SV1") != -1); if (isSP2) { natsInner(); } isUsingSpecial = true; } checkVersion(); //Mike Edit if (window.attachEvent) { eval("window.attachEvent('onunload',natsExitNew);"); /* eval("window.attachEvent('onload',checkVersion);"); */ } else { eval("window.onunload = natsExitNew;"); /* eval("window.onload = checkVersion;"); */ }