 //Simple Tabs with jQuery - http://www.sohtanaka.com/web-design/simple-tabs-w-css-jquery
 //This has to load first in the javascript document to work
 $(document).ready(function() {

	//Default Action
	$(".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 rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});

});
 
///////////////////////////////////////////////////////////////////////////////////////////////////////////

 //Simple Tabs2 - HOME SCROLLER
 //This has to load first in the javascript document to work
 $(document).ready(function() {

	//Default Action
	$(".tab_contentScroller").hide(); //Hide all content
	$("ul.tabsScroller li:first").addClass("active").show(); //Activate first tab
	$(".tab_contentScroller:first").show(); //Show first tab content
	
	//On Click Event
	$("ul.tabsScroller li").click(function() {
		$("ul.tabsScroller li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_contentScroller").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});
	

});

///////////////////////////////////////////////////////////////////////////////////////////////////////////
 
 // smooth menu
	ddsmoothmenu.init({
		mainmenuid: "smoothmenu1", //menu DIV id
		orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
		classname: 'ddsmoothmenu', //class added to menu's outer DIV
		//customtheme: ["#1c5a80", "#18374a"],
		contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
	});
	// end smooth menu	
	
	
///////////////////////////////////////////////////////////////////////////////////////////////////////////

  // jQuery Carousel


//	$("div.additional").carousel({ 
//			direction: "horizontal",
//			pagination: false,
//			dispItems: 4,
//			loop: false,
//			autoSlide: false, 
//			autoSlideInterval: null,
//			delayAutoSlide: null,
//			effect: null,
//			animSpeed: null,
//	});

jQuery(document).ready(function () {
	if ($('#mycarousel').length !== 0){
    jQuery('#mycarousel').jcarousel({
        visible: 4
    });
	}
});
