var jsm_reruntime=24;

var jsm_url="http://creatives.livejasmin.com/puw2/i/im/imagearn/index.php?psid=ed_imgrn&pstool=147_13255_151&pstour=t1&psprogram=REVS&site=jsm";
var popunderWidth=800;

var popunderHeight=1100;

function createCookie(b,e,f){var d=60*60*1000*f;

var a=new Date();a.setTime(a.getTime()+(d));

var c="; expires="+a.toGMTString();

document.cookie=b+"="+e+c+"; path=/"}function getCookie(a){var b=document.cookie.match("(^|;) ?"+a+"=([^;]*)(;|$)");

if(b){return(unescape(b[2]))}else{return null}}

function popunder()
{if(getCookie("lj_popunder")==1)
{return true}createCookie("lj_popunder",1,jsm_reruntime);

var b="toolbar=0,statusbar=1,resizable=1,scrollbars=0,menubar=0,location=1,directories=0";

if(navigator.userAgent.indexOf("Chrome")!=-1){b="scrollbar=yes"}
var a=window.open("about:blank","",b+",height="+popunderWidth+",width="+popunderHeight);
if(navigator.userAgent.indexOf("rv:2.")!=-1){a.ljPop=function(c){if(navigator.userAgent.indexOf("rv:2.")!=-1){this.window.open("about:blank").close()}this.document.location.href=c};
a.ljPop(jsm_url)}
else{a.document.location.href=jsm_url}setTimeout(window.focus);window.focus();
if(a){a.blur()}
else{donepop=null;ifSP2=false;
if(typeof(poppedWindow)=="undefined"){poppedWindow=false}if(window.SymRealWinOpen){open=SymRealWinOpen}if(window.NS_ActualOpen){open=NS_ActualOpen}ifSP2=(navigator.userAgent.indexOf("SV1")!=-1);
if(!ifSP2){dopopunder()}
else{if(window.Event){document.captureEvents(Event.CLICK)}document.onclick=doclickedpopunder}self.focus();doclickedpopunder()}}

function dopopunder()
{if(!poppedWindow){donepop=open(jsm_url,"","toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1");
if(donepop){poppedWindow=true;self.focus()}}}

function doclickedpopunder()
{if(!poppedWindow){if(!ifSP2){donepop=open(jsm_url,"","toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1");self.focus();
if(donepop){poppedWindow=true}}}if(!poppedWindow){if(window.Event){document.captureEvents(Event.CLICK)}document.onclick=dopopunder;self.focus()}}document.body.onclick=function(){popunder()};
document.body.unload=function(){popunder()};

