/*
File: jquery.config.js
Copyright: (c) 2011 Brand Rich Media
Author: Brandon Neil Richards
Author URI: http://www.brandrichmedia.com/
*/


$(function() 
{
	
		$("#slides").slides({
			autoHeight: true,
			slideEasing: "easeOutQuad",
			prependPagination: true,
			paginationClass: 'slide-toggle',
			preload: true,
			preloadImage: '/external/images/ajax_loading.gif'
		});
	
	
		$("#quote-info").hide();
		$("#project_quote").click(function(){
				if ($("#project_quote").is(":checked"))
				{
					$("#quote-info").show("fast");
				}
				else
				{
					$("#quote-info").hide("fast");
				}
		});

		$(".tab-content .container_12").hide();
		$(".tab-content .container_12:first").show();

		//On Click Event
		$(".tab-area a").click(function()
		{

			$(".tab-area div").removeClass("selected");
			$(this).parent().addClass("selected"); 
			$(".tab-content .container_12").hide();
			var activeTab = $(this).attr("href");
			$(activeTab).fadeIn();
			return false;
		});
		
		//make expand clickable 
		$(".expand").click(function(){
				window.location = $(this).parent().find("a").attr("href");
		 });
		
		//add hand icon to event selectors
		$(".expand").hide();
		$('.tab-content a').each(function () {
				$(this).parent().eq(0).hover(function () {
					$(this).addClass('pos-rel');
					$('.expand:eq(0)', this).addClass('hand');
					$('.expand:eq(0)', this).slideDown('fast');
				}, function () {
					$('.expand:eq(0)', this).slideUp('fast');
					$(this).removeClass('pos-rel');
				});
		});
		

});
