$(document).ready(
	function(){		
		var t = "";
		
		function hideAll(){				
			$("#homecontent1").hide();
			$("#homecontent2").hide();
			$("#homecontent3").hide();
			$("#homecontent4").hide();
			$("#homecontent5").hide();
			$("#homecontent6").hide();
			$("#homecontent7").hide();
			$("#homecontent8").hide();
			$("#homecontent9").hide();
			$("#homecontent10").hide();
			$("#homecontent11").hide();
			$("#homecontent12").hide();
			$("#homecontent13").hide();
			$("#homecontent14").hide();	
			$("#homecontent15").hide();
			$("#homecontent16").hide();
			$("#homecontent17").hide();
			
			return false;
		}
		
		startLoop = function(count){
			count++;
			var image_to_show = count%18; // 1 more than number of slides
			if(image_to_show>0){
				hideAll();
				function_name = "#homecontent"+image_to_show;
				eval($(function_name).fadeIn("slow"));				
			}
			t = setTimeout("startLoop("+count+")",6000);
		}
		
		startLoop(0);
	 
	
	// small specials rotator
	 	
		var t2 = "";
		
		function hideAll2(){				
			$("#homesp1").hide();
			$("#homesp2").hide();
			return false;
		}
		
		startLoop2 = function(count2){
			count2++;
			var image_to_show2 = count2%3; // 1 more than number of slides
			if(image_to_show2>0){
				hideAll2();
				function_name = "#homesp"+image_to_show2;
				eval($(function_name).fadeIn("slow"));				
			}
			t2 = setTimeout("startLoop2("+count2+")",3000);
		}
		
		startLoop2(0);
	}
	
);