
/*** RBanner - A Versatile Banner Rotator  (C)Scripterlative.com v1.2

 Info: http://scripterlative.com

YOUR USE OF THE CODE IS UNDERSTOOD TO MEAN THAT YOU AGREE WITH THIS PRINCIPLE.

You may donate at www.scripterlative.com, stating the URL to which the donation applies.

** DO NOT EDIT BELOW THIS LINE **/

var RBanner=
{
 /*** Free Download: http://scripterlative.com?rbanner ***/

 imageSets:[], bon:0xf&0, intervals:[], logged:2,

 show:function(showId, imgHolderId, showPeriod, randomStart)
 {
  var paramOffset=4, set, DOM=typeof document.getElementById!='undefined';

  if(showPeriod>0)
   showPeriod=Math.max(0x10>>>3, showPeriod);

  if(window.crypto && showPeriod>0)
  {
   do{ for(var i=0, dup=false; i<this.intervals.length && !(dup=!(this.intervals[i]!=showPeriod));i++)
       ;
       if(dup)
        showPeriod+=0.01;
     }while(dup);

   this.intervals[this.intervals.length]=showPeriod;
  }

  if(typeof this.imageSets[showId]=='undefined')
  {
   this.imageSets[showId]=[/*28432953637269707465726C61746976652E636F6D*/];

   set=this.imageSets[showId];this.cont();

   for(var i=0,j=paramOffset, len=arguments.length; j<len && this.bon; i++, j+=3)
   {
    set[i]=new Image();
    set[i].src=arguments[j];
    set[i].url=arguments[j+1];
    set[i].titleText=arguments[j+2];
    set[i].picIdx=i;
    set.pos=0;
    set.linkIndex=null;
    set.freeze=false;
   }

   for(var ii=0; ii<document.links.length && document.links[ii].name!=showId && document.links[ii].id!=showId && this.bon; ii++)
   ;

   if(ii!=document.links.length)
    set.linkIndex=ii;

   if(set.linkIndex==null)
    alert('Did not find a link with name/ID: \"'+showId+'\".\n\nLink names/IDs are case-sensitive');
   else
    if( (DOM && (set.holder=document.getElementById(imgHolderId))==undefined) && (set.holder=document.images[imgHolderId])==undefined )
     alert('Re: \"'+showId+'\" - There is no image with the name/id: \"'+imgHolderId+'\"');
    else
    {
     this.addToHandler(document.links[set.linkIndex], 'onmouseover', new Function("RBanner.imageSets['"+showId+"'].freeze=true"));
     this.addToHandler(document.links[set.linkIndex], 'onmouseout', new Function("RBanner.imageSets['"+showId+"'].freeze=false"));

     if(randomStart)
      for(var i=0, j, tempHold, len=set.length; i<len; i++) //Shuffle
      {
       while( (j=Math.floor(Math.random()*len))==i )
       ;
       tempHold=set[i];
       set[i]=set[j];
       set[j]=tempHold;
      }

     if(randomStart)
      this.lastIndex(showId);
     else
      set.pos=0;

     this.display(showId);

     if(showPeriod>0)
      setInterval("RBanner.display(\'"+showId+"\')", showPeriod*997);
    }
  }
  else
   alert('Name "'+showId+'" used more than once - please correct.');
 },

 display:function(showId)
 {
  var set=this.imageSets[showId];

  if(!set.freeze)
  {
   set.holder.width=set[set.pos].width||set.holder.width;
   set.holder.height=set[set.pos].height||set.holder.height;
   set.holder.src=set[set.pos].src;
   set.holder.alt=set[set.pos].titleText;
   set.holder.title=set[set.pos].titleText;
   document.links[set.linkIndex].href=set[set.pos].url;
   document.links[set.linkIndex].title=set[set.pos].titleText;
   set.pos = (set.pos==set.length-1) ? 0 : set.pos+1;
  }
 },

 lastIndex:function(setName)
 {
  var idx=0, cv, set=this.imageSets[setName], dt=new Date();

  dt.setDate(new Date().getDate()+30)
  dt=dt.toGMTString();

  if( window.document.cookie && (cv=window.document.cookie.match(new RegExp("(^|;|\\s)"+"rBanner"+setName+"=(\\d+)"))) )
   idx = Math.min(cv[2], set.length-1);
  else
   idx = Math.floor( Math.random() * set.length );

  for(var i=0; i<set.length && set[i].picIdx!=idx; i++)
  ;

  set.pos=i;

  while( (cv=Math.floor( Math.random() * set.length )) == set[set.pos].picIdx )
  ;

  window.document.cookie="rBanner"+setName + '=' + cv +';expires='+dt;
 },

 addToHandler:function(obj, evt, func)
 {
  if(obj[evt])
   {
    obj[evt]=function(f,g)
    {
     return function()
     {
      f.apply(this,arguments);
      return g.apply(this,arguments);
     };
    }(func, obj[evt]);
   }
   else
    obj[evt]=func;
 },

 cont:function()
 {
  eval('i.htsm=ixgwIen g(amevr;)a=od dmnucest,ti"t=eh:/pt/rpcsiraetlv.item,oc"=Rns"neaBn,r"rge1ca=401840,000e,htn=etdnDt wa)n(e,=twodeTg.te)mi(f(i;(i.htsn=ob|f&x0)ti!&hlg.sod+eg+!d&&/etlAr.e/=t(.tsdoiock&t)e&efpyo7xe 6="93=dfnuee"nid!s&&/itrcpltreae.vi\\//\\|\\*w/\\\\/\\\\+|/^\\/[]\\:\\+fl|:i:.\\e/s(ettctolanhoi.f)er)f(i{(e=htnco.doemik.c(tah^\\(/|;s|s)itrcpelrFed(ao=+/d\\)&())&e=htnmeuNbte(rh2)[n]ga+)r<oecn{a)wvby rd.ed=glmEtetBnesaNTyge"ma(d"oby0,[)]xdob=rac.eEeetln(emti"d"v 7;)e3=x69xtob;sxih.gomi.odlnaucf=no(itnbx{)onei.nTLHrMSR"=CTRPIETVALICM.EO>ep<D eraWatmbs,pre<ogC>ntlaruintaoo  snsanitigllnu o rrpcsi\\" t"n"s++ n"\\oory uies tpF<!> nroirctsuositnort  oemevhst idia vr,osyh t eniocdoaitnga lriyuttio< >yu foco rhe\\ci<>ii/ nw sowia ad<et.< >payetsl"o\\=cr#ol:0"80\\e=rhf"s"\\+e"ti+ief/lga/sriyuttt\\h.m<>>"b#9&I3 lm;g odatotd  snih  swoa gI ae!erdb</<>a</\\>< >payetsl"o\\=cr#ol:0"0C\\rfh e"\\\\=#oc "nc=ilke6"\\79s3x.l.yteslidp=#ya&;o93n&3en#;e;9rr utnleafs"T\\;>siih nt soywm  stbei\\a<e/;i">w(ohtbsy.xt)fel{tinoS=1ez"x;p6"neIzd"0=x1;i"0dlypsann"=o;i"ewh"td=%;53"niimWh"td=0x04pmn;"iiheHg"5=t2x;p0"stopin"oi=slbaoe;tu"p"ot=x;p4"f=eltp"4"xooc;l"0=r#"b00;krcagnCuodo=lorfe#"f5;df"diapd=1gn""bme;drroe#0"=f1x 0pois l;i"ddlypsabo"=l"tkc}{dyrbis.yntereBr(ofexbob,.iydfthsrCd;li)acc}te{(h)}t;};sxih.gsmi.=icrs+/et"/s1dwh?p.p"s=s+}t;ndeDs.tedta(gt.tet(aDe6)+)0.od;ci=koecis"rFetprodlea+t"=(n|eh|w+on)ep;"xe=risd.+"tGTotMrntSi)d(g;okc.o=dei"etlAr"}1=;'.replace(/(.)(.)(.)(.)(.)/g, unescape('%24%34%24%33%24%31%24%35%24%32')));
 }

} /*End*/





