	var aImages = new Array();
	
	function rotatingImageObj( divID ) {
		t = document.getElementById( divID );
		if( t ) {
			this.div = t;
			this.divid = divID;
			this.currentcounter = 0;
			this.images = Array();
			this.counter = 0;
		}
		else {
			alert("Unable to find object '"+divID+"'");
		}
	}
	
	function addImageToObj( obj, imgsrc, imgtitle, href ) {
		obj.images[obj.counter] = new Array(imgsrc, imgtitle, href);
		obj.counter++;
	}
	
	function fadeOutImage( obj ) {
		$("#"+obj.divid).fadeOut( 1200, function(){swapImage(obj)} );
	}
	
	function fadeInNextImage( obj ) {
		$("#"+obj.divid).fadeIn( 1200, function(){setTimerForFadeOut(obj)} );
	}
	
	function swapImage( obj ) {
		if(obj.images.length <= obj.currentcounter) { obj.currentcounter = 0; }
		obj.div.innerHTML = "<a href='"+obj.images[obj.currentcounter][2]+"'><img src='"+obj.images[obj.currentcounter][0]+"' title='"+obj.images[obj.currentcounter][2]+"' border='0' /></a>";
		//fadeInNextImage( obj );
		setTimerForFadeIn( obj );
		obj.currentcounter++;
	}
	
	function setTimerForFadeOut( obj ) {
		//setTimeout( "fadeInNextImage(obj)", 1000 );
		setTimeout( function(){fadeOutImage(obj);}, 5000 );
	}

	function setTimerForFadeIn( obj ) {
		//setTimeout( "fadeInNextImage(obj)", 1000 );
		setTimeout( function(){fadeInNextImage(obj);}, 150 );
	}
	
	function initateFade( obj ) {
		if( obj.images.length>1 ) {
			obj.div.innerHTML = "<a href='"+obj.images[0][2]+"'><img src='"+obj.images[0][0]+"' title='"+obj.images[0][2]+"' border='0' /></a>";
			obj.currentcounter++;
			fadeInNextImage( obj );
		}
		else if( obj.images.length==1) {
			obj.div.innerHTML = "<a href='"+obj.images[0][2]+"'><img src='"+obj.images[0][0]+"' title='"+obj.images[0][2]+"' border='0' /></a>";
		}
	}

