// JavaScript Document


//Navigation Links
$(document).ready(function() {

	//When page loads...
	$(".tab_content").hide(); //Hide all content
	$(".nonav_link").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
		 $(".nonav_link").hide(); //Hide all content
		 
		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(1000); //Fade in the active ID content
		return false;
	});
	
	
	//On Click Event for internal links
	$(".internal_link").click(function() {

		$(".internal_link").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content
		$(".nonav_link").hide(); //Hide all content
		 
		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(1000); //Fade in the active ID content
		return false;
	});
	
	//On Click Event for internal links
	$(".add_images,#features").click(function() {

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

});



//Revolver
$(document).ready(function() {
	   $('blockquote').quovolver();
   });


//Checkform --- Making ajaxform work with validate
function checkForm(data,form){ // this method will tell the beforSubmit method if the form is valid
	 return $(form).valid();
	 }
	 
	 
//home page saying rotator
$(document).ready(function(){ $('#features').jshowoff({ speed:5000, controls: false, links: false, effect : 'none' }); }); 




$(document).ready(function(){
	$(".rounded").corner("15px");
});
