var body_focus;
var exit = true;

window.onblur = function() { if(window.event.clientY < 0) { body_focus = false; } }
window.onfocus = function() { body_focus = true; }
window.onunload = function() { comebackPopUp(); }
window.onload = function() { window.focus(); }

function comebackPopUp() {
  if(((exit) && (body_focus == false)) || (self.screenTop > 9000)) {
    var args = "height=" + (screen.availHeight * .8) + ",width=" + (screen.availWidth * .9)
     + ",left=" + (screen.availWidth - (screen.availWidth * .91)) + ",top=" + (screen.availHeight - (screen.availHeight * .87))
     + ",toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1";
    if(extp) {
     //window.open("https://one-time-offer.com/gateway.asp?p=9292025222BE77B7D7F706E72FC3E3C313E3639F16D6060727", "wlwin", args);
    }
    var url = "http://www.fromyouflowers.com/exit_popup.htm?p="
     + escape(window.location.pathname + window.location.search);
    var width = 420;
    var height = 250;
    var winleft = (screen.width - width) / 2;
    var wintop = (screen.height - height) / 2;
    var winprops = 'height='+height+',width='+width+',top='+wintop+',left='+winleft+',scrollbars=no';
    var win = window.open(url, 'win', winprops);
  }
}
