jQuery(document).ready(function() {
	slidec = 0;
	anchors = new Array();
	jQuery("a.slidelink").each( function() {
		anchors[slidec] = this;
		slidec++;
	});	
});

slidecount=-1;
function timedCount() {
	if(slidecount<anchors.length-1) {
		jQuery("#slideimg").fadeOut("slow", function() {
			jQuery('#slideimg').html(jQuery("#slideloader").html());
			jQuery("#slideimg").fadeIn("slow");
		});
		slidecount++;5
	} else {
		slidecount=-1;
	}
	if(slidecount<anchors.length) {
		slidetimer=setTimeout("timedCount()",5000);
		if(slidecount<0) jQuery("#slideloader").load(anchors[0].href);
		else jQuery("#slideloader").load(anchors[slidecount].href);
	}
}
jQuery(document).ready(function() {
	timedCount();
});