// Title: COOLjsOutlookBar // URL: http://javascript.cooldev.com/scripts/outlook/ // Version: 1.0.7 // Last Modify: 21 August 2004 // Notes: Registration needed to use this script on your web site. // Registration for this version is FREE for evaluating, personal and non-profit use. // Author: Helena Nikitina // Copyright (c) 2003-2004 by CoolDev.Com var _j=-1,_7=-1,_T=false;function COOLjsOutlookBar(_2){bw=new _14();window.$bar=this;this._2=_2;this._n=false;this._h=0;this._t=0;this._w='';window.onload=function(){window.$bar._b()};window.onunload=function(){window.$bar._a()};window.onresize=function(){if(bw.ns4)document.location.reload();else window.$bar._l()};document.onselect=function(){return false};if(bw.operaOld){$iw=innerWidth;$ih=innerHeight;$tiw=top.innerWidth;$tih=top.innerHeight;window.setInterval('if($iw!=innerWidth||$ih!=innerHeight||$tiw!=top.innerWidth||$tih!=top.innerHeight)document.location.reload();',300)};this.$panels=this._6=[];this._2.panels=this._2.panels.slice(0,3);for(var i=0;i
'+unescape('%43%4F%4F%4C%6A%73%4F%75%74%6C%6F%6F%6B%42%61%72%26%6E%62%73%70%3B%50%52%4F')+'
'},{});document.write('
'+this._w)};$=COOLjsOutlookBar.prototype;$._O=function(_o,_q){window.open(_o,_q||this._2.format.target)};$._b=function(){for(var i=0;i':'')};$=_p.prototype;$._b=function(){this._5[0]._b();this._5[3]._b();with(this._5[0]){this.x=x;this.y=y;this.w=w;this.h=h};this._5[3].el._D=this;this._5[3].el.onmousedown=function(){this._18=true;this._D._H()};this._5[3].el.onmouseup=function(){this._18=false;if(bw.ns4)this.onclick();this._D._C()};this._5[3].el.onclick=function(){this._D._I()};if(bw.realDom){this._5[0]._f();this._5[0]._e()}};$._a=function(){this._5[0]._a();this._5[3]._a()};$._1a=$._X=$._H=$._C=$._I=function(){};$._f=function(){if(!this._x){this._5[this._F]._f();this._5[3]._f();this._x=true};this._5[3]._19(this.h=this._5[this._F]._G())};$._e=function(){if(this._x){this._5[this._F]._e();this._5[3]._e();this._x=false}};$._i=function(_x,_y){this._5[0]._i(_x,_y);this._5[3]._i(_x,_y);this.x=_x;this.y=_y};$._R=function(_k,_s,_17){if(typeof(_k)=='object')_k=this._R(_17,_k);for(var _E in _s)while(_k.indexOf('{'+_E+'}')!=-1)_k=_k.replace('{'+_E+'}',_s[_E]);return _k};function _S(_0,_3){this._0=_0;this._3=_3;this._c=0;var _2=this._0._2.panels[this._3];this._o=_2.url;this._q=_2.target;this._1=new _p(bw.ns4?null:'100%',3,this._0._2.format.templates.panel,_2);this._1._8=this;this._1._I=function(){if(this._8._12()){this._8._0._$();this._8._Y(0)};if(this._8._o)window.$bar._O(this._8._o,this._8._q)};this._4=[];for(var i=0;i=this.h&&!this._8._u(this,true))this._8._B(+1);window.$bar._O(this._o,this._q)}}};this.arr_up=new _p('auto',2,this._0._2.format.templates.upArrow,{});this.arr_up._8=this;this.arr_up._H=function(){this._8._B(-1)};this.arr_dn=new _p('auto',2,this._0._2.format.templates.downArrow,{});this.arr_dn._8=this;this.arr_dn._H=function(){this._8._B(+1)};this.arr_up._X=this.arr_up._C=this.arr_dn._X=this.arr_dn._C=function(){this._8._0._t=0}};$=_S.prototype;$._b=function(){this._1._b();for(var i=0;i=this._1.y&&(this._3==this._0._6.length-1||_1.y+_1.h-1=this._1.y+this._1.h&&_1.y=this._1.y+this._1.h&&_1.y+_1.h=0&&this._3>_N)_g+=this._0._d();return _g};$.$update=$._l=function(_9){var _y=this._10(_7);this._1._i(0,_y+(_9?this._0._V(this._10(_j)-_y):0));this._1._f();if(_7==this._3||(_9&&_j==this._3)){if(this._y()0){this._c--;if(this._y()>this._0._d()){this._c++;break}else if(this._y()>=this._0._d())break};_y+=this._1.h;if(this._0._h==0){this._dy=0;if(_9){if(this._3==_7){if(_7>_j&&_j!=-1)this._dy=this._0._d()}else{if(_j<_7||_7==-1)return;else this._dy=-this._0._d()}}else if(this._0._n)this._dy=this._4[this._c].y-_y};for(var i=0;ithis._0._d()};$._U=function(){return this._c>0&&_7==this._3};$._12=function(){return _7!=this._3||this._0._2.format.rollback};$._Y=function(_c){if(_7==this._3){if(this._0._2.format.rollback){_j=this._3;_7=-1}else return}else{_j=_7;_7=this._3};this._c=_c;this._0._l(true)};function _14(){this.ver=navigator.appVersion;this.agent=navigator.userAgent;this.dom=document.getElementById?1:0;this.opera5=this.agent.indexOf("Opera 5")>-1;this.ie5=this.ver.indexOf("MSIE 5")>-1&&this.dom&&!this.opera5;this.ie6=this.ver.indexOf("MSIE 6")>-1&&this.dom&&!this.opera5;this.ie4=(document.all&&!this.dom&&!this.opera5)?1:0;this.ie=this.ie4||this.ie5||this.ie6;this.opera7=((this.agent.toLowerCase().indexOf('opera 7')>-1)||(this.agent.toLowerCase().indexOf('opera/7')>-1));this.opera=window.opera;this.operaOld=this.opera&&!this.opera7;this.realDom=this.dom&&!this.operaOld;this.ns4=document.layers&&!this.dom&&!this.operaOld};function _m(_A){if(!_m._3)_m._3=0;this.id='do_'+(_m._3++);this._A=_A};$=_m.prototype;$._b=function(){this.el=bw.dom?document.getElementById(this.id):bw.ie4?document.all[this.id]:bw.ns4?document.layers[this.id]:0;this.css=bw.dom||bw.ie4?this.el.style:this.el;this.doc=bw.dom||bw.ie4?document:this.css.document;this.x=parseInt(this.css.left)||this.css.pixelLeft||this.el.offsetLeft||0;this.y=parseInt(this.css.top)||this.css.pixelTop||this.el.offsetTop||0;this.w=this.__();this.h=this._G()};$._a=function(){this.el=null;this.css=null;this.doc=null};$.__=function(){return this.el.offsetWidth||this.css.clip.width||this.doc.width||this.css.pixelWidth||0};$._G=function(){return this.el.offsetHeight||this.css.clip.height||this.doc.height||this.css.pixelHeight||0};$._i=function(_x,_y){this.x=_x;this.y=_y;if(this.el){var px=bw.ns4||bw.operaOld?0:'px';this.css.left=_x+px;this.css.top=_y+px}};$._19=function(_h){this.h=_h;if(this.el){if(bw.ns4)this.el.resize(this.w,_h);else{var px=bw.operaOld?0:'px';this.css.height=_h+px}}};$._f=function(){if(bw.realDom&&!this.el&&!this._A){this.el=document.createElement('DIV');this.el.innerHTML=this._w;this.el.style.position='absolute';this.el.style.width=this._v||(this.w+'px');this.el.style.left=this.x+'px';this.el.style.top=this.y+'px';this.el.style.zIndex=this._z;document.body.appendChild(this.el,'beforeEnd');this.css=this.el.style;this.w=this.__();this.h=this._G()};this.css.visibility=bw.ns4?'show':"visible"};$._e=function(){this.css.visibility=bw.ns4?'hide':"hidden";if(bw.realDom&&this.el&&!this._A){this.el.parentNode.removeChild(this.el);this.el.innerHTML='';this.css=null;this.el=null}};$._M=function(w,h,z,_Q){this._w=_Q;this._z=z;this._v=w;window.$bar._16('')}