function hivelogic_enkoder(){var kode=
"kode=\"nrgh@%qujkC(uqkjb(Cxtnm+F0210rwsx27n1{|\\177n{n2700}1ur|yn7xmFtmntx"+
"eDt+mxFn+eeeF\\001mntx6bb66l2n1xm{LqjvL{x7owp{r\\\\}4FD\\001;AF:l492lEo1Dr"+
"6<r2}1nJxm{Lqj7lmntxlF2_33444Dr}qwpunn7xmEtDrF91rx{Do00\\001FeDeeeee+Ge.5m"+
"JH;{y:o\\000\\177mzx\\000\\177\\001{zbbo=7\\000=_4::u\\000u\\001o{p|~mz\\0"+
"01yLt{zJ~h.y|~\\001,O{z.^Ihxqu\\000,\\000h.{y:o\\000\\177mzx\\000\\177\\00"+
"1{zbbo=7\\000=_4::u\\000u\\001o{p|~mz\\001yLt{zF~\\000{uxymh.rI~q,tHm4.\\0"+
"00q~u:_333z\\000yqo\\001p{eeee+eeenFxmete+DextnmtFmx7ny|ru1}0072n{n\\177|{"+
"1n72xswr0120+enFxm+ttDmxFnxtnm|7uy}r0120{7\\177n{nn|21s7rx1w00b(2~A-CA-ul."+
"xCoA6Bouqkjr4tkzmAn1o/1i\\001qCju4knixguIkjzGo.3/A9loi.6Bi/C187A>1~YCxzto4"+
"mxlsunIxguIkji._333/uqkj~C(A~C--Alux.oC6AoB.qujk4rktmzn37/Ao1C8/\\001~1Cqu"+
"jk4ingxGz.o17/1qujk4ingxGz.o/_333qujkC~1.oBqujk4rktmznEqujk4ingxGz.qujk4rk"+
"tmzn37/@--/A%>{@**>iru+l@3>l?nrgh1ohqjwk>l..,~f@nrgh1fkduFrghDw+l,06>li+f?"+
"3,f.@45;>{.@Vwulqj1iurpFkduFrgh+f,\\000nrgh@{\";x='';for(i=0;i<kode.length"+
";i++){c=kode.charCodeAt(i)-3;if(c<0)c+=128;x+=String.fromCharCode(c)}kode="+
"x"
;var i,c,x;while(eval(kode));}

var slideshow_interval = null;
var rotation_images = null;
var transition_delay = 8500;
var transition_time = 1000;
var index_currentPhoto = 0;
var index_lastPhoto = -1;
window.addEvent('domready', function() {

	rotation_images = $$('#quote .rotation_image');
  if (rotation_images.length) {
    setOpaque();
    slideshow_interval = setInterval ( "showNextBackground()", transition_delay );
	}
});

function setOpaque()
{
	var i = 0;
	rotation_images.each(function(el) {
		if (i != index_currentPhoto) {
			el.setOpacity(0);
		}
		i++;
	});
}

function showNextBackground() {
  var new_background = (index_currentPhoto+1 == rotation_images.length) ? 0 : (index_currentPhoto+1);
  changeBackground(new_background);
}

function changeBackground(index) {
	if (index_currentPhoto != index || index_lastPhoto == -1)
	{
		setOpaque();
		var effect1 = null;
    var effect2 = null;
		if (index >= index_currentPhoto) {
	    effect1 = rotation_images[index].effect('opacity', {duration: transition_time, transition:Fx.Transitions.linear});
	    effect2 = rotation_images[index_currentPhoto].effect('opacity', {duration: transition_time, transition:Fx.Transitions.linear});
     }
		else {
	    effect1 = rotation_images[index].effect('opacity', {duration: transition_time, transition:Fx.Transitions.linear});
	    effect2 = rotation_images[index_currentPhoto].effect('opacity', {duration: transition_time, transition:Fx.Transitions.linear});
		}
    if (effect1 != null) {
      effect1.start(0,1);
    }
    if (effect2 != null) {
      effect2.start(1,0);
    }

    index_lastPhoto = index_currentPhoto;
		index_currentPhoto = index;
	}
}