// JavaScript Document
 $(document).ready(function(){
	$("#mapDir").hide();
    $("#tabCont").load("/tabs/home/growthMinistries.html");
	$("#gmin").addClass("gminOn");
	
	$("#CloseWin").click(function () {$("#mapDir").fadeOut("slow");});
								   
	$("#mapBtn").click(function () { 
	if($("#mapDir").is(":hidden")) {
		$("#mapDir").fadeIn("slow");
		$("#theMap").load("../include/map.html");
	}else{$("#mapDir").fadeOut("slow");}
	});
	$("#gmin").click(function () { 
		$("#events").removeClass("eventsOn");
		$("#comm").removeClass("commOn");
		$("#gmin").addClass("gminOn");
		$("#tabCont").load("/tabs/home/growthMinistries.html");
		
	});
	$("#events").click(function () { 
		$("#gmin").removeClass("gminOn");
		$("#comm").removeClass("commOn");
		$("#events").addClass("eventsOn");
		$("#tabCont").load("/tabs/home/events.html");
	});
	$("#comm").click(function () { 
		$("#gmin").removeClass("gminOn");
		$("#events").removeClass("eventsOn");
		$("#comm").addClass("commOn");
		$("#tabCont").load("http://www.calvarybiblecares.org/index.php?/tabs/asiseeit/");
	});
	$('li.headlink').hover(
			function() { $('ul', this).css('display', 'block'); },
			function() { $('ul', this).css('display', 'none'); 
	});
        $('.slideshow').cycle({
		fx:     'scrollRight',
		 speed:    300, 
    	 timeout:  5000  
	});

  });

