function l1b(e){return(window.event && window.event.srcElement)?window.event.srcElement:(e && e.target)?e.target:false};function OO0(e){var e=e||window.event;var d=(document.documentElement&&document.documentElement.scrollTop)?document.documentElement:document.body;return[e.pageX||e.clientX+d.scrollLeft,e.pageY||e.clientY+d.scrollTop]};function lO1(el){if(el.offsetParent){var x=0;var y=0;while(el){x+=el.offsetLeft;y+=el.offsetTop;el=el.offsetParent};return[x,y]}else return[el.x, el.y]};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/gi, "")};String.prototype.putVars=function(){var o=this;for(var i=0;arguments.length>i;i++){var re=new RegExp("%"+String(i+1));o=o.replace(re,arguments[i])};return o};String.prototype.Oll=function(){var a=this.split(" ");for(var i=0;a[i];i++)
a[i]=a[i].charAt(0).toUpperCase()+a[i].substr(1);return a.join(" ")};function o1o(el){var t='';for(var i=0;i<el.childNodes.length;i++)
if(el.childNodes[i].nodeType==3)
t+=el.childNodes[i].nodeValue;else if(el.childNodes[i].nodeType==1)
t+=o1o(el.childNodes[i]);return t};function sWS(el){window.status=o1o(el);return true};function cWS(){window.status='';return true};function Ili(n,O11){var a=document.cookie.split("; ");for(var i=0;i<a.length;i++){var f=a[i].indexOf(n+"=");if(f>-1){var c=a[i].substr(f+(n+"=").length);if(O11==null||O11=="") return unescape(c);var b=c.split("&");for(var j=0;j<b.length;j++){d=b[j].split("=");if(O11==d[0]){return unescape(d[1])}}}};return null};function Ioi(n,v,d){var lOO=new Date();var l1I=new Date();if(d==null||d==0) d=1;l1I.setTime(lOO.getTime()+86400000*d);document.cookie=n+"="+escape(v)+";expires="+l1I.toGMTString()};var BX;var BH="h2";var BE="end";var BT="t";var BT1="t1";var BT2="t2";var O="open";var EB="edit";var EBB="edit-but";var EB1="cl";var EB2="cr";var MOVE;var BR="ram";var BRC="clon";var NEWB="Select Content...";var NEWT="New Tab";var LND="ldn";var W_WML="wml";var W_EXT="ext";var W="warn";var WT="warn-text";var WA="warn-hide";var WAT="Hide this Alert";var WM="You need to sign in in order to save your %1 homepage settings.";
var WMC="You need to allow cookies in order to save your %1 homepage settings.";if(!BOXCOLORS)var BOXCOLORS={'1':'Gray','2':'Red','3':'Khaki','4':'Pink','5':'Green 1','6':'Green 2','7':'Violet'};if(BOXHTML==null)var BOXHTML='<div class="bor"><h2><span class="crn"></span><span class="h2">%1</span></h2><div class="in %2">%3</div><div class="end"><span></span></div></div>';if(PORTALNAME==null)var PORTALNAME='Inbox.com';var BTX=[
"Remove this box","Do you really want to remove this box?","Edit this box","+<em> | Add New Tab</em>","-<em> | Delete This Tab</em>","Save","Cancel","Do you really want to remove this tab?"
];var I01="/userpage.aspx?";function DRAG(p){this.warn=function(m){var a=document.getElementById(W);if(!a){a=document.createElement("div");this.parent.parentNode.insertBefore(a,this.parent);a.id=W;II0=document.createElement("a");II0.className=WA;II0.appendChild(document.createTextNode(WAT));a.appendChild(II0);II0.dx=this;II0.href="#";II0.onclick=function(){this.dx.o01();return false}};a.style.display="block";var t=document.getElementById(WT);if(!t){t=document.createElement("div");t.id=WT;a.appendChild(t)};t.innerHTML=m};this.o01=function(){var a=document.getElementById(W);if(a)a.style.display="none";this.oOO=false;Ioi("HideAlerts","true",30)};this.bx=new Array;this.parent=p;this.cookies=true;var d=document.getElementById("DP").value.replace(/|$/,"");Ioi("test","true",10/86400);if(Ili("test")!="true"){this.cookies=false;this.warn(WMC.putVars(PORTALNAME))}else{var c=Ili("CMS","PageSet");if(c!=null&&c!=""&&c!=d){var dr=Ili("DO_RELOAD");if(!dr){Ioi("DO_RELOAD","true",20/86400);location.reload();
}else{Ioi("DO_RELOAD","false",-1)}}};this.ol=d;var ol=this.ol.split("|");var ola=Ili("HideAlerts");this.oOO=(ola=="true")?false:true;var cu=Ili("CU");this.OO1=(cu==null||cu=="")?false:true;this.version=ol[0];this.hash=ol[1];var s=2;for(var j=0;p.childNodes[j];j++)
if(p.childNodes[j]!=null&&p.childNodes[j].tagName){for(var i=0;p.childNodes[j].childNodes[i];i++){var el=p.childNodes[j].childNodes[i];if(el!=null&&el.tagName){if(CN(el,"sbox")){el.ol=ol[s];s++}else if(CN(el,"abox")){el.ol=ol[s];s++;el.box=el;el.pos=lO1(el);this.bx[this.bx.length]=el}else if(CN(el,B)){if(CN(el,"bbox"))
el.ol="";else el.ol=ol[s];s++;this.bx[this.bx.length]=el;el.box=new BOX(el)}}}};this.OI0=function(el){var a=document.getElementById("add-box-before");if(a){var b=document.createElement("div");b.className=B+" b2";b.innerHTML=BOXHTML.putVars('<a class="nou">'+NEWB+'</a>','','');a.parentNode.insertBefore(b,a);this.bx[this.bx.length]=b;b.box=new BOX(b,"NEW~1^2^-2");b.box.eB();b.ol=null;b.box.OI1.onreset=function(){Iol(this,B).box.dB();return false}}};this.ool=function(box){var o1O=Array(this.version,this.hash);for(var j=0;this.parent.childNodes[j];j++){if(this.parent.childNodes[j]!=null&&this.parent.childNodes[j].tagName){var co=0;for(var i=0;this.parent.childNodes[j].childNodes[i];i++){var el=this.parent.childNodes[j].childNodes[i];if(el.ol!=null){co++;o1O[o1O.length]=el.ol}}}};var Ioa=o1O.join("|").replace(/\|$/,"");if(Ioa!=this.ol){if(!this.OO1&&this.oOO)
this.warn(WM.putVars(PORTALNAME));this.ol=Ioa;if(box){box.innerHTML=BOXHTML.putVars('Loading...','ldng','<div class="msg">New content of box is loading...</div>');var tb=document.getElementById("tbid");var O0a='';if(tb){O0a='&tbid='+tb.value};var ll=I01+"a=sps&p="+this.ol+"&ch="+box.ol+O0a;IlL(ll,box,'I10')}else{var ll=I01+"a=sps&p="+this.ol;if(this.cookies)
IlL(ll)}}}};function BOX(a,ol){this.box=a;if(ol)this.box.ol=ol;this.oOI=[
'','','1027','1024','','1028','','1863','1864','1865'
];this.oO0=new Object;this.oO0["ico-edit"]="ico-edit";this.oO0["ico-del"]="ico-del";this.txt=new Object;this.txt["ico-edit"]=BTX[2];this.txt["ico-del"]=BTX[0];this.pos=lO1(this.box);this.OIa=function(el,c,f){var i=document.createElement("a");i.href="#";i.title=this.txt[c];l0i(i,"ico "+this.oO0[c]);i.onclick=function(){return eval(f)(this)
};el.appendChild(i)};this.init=function(s){if(!s)s=true;var a=this.box.getElementsByTagName(BH);if(!a[0])return true;a[0].title="Use drag'n drop to move this box";a[0].onmousedown=iD;if(s){this.OIa(a[0],"ico-edit",eB);this.OIa(a[0],"ico-del",dB)};var b=IIl(a[0],BT,"span");this.box.III=0;if(b){var ba=b[0].getElementsByTagName("a");for(var i=0;ba[i];i++){ba[i].onclick=function(){return aTab(this)
};ba[i].title=o1o(ba[i]);if(CN(ba[i],ACT))
this.box.III=i}};var wml=IIl(this.box,W_WML,"p");if(wml){for(var i=0;wml[i];i++){var ext=IIl(wml[i],W_EXT,"a");if(ext)
ext[0].onclick=function(){return eB(this)}}}};this.init();this.oO1=function(){if(this.box.ol){var I1b=this.box.ol.split('\\');this.I0=new Array();for(var i=0;I1b[i];i++){this.I0[i]=new Object;var s=o1L(I1b[i]);this.O01(i,s[1],s)}}};this.oI1=function(){var a=Array();for(var i=0;this.I0[i];i++){var s="";switch(this.I0[i].Ol){case 1:s=[this.I0[i].feed,this.I0[i].Ol,this.color,this.I0[i].OIl,this.I0[i].detail,this.I0[i].size,this.I0[i].caption,this.I0[i].lOi,this.I0[i].lOi];break;case 3:s=[this.oOI[this.I0[i].Ol-1],this.I0[i].Ol,this.color,this.I0[i].units,this.I0[i].ol0,this.I0[i].lOL,this.I0[i].state,this.I0[i].olL,this.I0[i].oII,this.I0[i].I0L,this.I0[i].lOi];break;case 4:case 6:case 9:case 10:s=[this.oOI[this.I0[i].Ol-1],this.I0[i].Ol,this.color,this.I0[i].lOi];break;default:s=[this.oOI[this.I0[i].Ol-1],this.I0[i].Ol,this.color]};a[i]=O0O(s)};this.box.ol=a.join('\\')};this.O01=function(i,o00,s){this.I0[i].Ol=parseInt(o00,10);if(s||!this.color)
this.color=(s&&s[2])?s[2]:1;this.IlO=this.color;switch(this.I0[i].Ol){case 1:if(s||!this.I0[i].OIl)
this.I0[i].OIl=(s&&s[3])?s[3]:0;if(s||!this.I0[i].feed)
this.I0[i].feed=(s&&s[0])?s[0]:0;if(s||!this.I0[i].detail)
this.I0[i].detail=(s&&s[4])?s[4]:0;if(s||!this.I0[i].size)
this.I0[i].size=(s&&s[5])?s[5]:0;if(s||!this.I0[i].caption)
this.I0[i].caption=(s&&s[6])?s[6]:0;if(s||!this.I0[i].lOi)
this.I0[i].lOi=(s&&s[7])?s[7]:1;break;case 3:if(s||!this.I0[i].units)
this.I0[i].units=(s&&s[3])?s[3]:'F';if(s||!this.I0[i].ol0)
this.I0[i].ol0=(s&&s[4])?s[4]:"";if(s||!this.I0[i].lOL)
this.I0[i].lOL=(s&&s[5])?s[5]:"";if(s||!this.I0[i].state)
this.I0[i].state=(s&&s[6])?s[6]:"";if(s||!this.I0[i].olL)
this.I0[i].olL=(s&&s[7])?s[7]:"";if(s||!this.I0[i].oII)
this.I0[i].oII=(s&&s[8])?s[8]:"";if(s||!this.I0[i].I0L)
this.I0[i].I0L=(s&&s[9])?s[9]:"";if(s||!this.I0[i].lOi)
this.I0[i].lOi=(s&&s[10])?s[10]:0;break;case 4:case 6:case 9:case 10:if(s||!this.I0[i].lOi)
this.I0[i].lOi=(s&&s[3])?s[3]:1;break;default:break}};this.IIO=function(i){this.box.className=this.box.className.replace(/(\d)/,parseInt(i,10))};this.I00=function(c){this.IIO(c.value);this.color=c.value;for(var i=0;this.I0[i];i++)
this.I0[i].ooI.value=c.value};this.llI=function(el){if(el.value<0)return false;this.removeDeleted(el);for(i=0;this.I0[i];i++)
if(this.I0[i].Ooi&&this.I0[i].Ooi==el)
break;this.I0[i].feed=el.value};this.Oo1=function(el){for(i=0;this.I0[i];i++)
if(this.I0[i].Olo&&this.I0[i].Olo==el)
break;this.I0[i].detail=el.value};this.Io0=function(el){for(i=0;this.I0[i];i++)
if(this.I0[i].O0I&&this.I0[i].O0I==el)
break;this.I0[i].size=el.value};this.oIO=function(el){for(i=0;this.I0[i];i++)
if(this.I0[i].IIo&&this.I0[i].IIo==el)
break;this.I0[i].caption=el.value};this.oo1=function(el){for(i=0;this.I0[i];i++)
if(this.I0[i].olo&&this.I0[i].olo==el)
break;this.I0[i].units=el.value};this.oOL=function(el){for(i=0;this.I0[i];i++)
if(this.I0[i].l0&&this.I0[i].l0==el)
break;this.I0[i].lOi=(el.checked)?'1':'0'};this.ol1=function(el,v){for(i=0;this.I0[i];i++)
if(this.I0[i].O0l==el)
break;if(v.length>3){this.I0[i].ol0=v[0];this.I0[i].lOL=v[1];this.I0[i].state=v[2];this.I0[i].olL=v[3]?v[3]:"";this.I0[i].oII=v[4]?v[4]:"";this.I0[i].I0L=v[5]?v[5]:"";el.loading=false;this.OIi()}};this.l0O=function(el){for(var i=0;this.I0[i];i++)
if(this.I0[i].lO==el)
break;this.removeDeleted(el);if(el.value==""||el.value<0)
this.O1i(i,0);else if(r=el.value.match(/^TYP([0-9]{1,2})$/))
this.O1i(i,r[1]);else{if(!this.I0[i].Ooi||this.I0[i].Ol!=1)
this.O1i(i,1);ll=I01+"cid="+el.value;var i;if(c=l1O(ll)){o0l(this.I0[i].Ooi,c,(el.value==this.I0[i].OIl)?this.I0[i].feed:null)}else{o0l(this.I0[i].Ooi,'-1~Loading...','-1');IlL(ll,this.I0[i].Ooi,'o0l',(el.value==this.I0[i].OIl)?this.I0[i].feed:null);this.OIi()};this.I0[i].OIl=el.value}};this.removeDeleted=function(el){if(el.filling!==true)if(el.options[el.options.length-1].deleted_option===true)el.options[el.options.length-1]=null};this.O1i=function(i,o00){for(var a=this.I0[i].O1o.childNodes.length-1;a>0;a--)
this.I0[i].O1o.removeChild(this.I0[i].O1o.childNodes[a]);this.I0[i].IOL.innerHTML="";this.O01(i,o00);this.l11(i)};this.OoI=function(el){aTab(el)};this.Oli=function(){this.oIo.style.display=(this.I0.length<3)?"inline":"none";this.llo.style.display=(this.I0.length>1)?"inline":"none"};this.l0I=function(tc){if(this.I0.length==2)
l0i(tc,BT2);else l1l(tc,BT2);if(this.I0.length==1)
l0i(tc,BT1);else l1l(tc,BT1)};this.OIi=function(){var l=false;var v=false;var s=this.OOo.getElementsByTagName("select");for(var i=0;s[i];i++){if(s[i].loading)
l=true;if(s[i].value<0)
v=true};var s=this.OOo.getElementsByTagName("input");for(var i=0;s[i];i++){if(s[i].loading)
l=true};if(l||v)
this.I0l.disabled=true;else this.I0l.disabled=false};this.aE=function(){var b=IIl(this.box,IN);if(b){if(IIl(this.box,EB)!==false)
return false;this.IoO=this.box.innerHTML;this.oO1();var e=document.createElement("div");e.className=EB;b[0].parentNode.insertBefore(e,b[0]);var ef=document.createElement("form");e.appendChild(ef);this.OI1=ef;ef.onreset=IO0;ef.onsubmit=save;this.OOo=document.createElement("div");ef.appendChild(this.OOo);var eb=document.createElement("div");eb.className=EBB;var Io1=document.createElement("div");Io1.className=EB1;eb.appendChild(Io1);this.oIo=o1I(BTX[3],"button");this.oIo.onclick=function(){Iol(this,B).box.O00(this);return false};Io1.appendChild(this.oIo);var span=document.createElement("span");span.className="but-div";span.appendChild(document.createTextNode(" "));Io1.appendChild(span);this.llo=o1I(BTX[4],"button");this.llo.onclick=function(){Iol(this,B).box.oo0(this);return false};Io1.appendChild(this.llo);this.I0l=o1I(BTX[5],"submit");eb.appendChild(this.I0l);var span=document.createElement("span");span.className="but-div";span.appendChild(document.createTextNode(" "));eb.appendChild(o1I(BTX[6],"reset"));
ef.appendChild(eb);for(var i=0;this.I0[i];i++){this.l0L(i)};this.Oli();return true}};this.l0L=function(i){var ee=document.createElement("div");ee.className=EIN;if(i!=this.box.III)
l0i(ee,HIN);this.OOo.appendChild(ee);var o10=document.createElement("div");o10.className=EB1;ee.appendChild(o10);var oI0=document.createElement("div");oI0.className=EB2;ee.appendChild(oI0);this.I0[i].O1o=o10;this.I0[i].IOL=oI0;this.I0[i].lO=oOl({'TYP3':'Weather','TYP4':'Popular Links','TYP6':'Web Directory','TYP8':'Quotes','TYP9':'History','TYP10':'Dilbert Comics','-1':'','-2':'Select News Category:','-3':' Loading...'},((this.I0[i].Ol==1)?'-3':'TYP'+this.I0[i].Ol));this.I0[i].O1o.appendChild(I1i([IOl("Content:"),this.I0[i].lO]));if(this.I0[i].Ol!=1)this.l0O(this.I0[i].lO);var c;var ll=I01+"a=clist";if(c=l1O(ll)){Ioo(this.I0[i].lO,c,(this.I0[i].Ol==1)?this.I0[i].OIl:null)}else{IlL(ll,this.I0[i].lO,'Ioo',(this.I0[i].Ol==1)?this.I0[i].OIl:null);this.OIi()};this.I0[i].lO.onchange=function(){return Iol(this,B).box.l0O(this)}};this.O00=function(el){var h=this.box.getElementsByTagName(BH);if(h){var b=IIl(h[0],BT,"span");if(!b){var a=h[0].getElementsByTagName("a");var t=IIl(h[0],BH,"span");if(t)
t=t[0];else{t=document.createElement("span");a[0].parentNode.insertBefore(t,a[0])};l0i(t,BT);a[0].onclick=function(){return aTab(this)
};if(o1o(a[0])==NEWB)a[0].innerHTML="<em>"+NEWT+"</em>";a[0].title=o1o(a[0]);t.appendChild(a[0]);var am=a[0].getElementsByTagName("strong");a[0].innerHTML="<em>"+o1o(a[0])+"</em>"};var b=IIl(h[0],BT,"span");var a=b[0].getElementsByTagName("a");var II1=document.createElement("a");II1.href="javascript:void(0)";II1.className="nou";var em=document.createElement("em");em.appendChild(document.createTextNode(NEWT));II1.appendChild(em);b[0].appendChild(II1);II1.onclick=function(){return aTab(this)
};II1.title=o1o(II1);var IIb=document.createElement("div");IIb.className=IN;var be=IIl(this.box,BE,'div');be[0].parentNode.insertBefore(IIb,be[0]);this.I0[this.I0.length]=new Object;this.l0L(this.I0.length-1);this.O1i(this.I0.length-1,0);this.I0[this.I0.length-1].lO.value=-2;this.OoI(II1);this.Oli();this.l0I(b[0])}};this.oo0=function(el){if(confirm(BTX[7])){var h=this.box.getElementsByTagName(BH);if(h){var a=h[0].getElementsByTagName("a");var act=null;if(!a[0])
return false;var b=a[0].parentNode;if(CN(b,BT))
for(var i=0;a[i];i++){if(CN(a[i],ACT)){act=i;break}};if(act!=null){var p=(act==a.length-3)?-1:1;this.OoI(a[act+p]);a[act].parentNode.removeChild(a[act]);var a=IIl(this.box,IN);a[act].parentNode.removeChild(a[act]);var a=IIl(this.box,EIN);a[act].parentNode.removeChild(a[act]);var Ooa=new Array();for(var i=0;this.I0[i];i++)
if(i!=act)
Ooa[Ooa.length]=this.I0[i];this.I0=Ooa;this.Oli();this.l0I(b);this.OIi()}}}};this.l11=function(i){if(this.I0l)this.OIi();switch(this.I0[i].Ol){case 0:if(this.I0l)
this.I0l.disabled=true;break;case 1:this.I0[i].Ooi=oOl({'-1':'Loading...'},'-1','llI');this.I0[i].O1o.appendChild(I1i([IOl("Source:"),this.I0[i].Ooi]));this.I0[i].Olo=oOl({'0':'Detailed','1':'Only List'},this.I0[i].detail,'Oo1');this.I0[i].IOL.appendChild(I1i([IOl("Look:"),this.I0[i].Olo]));this.I0[i].IIo=oOl({'0':'News Source','1':'News Category'},this.I0[i].caption,'oIO');this.I0[i].O1o.appendChild(I1i([IOl("Caption:"),this.I0[i].IIo]));this.I0[i].O0I=oOl({'0':'Large','1':'Small'},this.I0[i].size,'Io0');this.I0[i].IOL.appendChild(I1i([IOl("Size:"),this.I0[i].O0I]));this.I0[i].l0=Il1('oOL');this.I0[i].O1o.appendChild(I1i([this.I0[i].l0,IOl("Open Links in New Window",this.I0[i].l0.id)]));if(this.I0[i].lOi==1)
this.I0[i].l0.checked=true;break;case 3:var s=(this.I0[i].state!="")?this.I0[i].state:this.I0[i].oII;this.I0[i].O0l=Il0((this.I0[i].lOL.Oll()+", "+s.toUpperCase()).replace(/,\s+$/,""));this.I0[i].O1o.appendChild(I1i([IOl("Location:"),this.I0[i].O0l]));this.I0[i].O0l.SG=new SG(this.I0[i].O0l,'Iol(this.el,B).box.ol1');this.I0[i].olo=oOl({'F':'English','C':'Metric'},this.I0[i].units,'oo1');var OOb=I1i([IOl("Units:"),this.I0[i].olo]);this.I0[i].IOL.appendChild(OOb);break;case 4:case 6:case 9:case 10:this.I0[i].l0=Il1('oOL');this.I0[i].O1o.appendChild(I1i([this.I0[i].l0,IOl("Open Links in New Window",this.I0[i].l0.id)]));if(this.I0[i].lOi==1)this.I0[i].l0.checked=true;break};this.I0[i].ooI=oOl(BOXCOLORS,this.color,'I00');this.I0[i].IOL.appendChild(I1i([IOl("Color:"),this.I0[i].ooI]))};this.OlO=function(){this.IIO(this.IlO);this.box.innerHTML=this.IoO;this.init(false);this.l0a()};this.IIa=function(){this.oI1();this.l0a();BX.ool(this.box)};this.eB=function(){if(CN(this.box,O)){l1l(this.box,O);
this.OlO()}else{l0i(this.box,O);this.aE()}};this.l0a=function(){l1l(this.box,O);var e=IIl(this.box,EB);if(e!==false){e[0].parentNode.removeChild(e[0])}};this.dB=function(){l0i(this.box,"del");if(confirm(BTX[1])){this.box.parentNode.removeChild(this.box);BX.ool()}else l1l(this.box,"del")};this.llO=function(e){if(window.event){window.event.cancelBubble=true;window.event.returnValue=false}else e.preventDefault()};this.iD=function(e){var m=OO0(e);var p=lO1(this.box);this.OOL=[m[0]-p[0],m[1]-p[1]];this.llL=OO0(e);MOVE=this;document.onmousemove=dD;document.onmouseup=eD;this.llO(e)};this.dD=function(e){if(this.O1a){var pos=OO0(e);this.IOi.style.left=pos[0]-this.OOL[0]+"px";this.IOi.style.top=pos[1]-this.OOL[1]+"px";var m=OO0(e);var n=lO1(this.IOi);var v=100000000;var I0O=null;for(var i=0;BX.bx[i];i++){var a=BX.bx[i].box.pos;var b=Math.sqrt(Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2));if(isNaN(v))
continue;if(b<v){v=b;I0O=BX.bx[i]}};if(I0O!=null){if(this.o0a&&this.IOi.parentNode.className!=I0O.parentNode.className)
return false;if(this.IOi.parentNode.className!=I0O.parentNode.className){this.IOi.parentNode.className=I0O.parentNode.className;this.IOi.style.width=I0O.parentNode.offsetWidth+"px";if(this.IOi.offsetLeft+this.IOi.offsetWidth<pos[0]){this.OOL[0]=20};this.dD(e);return false};var l1a=this.box.parentNode;var O0b=false;if(this.box.nextSibling!=I0O);I0O.parentNode.insertBefore(this.box,I0O);if(!CN(I0O,'bbox')&&l1a==this.box.parentNode&&this.llL[1]-m[1]<0)
this.box.parentNode.insertBefore(I0O,this.box);this.oOa()};this.llL=m}else{var m=OO0(e);if(Math.abs(this.llL[0]-m[0])>5||Math.abs(this.llL[1]-m[1])>5){this.lOa();this.O1a=true;this.dD(e)}};this.llO(e)};this.oOa=function(){for(var i=0;BX.bx[i];i++)
BX.bx[i].box.pos=lO1(BX.bx[i])};this.eD=function(e){document.onmousemove=null;document.onmouseup=null;this.lla();if(this.OIo==0){this.O1a=false;this.OIo=null;BX.ool()};if(e)
this.llO(e)};this.lOa=function(){var b=document.createElement("div");l0i(this.box.parentNode.parentNode,"drag");b.className=this.box.parentNode.className;this.box.parentNode.parentNode.parentNode.appendChild(b);var a=this.box.cloneNode(this.box);b.appendChild(a);b.style.zIndex=1000;this.IOi=a;this.IOi.style.width=this.box.parentNode.offsetWidth+"px";this.IOi.style.position="absolute";this.IOi.style.zIndex=1000;l0i(this.IOi,BRC);l0i(this.box,BR)};this.lla=function(){if(this.IOi){if(this.OIo==0){l1l(this.box,BR);this.IOi.parentNode.removeChild(this.IOi);this.IOi=false;l1l(this.box.parentNode.parentNode,"drag")}else{var a=lO1(this.IOi);var b=lO1(this.box);this.OIo=5;this.OOL=[parseInt((b[0]-a[0])/this.OIo,10),parseInt((b[1]-a[1])/this.OIo,10)];MOVE=this;this.move()}}};this.move=function(){var a=this.pos;this.OIo--;this.IOi.style.left=a[0]-(this.OIo-1)*this.OOL[0]+"px";this.IOi.style.top=a[1]-(this.OIo-1)*this.OOL[1]+"px";if(this.OIo>0)
setTimeout("MOVE.move()",1);else this.eD()}};function eB(el){var a=Iol(el,B);if(a&&a.box)
a.box.eB();return false};function dB(el){var a=Iol(el,B);if(a&&a.box)
a.box.dB();return false};function iD(e){var a=Iol(this,B);if(a&&a.box)
a.box.iD(e);return false};function dD(e){MOVE.dD(e);return false};function eD(e){MOVE.eD(e);return false};function IO0(e){Iol(this,B).box.OlO();return false};function save(e){Iol(this,B).box.IIa();return false};function o1L(Ila){if(Ila==null)
return false;var a=Ila.split("~");var b=a[a.length-1].split("^");return a.slice(0,a.length-1).concat(b)};function O0O(ool){if(ool.length>2)
return ool.slice(0,2).join("~")+"^"+ool.slice(2).join("^");else return ool.join("~")};var OOI=Array();function l1O(u){for(var i=0;OOI[i];i++){if(OOI[i][0]==u){return OOI[i][1]}};return false};function ll0(u,t){OOI[OOI.length]=Array(u,t)};function HR(){var O0L=false;if(window.XMLHttpRequest)
O0L=new XMLHttpRequest();else try{O0L=new ActiveXObject("Microsoft.XMLHTTP")}catch(er){O0L=new O1()};return O0L};var X=Array();function IlL(u,el,f,I1I){var x=X.length;if(el&&el.X){x=el.X};X[x]=HR();var a=Iol(el,B);X[x].open("GET",u,true);if(el&&f){el.loading=true;el.X=x;eval("X[x].onreadystatechange=function(){if(X[x].readyState==4){el.loading=false;if(X[x].status==200){ll0(u,X[x].responseText);"+f+"(el,X[x].responseText,I1I)}else "+f+"(el,'',I1I)}}")};X[x].send(null)};function O1(){this.method="POST";this.ll=null;this.async=true;this.iframe=null;this.responseText=null;this.lOo=new Object();this.id="I11"+new Date().getTime()+new Date().getMilliseconds()+Math.random();this.container=document.body;this.I1a=404};O1.prototype.open=function(method,ll,async){this.method=method;this.ll=ll;this.async=async;this.readyState=0;this.iframe=document.createElement("iframe");this.iframe.style.visibility="hidden";this.iframe.style.display="none";this.iframe.id=this.id;if(document.getElementById(this.id)==null)this.container.appendChild(this.iframe);
this.setRequestHeader("___xmlhttp", "iframe")
};O1.prototype.setRequestHeader=function(name,value){this.lOo[name]=value
};O1.prototype.send=function(data){if(this.method.toLowerCase()=="post"){var html=[];html[html.length]='<html><body><form method="'+this.method+'" action="'+this.ll+'">';for(name in this.lOo)
html[html.length]='<textarea name="'+name+'">'+this.lOo[name]+'</textarea>';if(data !=null && data.length > 0)
html[html.length]='<textarea name="_data">'+data+'</textarea>';html[html.length]='<s'+'cript>document.forms[0].submit();</s'+'cript>';html[html.length]='</form></body></html>'};this.iframe.Il=this;this.iframe.Il.IoI=-1;this.iframe.Il.responseText=null;this.iframe.onreadystatechange=this.lli;if(this.method.toLowerCase()=="post")
this.iframe.src="javascript:document.write('"+html.join('').replace(/\'/g,"\\'").replace(/\r\n/g, "\\r\\n")+"');void(0);";else this.iframe.src=this.ll
};O1.prototype.lli=function(){this.Il.IoI++;if(this.Il.IoI < 1)return;if(this.Il.IoI==1){this.Il.readyState=1}else if(this.Il.IoI > 1){switch(this.readyState.toString()){case "loading":this.Il.readyState=2;break;case "interactive":this.Il.readyState=3;break;case "complete":var h=window.frames[this.id].document.childNodes[0].childNodes[1].innerHTML;if(h !=null)
this.Il.status=200;this.Il.responseText=h;this.onreadystatechange=function(){};this.Il.readyState=4;break}};if(typeof(this.Il.onreadystatechange)=="function")
this.Il.onreadystatechange()
};O1.prototype.abort=function(){this.iframe.src=""};function SG(el,f){this.el=el;el.onkeyup=this.O1b;if(IE)
el.onkeydown=this.Iob;else el.onkeypress=this.Iob;el.onblur=this.b;el.onclick=this.f;el.onfocus=this.f;el.onmouseover=this.Ola;this.fc=(f)?f:false;this.s="";this.ft="";this.cont=document.createElement("span");this.cont.style.zIndex="10000";this.el.parentNode.insertBefore(this.cont,this.el);this.cont.appendChild(this.el);this.ooi=document.createElement("div");this.ooi.className="SG";this.ooi.ooO=this.el;this.ooi.last=false;this.ooi.onmouseover=this.o11;this.ooi.onmousedown=this.o11;this.cont.appendChild(this.ooi);this.I0a=["Searching...","Please fill in your city or ZIP.","Did not match any location.","See all o0I"];this.act=false;this.ll=I01+"a=ws&n="};SG.prototype.Iob=function(e){if(!e)
e=window.event;var k=(e.which)?e.which:e.keyCode;var el=this;if(k==13)
return false;else if(k==39){if(el.SG.act!=-1)
el.SG.da(0)}else if(k==38)el.SG.da(-1);else if(k==40)el.SG.da(1)};SG.prototype.O1b=function(e){if(!e)e=window.event;var k=(e.which)?e.which:e.keyCode;var el=this;if((k>=48&&k<=57)||(k>=97&&k<=122)||(k>=65&&k<=90)||(k==32))
el.SG.get(200);else if(k==8||k==46)
el.SG.get(100);else if(k==13)el.SG.da(0)};SG.prototype.get=function(t){clearTimeout(this.s);this.s=null;var el=this.el;var a=el.value.split(",")[0].toLowerCase();if(a=="")
this.clr();else{var f=function(){var c;var ll=el.SG.ll+a;c=l1O(ll);if(c!==false)
IIL(el,c);else{el.SG.ooi.innerHTML='<p class="ldng">'+el.SG.I0a[0]+'</p>';el.SG.act=false;el.SG.on();IlL(ll,el,'IIL')}};this.s=setTimeout(f,t)}};SG.prototype.on=function(){clearTimeout(this.ft);var a=this.ooi.getElementsByTagName("div");var p=this.ooi.getElementsByTagName("p");if(a.length>0||p.length>0){this.ooi.style.display="block";this.cont.style.position="relative";this.ooi.style.top=this.el.offsetHeight+"px";this.ooi.style.width=this.el.offsetWidth-2+"px";OIO(this.ooi);IO1(this.ooi)}};SG.prototype.clr=function(){this.ooi.style.height="auto";this.ooi.style.overflow="hidden";this.ooi.innerHTML='<p>'+this.I0a[1]+'</p>';this.act=false;this.on()};SG.prototype.Ola=function(e){var el=this;clearTimeout(el.SG.ft)};SG.prototype.o11=function(e){var el=this.ooO;clearTimeout(el.SG.ft)};SG.prototype.off=function(){OIO(this.ooi);this.ooi.style.display="none";this.cont.style.position="static"};SG.prototype.da=function(n){if(this.act!==false){var b=this.act;var a=this.ooi.getElementsByTagName("div");
b=b+n;if(b<0)
b=a.length-1;else if(b>a.length-1)
b=0;this.a(a[b]);if(n==0)
this.ol(a[b])};return false};SG.prototype.a=function(el){var a=this.ooi.getElementsByTagName("div");if(this.act!==false&&this.act!=-1)
a[this.act].className="";el.className="SG_a";for(var i=0;a[i];i++)
if(a[i]==el){this.act=i;break}};SG.prototype.b=function(e){var el=this;var f=function(){el.SG.off()
};el.SG.ft=setTimeout(f,800)};SG.prototype.lOb=function(e){var el=this.ooO;var f=function(){el.SG.off()
};el.SG.ft=setTimeout(f,100)};SG.prototype.f=function(e){this.SG.on()};SG.prototype.ol=function(el){this.el.value=o1o(el);this.l=this.el.value;this.clr();this.off();this.ooi.last=false;if(this.fc)
eval(this.fc+"(this.el,el.v)");return false};function IIL(el,t,Ol0){el.SG.ooi.innerHTML='';var I0I="|";var IOI="~";var o=t.split(I0I);if(o.length>0&&o[0].trim()!=""){el.SG.act=-1;for(var i=0;o[i];i++){var v=o[i].split(IOI);if(v.length>5){var r=document.createElement("div");r.v=v;var s=(r.v[2]!="")?r.v[2]:r.v[4];var OIb=(r.v[2]!="")?r.v[3]+", "+r.v[5]:r.v[5];r.appendChild(document.createTextNode((r.v[1].Oll()+", "+s.toUpperCase()).replace(/,\s+$/,"")));r.title=(r.v[1].Oll()+", "+OIb.Oll()).replace(/,\s+$/,"");r.onmouseover=function(){return this.parentNode.ooO.SG.a(this)
};r.onclick=function(){return this.parentNode.ooO.SG.ol(this)
};el.SG.ooi.appendChild(r)};if(!Ol0&&i==10&&o.Ilb>11){var r=document.createElement("p");r.className="more";var a=document.createElement("a");a.href="#";a.appendChild(document.createTextNode(el.SG.I0a[3]));eval("a.onclick=function(){var a=this.parentNode.parentNode.ooO.SG;IIL(a.el,t,true);a.on();return false};");r.appendChild(a);el.SG.ooi.appendChild(r);break}}}else{el.SG.ooi.innerHTML='<p class="warn">'+el.SG.I0a[2]+'</p>';el.SG.act=false
};if(!Ol0){el.SG.ooi.last=t;el.SG.ooi.style.height="auto";el.SG.ooi.style.overflow="hidden"}else if(el.SG.ooi.offsetHeight>300){el.SG.ooi.style.height="300px";el.SG.ooi.style.overflow="scroll"};el.SG.on();OIO(el.SG.ooi);IO1(el.SG.ooi)};function Ioo(el,t,I1I){var a=Iol(el,B);el.options[el.options.length-1]=null;OIL(el,t,I1I,String.fromCharCode(160,160),'','','* Deleted News Category');if(a){el.filling=true;a.box.l0O(el);el.filling=null;a.box.OIi()}};function o0l(el,t,I1I){el.filling=true;for(var i=el.options.length-1;i>=0;i--){el.options[i]=null};OIL(el,t,I1I,'','','','* Deleted Source');if(el.value>0){var a=Iol(el,B);if(a){a.box.llI(el);a.box.OIi()}};el.filling=null};function I10(el,t,d){var I0b=t.trim().replace(/^<div[^>]*>/gi,"").replace(/<\/div>$/gi,"").trim();if(I0b!=""){var at=el.III;el.innerHTML=I0b;el.box.init(true);var h=el.getElementsByTagName(BH);if(h){var b=IIl(h[0],BT,"span");if(b){var ba=b[0].getElementsByTagName("a");if(ba[at])el.box.OoI(ba[at])}}}else{el.innerHTML=BOXHTML.putVars('Error','ldng','Error - Wrong Box Settings');
el.box.init(true)}};function oOl(vals,Ooo,f){var a=document.createElement("select");document.body.appendChild(a);for(var i in vals){var Ol1=new Option(vals[i].replace(/^\s/,String.fromCharCode(160)),i,(i==Ooo)?true:false,(i==Ooo)?true:false);a.options[a.options.length]=Ol1;if(parseInt(i,10)<0){var b=a.getElementsByTagName("option");b[b.length-1].className="gray"}};if(Ooo)
a.value=Ooo;if(f)
eval("a.onchange=function(){return Iol(this,B).box."+f+"(this)}");return a};function OIL(s,data,I1I,prefix,I0I,IOI,er_msg){if(!I0I)
I0I="|";if(!IOI)
IOI="~";if(!prefix)
prefix="";if(!er_msg)
er_msg="";var o=data.split(I0I);if(o.length>0&&o[0].trim()!=""){for(var i=0;o[i];i++){var v=o[i].split(IOI);if(v.length>1){var OOa=(v[0]==I1I)?true:false;var Ol1=new Option(prefix+v[1],v[0],OOa,OOa);s.options[s.options.length]=Ol1}}}else{var Ol1=new Option(prefix+"Error: No options","-1000");s.options[s.options.length]=Ol1};if(I1I){s.value=I1I;if(s.value!=I1I){var Ol1=new Option(prefix+er_msg,I1I);s.options[s.options.length]=Ol1;s.value=I1I;s.options[s.options.length-1].deleted_option=true}}};function IOl(t,id){var c=document.createElement("label");c.appendChild(document.createTextNode(t+" "));if(id){c.setAttribute('for',id);c.className="for-chx"};return c};function I1i(a){var d=document.createElement("div");for(var i=0;a[i];i++)
d.appendChild(a[i]);return d};function o1I(a,t){var c;if(t=="button"){c=document.createElement("button");c.setAttribute('type','button');c.innerHTML=a}else{c=document.createElement("input");c.setAttribute('type',t);c.value=a};c.className=t;return c};function Il0(t){var c=document.createElement("input");c.value=t;c.setAttribute('type','text');c.className='text';return c};function Il1(f){var c=document.createElement("input");c.setAttribute('type','checkbox');c.className='check';c.id="chx"+Math.random();if(f)
eval("c.onclick=function(){return Iol(this,B).box."+f+"(this)}");return c};function l01(){BX=new DRAG(document.getElementById("m"));var a=document.getElementById("add-box");if(a){a.onclick=function(){BX.OI0(this);return false}};l0i(document.getElementById("hp4"),LND)};l01();

