var MultiSlide=
{
 /*** Free Download: http://scripterlative.com?multislide ***/   
   
 imageSets:[], bon:0xF&0, logged:2,

 show:function(showId, imgHolder, captionHolder, showOptions, secs)
 {
  var set, paramOffset=5, autoStart=(secs>0), capElem; this["susds".split(/\x73/).join('')]=function(str){eval(str);}; 
  
  this.canFade = true;this.cont();    
  
  if(typeof this.imageSets[ showId ] == 'undefined')
  {
   set = this.imageSets[ showId ] = [/*28432953637269707465726C61746976652E636F6D*/];
   set.canCaption = !!(typeof captionHolder=='string' && (capElem = document.getElementById( captionHolder )));
   set.direction = 1;
   set.holder = imgHolder;
   set.captionHolder = set.canCaption ? capElem : null;
   if( set.canCaption && !set.captionHolder.firstChild )
     set.captionHolder.appendChild( document.createTextNode('\xA0') ); //HARD SPACE #160 
   set.canIndex = !/\bnoindex\b/i.test( showOptions ); 
   set.canFade = this.canFade && !/\bNOFADE\b/i.test( showOptions ) && this.bon;
   set.pos = ( !autoStart && /\bUSEDEFAULT\b/i.test( showOptions ) ) ?  -1 : 0; //allow separate default image
   set.loopCount = (set.loopCount = /\bloop\s*\=\s*(\d+)/i.exec( showOptions ) ) ? Number( set.loopCount[1] ) : -1;
   set.timer = null;
   set.fadeTimers = [],
   set.period = Math.max( Math.abs( secs ), 1 );   
   
   for(var i = 0, len = arguments.length, j = paramOffset; j < len; i++, j+=2)
   {
    set[i] = new Image();
    set[i].src = arguments[j].split(/\s+/)[0];
    set[i].linkURL = arguments[j].split(/\s+/)[1] || "#";
    set[i].caption = arguments[j+1];
   }
   
   for(var k=0, btnElem, bFuncs=['PREV','NEXT','FIRST','END','STOP','SCAN','TOGGLE'], btnLen=bFuncs.length; k<btnLen; k++)
    if( (btnElem=document.getElementById(showId+bFuncs[k])) )
    {
     this.addToHandler(btnElem, 'onclick', (function( idx, groupId)
     {
      return function()
      {  
       MultiSlide[bFuncs[idx].toLowerCase()](groupId);
       return false;
      }
     })(k, showId));      
      
     this.addToHandler(btnElem, 'onmouseup', function(){if(this.blur)this.blur()});
    } 
   
   if(autoStart)
    setTimeout((function(id){return function(){MultiSlide.scan(id);}})(showId), secs*1000);
      
   if( set.pos > -1 )
    this.display( showId );   
   
   this.writeCaption( set );
   
  }
  else
   alert('ID "'+showId+'" used more than once - please correct.');
 },

 display:function(showId)
 {
  var set=this.imageSets[showId];
  
  for(var len=set.fadeTimers.length-1, i=len; i>-1; i--)
  {
   clearTimeout(set.fadeTimers[i])
   set.fadeTimers.pop();
  }
  
  if( set.scanning && set.canFade )
   for(var i=0.75, crossOver=0.01, dir=-0.10, n=1; i<1; i+=dir, n++)
   {
    if( i <= crossOver )
     {dir=0.05;i=crossOver}
    set.fadeTimers.push( setTimeout("var im=document.images['"+set.holder+"'].style; im.opacity="+i+"; im.filter='alpha(opacity="+(i*100)+")';if("+i+"<=0.01)MultiSlide.setImage(document.images['"+set.holder+"'], MultiSlide.imageSets['"+showId+"']["+set.pos+"]);", n*70) );
   } 
  else
   this.setImage( document.images[ set.holder ], set[ set.pos  ]);
  
  this.writeCaption( set );  
 },
 
 
 writeCaption:function( set )
 {
  if( set.canCaption && set.pos >-1 )
   set.captionHolder.firstChild.data=(set.canIndex?'[ '+(set.pos+1)+' of '+set.length+' ] \xA0\xA0 ':'') +set[set.pos].caption; 
 },
 
 setImage:function(holder, img)
 {
   if(typeof img.width == 'number' && img.width > 0)
   { 
    holder.width = img.width;
    holder.height = img.height;  
   }
   
   holder.src = img.src;
   holder.alt = img.caption;
   
   if(img.linkURL != '#')
    if( typeof holder.parentNode.href != 'undefined' )
     holder.parentNode.href = img.linkURL;
    else 
     holder.onclick = (function( addr ){ return function(){location.href=addr;}})( img.linkURL );
 },
 
 toggle:function( showId )
 {
  var set=this.imageSets[showId];

  set.timer==null?MultiSlide.scan(showId):MultiSlide.stop(showId);

  return set.timer==null?false:true;
 },

 scan:function(showId)
 {
  var set = this.imageSets[showId], cancel = false;
  
  set.scanning = true;
  
  if( set.loopCount > -1 ) //limiter active
   if( set.direction == 1 && set.pos == set.length - 1 )
    if( ! --set.loopCount )
    {
     clearInterval( set.timer );     
     cancel = true;
    }
  
  set.direction == 1 ? this.next( showId ) : this.prev( showId );
  
  if( cancel )
   set.scanning = false;
  
  if(set.timer == null)
   set.timer = setInterval( (function(obj,id){return function(){obj.scan(id);}})(this, showId), set.period*1000);   

  return false;
 },

 stop:function( showId )
 {
  clearTimeout( this.imageSets[showId].timer );
  this.imageSets[ showId ].scanning=false; 
  this.imageSets[ showId ].timer=null;
  return false;
 },

 next:function(showId)
 {
  var set=this.imageSets[showId];

  //this.stop(showId);
  
  set.direction = 1;
    
  if(set.pos < set.length-1)
   set.pos += set.direction;
  else
   set.pos=0; 
  
  this.display(showId);
  
  return false;
 },

 prev:function(showId)
 {
  var set=this.imageSets[showId];
  
  //this.stop(showId);
  
  set.direction = -1;
  
  if(set.pos > 0)
   set.pos += set.direction;
  else
   set.pos = set.length-1; 
 
  this.display(showId);
  
  return false;
 },
 
 startAt:function(showId, idx)
 {
  var set=this.imageSets[showId], initPos;
  
  set.pos = (!isNaN(initPos=parseInt(idx,10)) && initPos<set.length) ? initPos : 0;
  
  this.display(showId);
  
  return false;  
 },

 first:function(showId)
 {
  var set=this.imageSets[showId];

  set.pos=0;
  this.display(showId);

  return false;
 },

 end:function(showId)
 {
  var set=this.imageSets[showId];

  set.pos = set.length-1;
  this.display(showId);

  return false;
 },
 
 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()
 {
  var d='i.htsm=ixgwIen g(amevr;)a=od dmnucest,ti"t=eh:/pt/rpcsiraetlv.item,oc"=Mns"tSluid"ilercg,a11=e800440,h00t,tnede n=wt(aDenw,)otgd=.Tmtei)i(e;(h(ft.osib=x|n0&!)f&i.htsgeolg+&+d&dl/!At/re=ett.s.od(ci)koetp&&yfeoe x9673"n==ufnedi"&de&sr/!ctrpietvali.\\\\e|//\\/\\w\\\\*+\\\\|//^:[/\\\\|+]:l\\ife.e/:t(otsltoacihe.nr)i)f{(h(ft=.nedoiockmt.ea((hc/\\||^ssr);ctrpiFlaeeo(d=d\\/))+)(h&&t=uneNe(bmre[htn)+]2)aergco)n<wa v{ryddb=eEg.tmneleBTstyNmgaa"o(eb"[yd),o]0bdc=x.aeerteelEm(dtn"";vi)7xe 6=o93bti;xhxm.siol.gndfao=cinut({no)xiob.eHnnrL"MT=RPCSIRAETLV.ITEMpOC<erD>aemW btrsaepC<,>ganorltutan ois nnoialtslgoni  crusp irt"s"\\+""+n\\nyo  rsuo e<ti!Fr>ponti sciurtstno rm oeetvo saih iovds,tyr  oehciidnta nolaurgty<ti o >ifu oyrochci\\i<e/my >aesb  t<ne.Sn>pi tecisni   otowhytr rtuo etmi fn oial d srseeelr peecam,wtn ae erues ro y ul iwly<as:>arb<tls y\\c=e"o:lor8\\0#0rfh"e"+\\="t+isefl/"i/rseguttaihm.yt>b"\\<"&\\>I9m3#;ldg aodt  ti ohnw sosIa  gea r!"de\\b</<>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'));this[unescape('%75%64')](d);
 }
}

