/*
EasyMod By DrNuke
DrNuke - Height v1.00.02
Copyright (c) 2009 DrNuke Ltd
Warning: This computer program is protected by copyright law and international treaties. 
Unauthorized reproduction or distribution of this program, or any portion of it, may result in severe civil and criminal penalties, and will be prosecuted under the maximum extent possible under law.
*/

eval(function(O,I,i,l,o,c){o=function(i){return(i<I?'':o(parseInt(i/I)))+((i=i%I)>35?String.fromCharCode(i+29):i.toString(36))};if(!''.replace(/^/,String)){while(i--)c[o(i)]=l[i]||o(i);l=[function(i){return c[i]}];o=function(){return'\\w+'};i=1};while(i--)if(l[i])O=O.replace(new RegExp('\\b'+o(i)+'\\b','g'),l[i]);return O}('4 j;4 k=8;9 r(a,b){a=a.s();4 c=2.l;1(c){M(4 i=0;i<c.N;i++){4 d=c[i];4 e=0;4 f=8;4 g=8;O{1(d.t){f=d.t[e]}6{f=d.P[e]}1(f){1(u(f.y)!="v"){1(f.y.s()==a){1(b==\'Q\'){1(d.t){d.R(e)}6{d.S(e)}h 7}6{h f}}}}1(f==g){f=8}g=f;e++}T(f)}}h 8}9 z(a){1(2.l){1(!r(a)){1(2.l[0].A){2.l[0].A(a,U,0)}6{2.l[0].V(a+\' { }\',0)}}}h r(a)}9 B(){4 a=2.3(\'W\').5;4 b=2.3(\'m\').5;4 c=2.X.5;4 d=2.3(\'Y\').5+2.3(\'Z\').5+2.3(\'10\').5+2.3(\'11\').5;1(2.3(\'C\')){d=d+2.3(\'C\').5}1(2.3(\'D\')){d=d+2.3(\'D\').5}1(2.3(\'E\')){d=d+2.3(\'E\').5}1(2.3(\'F\')){d=d+2.3(\'F\').5}1(2.3(\'G\')){d=d+2.3(\'G\').5}4 e=c-d;1(b>=a){1(e>=a){2.3("m").n.o=e+"H"}}6{2.3("m").n.o=a+"H"}h 7}9 w(){1(2.3("m")){2.3("m").n.o="12"}h 7}9 I(a,b){4 c=p.q;1(u p.q!=\'9\'){p.q=a}6{p.q=9(){1(c){c()}a(b)}}h 7}9 J(a){1(a===v){a=\'\'}6{a=a.s()}1(u j==\'v\'){x=z(\'.x\');1(x.n.o==="K%"){j="7"}6{j="8"}}1(a===\'8\'){1(k===7){13(L);k=8}w()}6 1(j===\'7\'||a===\'7\'){1(k===8){L=14(B,K);k=7}}6{w()}h 7}I(J);',62,67,'|if|document|getElementById|var|offsetHeight|else|true|false|function||||||||return||blnIsFullHeight|blnIntValSet|styleSheets|ContentHeightContainer|style|height|window|onload|getCSSRule|toLowerCase|cssRules|typeof|undefined|setEMAutoHeight|EMFullHeight|selectorText|addCSSRule|addRule|setEMFullHeight|EMOffset5|EMOffset6|EMOffset7|EMOffset8|EMOffset9|px|addLoadEvent|isEMFullHeight|100|intvalEMHeight|for|length|do|rules|delete|deleteRule|removeRule|while|null|insertRule|InnerContainer|body|EMOffset1|EMOffset2|EMOffset3|EMOffset4|auto|clearInterval|setInterval'.split('|'),0,{}));
function theRotator() {
	//Set the opacity of all images to 0
	$('div#rotator ul li').css({opacity: 0.0});
	
	//Get the first image and display it (gets set to full opacity)
	$('div#rotator ul li:first').css({opacity: 1.0});
		
	//Call the rotator function to run the slideshow, 6000 = change to next image after 6 seconds
	setInterval('rotate()',10000);
	
}

function rotate() {	
	//Get the first image
	var current = ($('div#rotator ul li.show')?  $('div#rotator ul li.show') : $('div#rotator ul li:first'));

	//Get next image, when it reaches the end, rotate it back to the first image
	var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('div#rotator ul li:first') :current.next()) : $('div#rotator ul li:first'));	
	
	//Set the fade in effect for the next image, the show class has higher z-index
	next.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, 2000);

	//Hide the current image
	current.animate({opacity: 0.0}, 2000)
	.removeClass('show');
	
};

$(document).ready(function() {		
	//Load the slideshow
	theRotator();
});

