jQuery.noConflict();
jQuery(document).ready(function() {

jQuery('#f-slider').jcarousel({scroll:1, visible: 4,wrap: 'circular'});
jQuery('#post_slider').jcarousel({scroll:1, visible: 2,wrap: 'circular'});
jQuery('#press_list .sl-container .upcoming-events-container').jcarousel({scroll: 1, visible: 2,wrap: 'circular', auto: 3, 'vertical': 1, 'buttonNextHTML': null, 'buttonPrevHTML': null});
/*
	//Full Caption Sliding (Hidden to Visible)
	$('.boxgrid.captionfull').hover(function(){
		$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:250});
	}, function() {
		$(".cover", this).stop().animate({top:'-104px'},{queue:false,duration:250});
	});
	
	*/
	jQuery('ul.sf-menu').supersubs({
		minWidth:    3,   // minimum width of sub-menus in em units
		maxWidth:    25,   // maximum width of sub-menus in em units
		extraWidth:  1     // extra width can ensure lines don't sometimes turn over
	  // due to slight rounding differences and font-family
	  }).superfish({
           // delay:       1000,                            // one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
            speed:       'fast',                          // faster animation speed 
            autoArrows:  false                           // disable generation of arrow mark-up 
           // dropShadows: false                            // disable drop shadows 
        });
		
		jQuery('ul#menu-about').superfish({ 
           // delay:       1000,                            // one second delay on mouseout 
            animation:   {opacity:'show'},  // fade-in and slide-down animation 
            speed:       'fast',                          // faster animation speed 
            autoArrows:  false,                           // disable generation of arrow mark-up 
            dropShadows: false                            // disable drop shadows 
        });
		
		//When page loads...
	jQuery(".tab_content").hide(); //Hide all content
	jQuery("ul.tabs li:first").addClass("active").show(); //Activate first tab
	jQuery(".tab_content:first").show(); //Show first tab content

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

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

		var activeTab = jQuery(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		jQuery(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});
	
	/*jQuery('.jcarousel-skin-ie7').jcarousel({
		vertical: false,
    	//wrap: 'circular',
		visible: 4,
		animation: 'fast',
		scroll: 1
    }); */
	
});

