/* Global Items */
$(document).ready(function() {
	



	// Home Carousel



	if($("body").attr("id") == "home") {
//		alert("i am the home page");
		$("#homeCarouselCycle").cycle({ 
		    fx:      'scrollVert', 
		    speed:    750, 
		    timeout:  2500 
		});
	}



	




	// Pick Between Feature Views
	$("#pieceViews a").click(function(){
		$("#pieceViews a").removeClass("current");
		$(this).addClass("current");
		$("#featurePics img").fadeOut(100);
		if ($(this).attr("id") == "showPic1") {
			$("#featurePic1").fadeIn(300);
		}
		if ($(this).attr("id") == "showPic2") {
			$("#featurePic2").fadeIn(300);
		}
		return false;
	});


	/*
	MARKUP REFERENCE:
	<div id="featurePics">
		<img id="featurePic1" src="/media/somebody_in_mpls_1.jpg" alt="" />
		<img id="featurePic2" src="/media/somebody_in_mpls_2.jpg" alt="" />
	</div> <!--/ #featurePics -->
	*/



	    // initialize scrollable  
	    $("div.scrollable").scrollable({
			size: 4,
			items: ".toggler"
		});
		$(".prevPage").click(function(){
			return false;
		});
		$(".nextPage").click(function(){
			return false;
		});






});
