// JavaScript Document
$(document).ready(function() {
						 
//======================================================================
 $(".BannerContainer .ContainerBody").hide();
   
   $(".Title").click(function () { 
      $(this).next('.ContainerBody').toggle("slow");	  
    });
   
   
 $('.slideshow').cycle({
		fx: 'fade',
		timeout: 6500,
		pause: true
	});




 $("#2").hide();
 $("#3").hide();
 $("#4").hide();
 $("#5").hide();
 $("#6").hide();
 
 var first = true;
 var second = false;
 var third = false;
 var forth = false;
 var fifth = false;
 var sixth = false;


$.timer(6500, function (timer) {
  	if (first) {
  		//alert('First time!');
  		first = false;
		second = true;
		 $("#1").hide("slow");
		 $("#2").show("slow");
  		timer.reset(6500);
  }
  	else if (second) {
  		//alert('First time!');
  		second = false;
		third = true;
		 $("#2").hide("slow");
		 $("#3").show("slow");
  		timer.reset(6500);
  	}
	else if (third) {
  		//alert('First time!');
  		third = false;
		forth = true;
		 $("#3").hide("slow");
		 $("#4").show("slow");
  		timer.reset(6500);
  	}
	else if (forth) {
  		//alert('First time!');
  		forth = false;
		fifth = true;
		  $("#4").hide("slow");
		 $("#5").show("slow");
  		timer.reset(6500);
  	}
	else if (fifth) {
  		//alert('First time!');
  		fifth = false;
		first = true;
		 $("#5").hide("slow");
		 $("#1").show("slow");
  		timer.reset(6500);
  	}
	//else if (sixth) {
  		//alert('First time!');
  	//	sixth = false;
	//	first = true;
	//	  $("#6").hide("slow");
	//	 $("#1").show("slow");
  //		timer.reset(6500);
  	//}
 });



	
	
		
//======================================================================
});
