//Javscript document


function toggler(theid, thelink){


	if($(theid).is(":visible")){
		
		$(theid).hide();
		$(thelink).removeClass();
		$(thelink).addClass('moreinfo');
		$(thelink).html("MORE INFORMATION");
		
	}else{
		
		$(theid).show();
		$(thelink).removeClass();
		$(thelink).addClass('lessinfo');
		$(thelink).html("LESS INFORMATION");
		
	}
	
}

function simpletab(thelink, thepanel){
	
	$(thelink).click(function(){
		
			$("#panel-container > div").hide();
			$(thepanel).show();
			$("#tablinks li a").removeClass();
			$(thelink).addClass("active");
	});

}

/**
 * We use the initCallback callback
 * to assign functionality to the controls
 */
//function mycarousel_initCallback(carousel) {
//    jQuery('#carousel-control a').bind('click', function() {
//        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).attr("title")));
//        return false;
//    });
//
//};
//
//// Ride the carousel...
//jQuery(document).ready(function() {
//    jQuery("#carousel").jcarousel({
//        scroll: 1,
//        initCallback: mycarousel_initCallback,
//        // This tells jCarousel NOT to autobuild prev/next buttons
//        buttonNextHTML: null,
//        buttonPrevHTML: null
//    });
//
//	$("#tab1").click(function(){
//		
//		$("#carousel-control a").removeClass();
//		$(this).addClass("active");
//		
//	});
//	
//	$("#tab2").click(function(){
//		
//		$("#carousel-control a").removeClass();
//		$(this).addClass("active");
//		
//	});
//	
//	$("#tab3").click(function(){
//		
//		$("#carousel-control a").removeClass();
//		$(this).addClass("active");
//		
//	});
//	
//	$("#panel-container > div").hide();
//	
//	$("#foot-panel2").show();
//	$("#tablink2").addClass("active");
//
//	simpletab("#tablink1", "#foot-panel1");
//	simpletab("#tablink2", "#foot-panel2");
//	simpletab("#tablink3", "#foot-panel3");
//	simpletab("#tablink4", "#foot-panel4");
//
//
//	//PHOTO CONTEST STUFF
//	
//	$("#contest-email").hide();
//
//	$("#contest-agree").click(function(){
//		
//		if($("#contest-email").is(":hidden")){
//			
//			$("#contest-email").show();
//		
//		}else{
//			$("#contest-email").hide();
//		
//		}
//					
//	});
//	
//
//});

 



