
 $(document).ready(function() {


$("#slideshow > div:gt(0)").hide();

setInterval(function() {
  $('#slideshow > div:first')
    .fadeOut(1000)
    .next()
    .fadeIn(1000)
    .end()
    .appendTo('#slideshow');
},  3000);
    });
$(document).ready(function() {



	//When page loads...
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {

		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

var con=1;
setInterval(function() {


if(con==1){
$("#tab1").show();
$("#ttab1").css('background', 'url("images/btbg.jpg")');
$("#tab2").hide();
$("#ttab2").css('background', 'none');
$("#tab3").hide();
$("#ttab3").css('background', 'none');
$("#tab4").hide();
$("#ttab4").css('background', 'none');
con++;
}

else if(con==2){
$("#tab2").show();
$("#ttab2").css('background',  'url("images/btbg.jpg")');
$("#tab1").hide();
$("#ttab1").css('background', 'none');
$("#tab3").hide();
$("#ttab3").css('background', 'none');
$("#tab4").hide();
$("#ttab4").css('background', 'none');
con++;}

else if (con==3){
$("#tab3").show();
$("#ttab3").css('background', 'url("images/btbg.jpg")');
$("#tab1").hide();
$("#ttab1").css('background', 'none');
$("#tab2").hide();
$("#ttab2").css('background', 'none');
$("#tab4").hide();
$("#ttab4").css('background', 'none');
con++;}
else if (con==4){
$("#tab4").show();
$("#ttab4").css('background', 'url("images/btbg.jpg")');
$("#tab1").hide();
$("#ttab1").css('background', 'none');
$("#tab2").hide();
$("#ttab2").css('background', 'none');
$("#tab3").hide();
$("#ttab3").css('background', 'none');
con=1;}
else{
$("#tab1").show();
$("#ttab1").css('background', 'url("images/btbg.jpg")');
$("#tab2").hide();
$("#ttab2").css('background', 'none');
$("#tab3").hide();
$("#ttab3").css('background', 'none');
$("#tab4").hide();
$("#ttab4").css('background', 'none');
}

},  2000);
});


$(document).ready(function() {
  $('.jcalendar-selects').jcalendar();
});

