
/*
Popup 2.1 : June 25, 2001
copyright 2000, 2001 Time, Inc.
design, code: Gary Poster
if collapsed, see [full_filename].bak.js on staging server for original version
*/
var G_=new Object();G_.loc=self.location.href.toLowerCase();G_.dest="";G_.now=new Date();G_.nowN=G_.now.getTime();G_.seed=Math.random();G_.imageLoad=new Image();G_.horizMargin=10;G_.vertMargin=25;G_.horizBorder=4;G_.topBorder=15;G_.mo=2678400000;{var agt=navigator.userAgent.toLowerCase();G_.major=parseInt(navigator.appVersion);G_.minor=parseFloat(navigator.appVersion);G_.nav=((agt.indexOf('mozilla')!=-1)&&(agt.indexOf('spoofer')==-1)&&(agt.indexOf('compatible')==-1)&&(agt.indexOf('opera')==-1)&&(agt.indexOf('webtv')==-1));G_.nav4=(G_.nav&&G_.major==4&&G_.minor>4.05);G_.nav6up=(G_.nav&&(G_.major>=5));G_.ie=(agt.indexOf("msie")!=-1);G_.ieMinor=G_.ie?parseFloat(agt.slice(agt.indexOf("msie")+4)):0;G_.ieMajor=parseInt(G_.ieMinor);G_.aol=(agt.indexOf("aol")!=-1);G_.aolMinor=G_.aol?parseInt(agt.slice(agt.indexOf("aol")+3)):0;G_.aol7up=G_.aolMinor>=7;G_.win2000=(agt.indexOf("windows nt 5.0")!=-1);G_.win31=((agt.indexOf("windows 3.1")!=-1)||(agt.indexOf("win16")!=-1)||(agt.indexOf("windows 16-bit")!=-1));G_.win=((agt.indexOf("win")!=-1)||(agt.indexOf("16bit")!=-1));G_.mac=(agt.indexOf("mac")!=-1);var host=self.location.hostname.toLowerCase().split(".");if(host.length>2){var myX=host[host.length-1];if(myX=="com"||myX=="edu"||myX=="net"||myX=="org"||myX=="gov")G_.domain=host.slice(host.length-2).join(".");else if(host.length>3)G_.domain=host.slice(host.length-3).join(".");}};if(!document.cookie)document.cookie="PopUpCalls=0;path=/;";var P_execute;if(document.cookie){var P_execute=true;if(G_.nav4)document.write('<script language="JavaScript1.2" type="text/javascript" src="http://www.pathfinder.com/subs/popup2/comp/ns4_1.js"></script>');else if(G_.ie&&G_.mac&&G_.ieMinor>=5&&G_.ieMinor<5.5)document.write('<script language="JavaScript1.2" type="text/javascript" src="http://www.pathfinder.com/subs/popup2/comp/macie_1.js"></script>');else if(G_.major>=5||(G_.ie&&G_.ieMajor>=5))document.write('<script language="JavaScript1.4" type="text/javascript" src="http://www.pathfinder.com/subs/popup2/comp/moz5_1.js"></script>');else if(!G_.mac&&G_.ie)document.write('<script language="JavaScript1.2" type="text/javascript" src="http://www.pathfinder.com/subs/popup2/comp/ie4_1.js"></script>');else P_execute=false;};function G_instOf(constr){var obj=this.constr;while(obj){if(obj==constr)return true;obj=obj.prototype.constr;};return false;};Object.prototype.instanceOf=G_instOf;function G_readString(delineators){if(delineators&&delineators.constructor==Array){var theArray=this.split(delineators[0]);if(delineators.length>1)for(var i=0;i<theArray.length;i++)theArray[i]=theArray[i]._read(delineators.slice(1));return theArray;};return false;};String.prototype._read=G_readString;function G_packArray(delineators){var theString="";for(var i=0;i<this.length;i++){var temp=this[i];if(typeof(temp)=="object"&&temp.constructor==Array)temp=temp._pack(delineators.slice(1));if(temp)theString+=temp+delineators[0];};return theString.slice(0,-(delineators[0].length));};Array.prototype._pack=G_packArray;function argToArr(a){var r=[];for(var i=0; i<a.length; i++)r[r.length]=a[i];return r;};function P__ruleSet(){function update(){if(this.instanceOf(P__meta)||this.instanceOf(P__seq)){G_._c[this.chipId][1]=G_.nowN;G_._c[this.chipId][2]=parseInt(G_._c[this.chipId][2])+1;};this.par._updated[this.par._updated.length]=this.name;};function test(){if(P_execute&&this.cycle*3600000+parseInt(G_._c[this.chipId][1])<=G_.nowN&&(this.impression<0||parseInt(G_._c[this.chipId][2])<this.impression)){if(this.rules)return eval(this.rules);return true;};return false;};this.constr=P__ruleSet;this._test=test;this.update=update;};function P__ruleSet_i(o,a){o.name=a[0];o.rules=a[1];o.cycle=a[2]||0;o.start=a[3]||0;o.impression=isNaN(a[4])?-1:a[4];o.par=a[5];o.chipId=0;if(o.par){while(o.chipId<G_._c.length&&G_._c[o.chipId][0]&&G_._c[o.chipId][0]!=o.name)o.chipId++;if(o.chipId==G_._c.length)G_._c[o.chipId]=[o.name,0,0];else if(!G_._c[o.chipId][1]||parseInt(G_._c[o.chipId][1])<o.start)G_._c[o.chipId][2]=0;}};function P__meta(){this.constr=P__meta;P__ruleSet_i(this,argToArr(arguments))};P__meta.prototype=new P__ruleSet();function P__popup(){function test(){return this._test();};function launch(){if(this._test()){this.update();return this;};return false;};function pre(time){if(this._test()){if(this.image){if(time)setTimeout("G_.imageLoad.src=\""+this.image+"\"",time);else G_.imageLoad.src=this.image;};return true;};return false;};function pop(noC){var popA=this.source.split("?");var popAb=popA[1]?popA[1]._read(["&","="]):[];popAb=popAb.concat([["LOC",escape(document.location.host+document.location.pathname)],["NOWN",G_.nowN],["UPDATED",escape(this.par._updated.join("~"))],["_T",escape(G_._t)]]);if(G_.win2000&&G_.ie&&G_.ieMajor<6&&!G_.aol7up){popupWin=window.open(popA[0]+"?"+popAb._pack(["&","="]),"POPUP",this.winOpts+(this.winOpts?",":"")+(G_.ie||G_.nav6up?"height=":"innerHeight=")+this.height+(G_.ie||G_.nav6up?",width=":",innerWidth=")+this.width);}else{popupWin=window.open(popA[0]+"?"+popAb._pack(["&","="]),"POPUP",this.winOpts+(this.winOpts?",":"")+(G_.ie||G_.nav6up?"height=":"innerHeight=")+this.height+(G_.ie||G_.nav6up?",width=":",innerWidth=")+this.width+(G_.ie?",left=":",screenX=")+Math.max(((screen.width-this.width-2*G_.horizMargin)*this.pLeft/100+G_.horizMargin-G_.horizBorder),0)+(G_.ie?",top=":",screenY=")+Math.max(((screen.height-this.height-2*G_.vertMargin)*this.pTop/100+G_.vertMargin-G_.topBorder),0));};self.focus();var then=new Date(G_.nowN+3*G_.mo);var newMix="";for(var i=0;i<G_._c.length;i++)if(G_._c[i][1]&&parseInt(G_._c[i][1])>(G_.nowN-3*G_.mo))newMix+=G_._c[i].join("|")+"~";if(!noC)document.cookie="PopUpCalls"+G_._t+"="+escape(newMix.slice(0,-1))+"; expires="+then.toGMTString()+"; path=/"+(G_.domain?"; domain=."+G_.domain:"");};this.constr=P__popup;this.launch=launch;this.pre=pre;this.test=test;this.pop=pop;};P__popup.prototype=new P__ruleSet();function P__popup_i(o,a){P__ruleSet_i(o,a.slice(7));o.source=a[0];o.width=a[1];o.height=a[2];o.image=a[3];o.pLeft=isNaN(a[4])||a[4]<0||a[4]>100?50:a[4];o.pTop=isNaN(a[5])||a[5]<0||a[5]>100?50:a[5];o.winOpts=a[6];};function P_popup(){this.constr=P_popup;P__popup_i(this,argToArr(arguments));};P_popup.prototype=new P__popup();function P__group(){function itemChance(item,chance){this.i=item;this.c=chance;};function addItems(children){for(var i=0;i<children.length;i++)this.items[this.items.length]=new itemChance(children[i],isNaN(children[i+1])?1:children[++i]);};function test(){if(this._test()&&this.items.length)for(var i=0;i<this.items.length;i++)if(this.par[this.items[i].i].test())return true;return false;};function getItem(){if(this._test()&&this.items.length){var temp=[];var totalChances=0;for(var i=0;i<this.items.length;i++)if(this.par[this.items[i].i].test()){temp[temp.length]=this.items[i];totalChances+=this.items[i].c;};if(temp.length==0)return false;if(totalChances==0)return this.par[temp[0].i];var choice=Math.floor(G_.seed*totalChances);var count=0;for(var i=0;i<temp.length;i++)if(choice<(count+=temp[i].c))return this.par[temp[i].i];};return false;};function launch(){var theItem=this.getItem();if(theItem){this.update();return theItem.launch();};return false;};function pre(time){var theItem=this.getItem();if(theItem)return theItem.pre(time);return false;};this.constr=P__group;this.add=addItems;this.getItem=getItem;this.launch=launch;this.test=test;this.pre=pre;};P__group.prototype=new P__ruleSet();function P__group_i(o,a){P__ruleSet_i(o,a);o.items=[];o.chances=[];};function P_group(){this.constr=P_group;P__group_i(this,argToArr(arguments));};P_group.prototype=new P__group();function P__seq(){function addItems(children){this.items=this.items.concat(children);};function launch(){if(this.par.meta._test()&&this._test()&&this.items.length){var i=0;var theItem;while(i<this.items.length&&!(theItem=this.par[this.items[i]].launch()))i++;if(theItem){this.update();this.par.meta.update();theItem.pop((this.name=="unload"&&G_.nav4));return true;}};return false;};function pre(time){if(!this.par.meta._test()||!this._test()||!this.items.length)return false;var i=0;while(i<this.items.length&&!this.par[this.items[i]].pre(time))i++;return(i<this.items.length);};this.constr=P__seq;this.add=addItems;this.launch=launch;this.pre=pre;};P__seq.prototype=new P__ruleSet();function P__seq_i(o,a){P__ruleSet_i(o,a);o.items=[];};function P_seq(){this.constr=P_seq;P__seq_i(this,argToArr(arguments));};P_seq.prototype=new P__seq();function P__(){function addPop(source,width,height,image,pLeft,pTop,winOpts,name,rules,cycle,start,impression){this[name]=new P_popup(source,width,height,image,pLeft,pTop,winOpts,name,rules,cycle,start,impression,this);};function addGrp(name,rules,cycle,start,impression){this[name]=new P_group(name,rules,cycle,start,impression,this);};function addSeq(name,rules,cycle,start,impression){this[name]=new P_seq(name,rules,cycle,start,impression,this);};function add(name,children){this[name].add(children);};if(!G_._c)P_getCookie();this._p=addPop;this._g=addGrp;this._s=addSeq;this._add=add;this._updated=[];this.meta=new P__meta("meta","",0,0,-1,this);this._s("load");this._s("unload");this.meta.rules='';this.meta.cycle=0;this.meta.start=0;this.meta.impression=-1;this._p("http://sportsillustrated.cnn.com/advertisers/2001/si/si_mirrored_01.html",336,320,"",50,50,"scrollbars=yes","si_non_aol1",'',0,0,-1);this._add("unload",["si_non_aol1"]);this.load.rules='';this.load.cycle=0;this.load.start=0;this.load.impression=-1;this.unload.rules='!P_destIs("cnnsi","sportsillustrated","turner","customersvc","wusa","fantasy","cnn")';this.unload.cycle=24;this.unload.start=0;this.unload.impression=-1;};G_._t="SI";G_.ignoreFrames=true;function P_destIs(){for(var i=0;i<arguments.length;i++)if(G_.dest.toLowerCase().indexOf(arguments[i].toLowerCase())>-1)return true;return false;};function P_getCookie(){var c=document.cookie._read([/;\s*/,"="]);G_._c=[];for(var i=0;i<c.length;i++)if(unescape(c[i][0])=="PopUpCalls"+G_._t&&c[i][1]){G_._c=unescape(c[i][1])._read(["~","|"]);break;};P_cC=setTimeout("P_getCookie();",2000);};

