
<!-- Banner -->		
jQuery(document).ready(function() {
			
			//Feature Tabs
			jQuery("#feature ul").tabs("#feature .panes > div", {
				rotate: true,
				onClick: function() {
					this.getConf().effect = 'fade';
					this.getConf().fadeInSpeed = 1000;
					this.getConf().fadeOutSpeed = 1000;
				}
			});
			
			// Feature fade buttons
			jQuery("#feature .panes div a").css({opacity: .6});
			jQuery("#feature .panes div").hover(function(){
				jQuery(this).children("a").fadeTo(300, 1);
			}, function(){ 
				jQuery(this).children("a").fadeTo(300, .6);
			});
			
			//Pricing Tooltip
			jQuery("a#pricing_options").tooltip({
				effect: 'slide',
				offset: [20, 0]
			});
						
		});
	
<!-- Free Quote -->


//jQuery.noConflict();

function checkName(field, rules, i, options)
	{
		if (field.val() == "Full Name")
		{
			return "* This field is required";
		}
	}
	
	function checkEmail(field, rules, i, options)
	{
		if (field.val() == "Email")
		{
			return "* This field is required";
		}
	}
	
	function checkPhone(field, rules, i, options)
	{
		if (field.val() == "Phone")
		{
			return "* This field is required";
		}
	}
	

jQuery(document).ready(function () {
	
	jQuery("#txtName").keypress(function() {
	if(jQuery(this).val() != "")
	{
		jQuery(this).addClass("validate[required,custom[onlyLetter]]");
	}
	else
	{
		jQuery(this).removeClass("validate[required,custom[onlyLetter]]");
	}
	});
	
	jQuery("#txtPhone").keypress(function() {
	if(jQuery(this).val() != "")
	{
		jQuery(this).addClass("validate[custom[phone]]");
	}
	else
	{
		jQuery(this).removeClass("validate[custom[phone]]");
	}
	});
	
	jQuery("#txtEmail").keypress(function() {
	if(jQuery(this).val() != "")
	{
		jQuery(this).addClass("validate[required,custom[email]]");
	}
	else
	{
		jQuery(this).removeClass("validate[required,custom[email]]");
	}
	});
	jQuery("#frmQuote").validationEngine();
});


	jQuery(document).ready(function(){
	var qt = 0;
	jQuery(".free_quote_head").click(function(){
		jQuery(this).next(".free_quote").slideToggle();
		if(qt%2==0)
		{
			jQuery(".free_quote_head").addClass('free_quote_head_current');
		}
		else{
				jQuery(".free_quote_head").removeClass('free_quote_head_current');
		}
		qt++;
	});
	});
//jkmegamenu.definemenu("anchorid", "menuid", "mouseover|click")
jkmegamenu.definemenu("megaanchor", "megamenu1", "mouseover");
jkmegamenu.definemenu("megaanchor1", "megamenu2", "mouseover");
jkmegamenu.definemenu("megaanchor2", "megamenu3", "mouseover");

<!-- Font -->

Cufon.replace('#home_main footer .footer_content .footer_top .price', {
	fontFamily: "gothamlight",
	hover:true
});
Cufon.replace('.price p', {
	fontFamily: "gothamroundedmedium",
	hover:true
});

Cufon.replace('.price span',{
	fontFamily: "gothamroundedmedium",
	hover:true
});

Cufon.replace('.custom_content_top_right',{
	fontFamily: "gothamroundedmedium",
	hover:true
});
Cufon.replace('.custom_content_top_right span',{
	fontFamily: "Gotham bold",
	hover:true
});


jQuery(document).ready(function(){
	jQuery("area[rel^='prettyPhoto']").prettyPhoto();
	
	jQuery(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'normal',theme:'facebook',slideshow:3000, autoplay_slideshow: false});
	jQuery(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'fast',slideshow:10000, hideflash: true});

	jQuery("#custom_content a[rel^='prettyPhoto']:first").prettyPhoto({
		custom_markup: '<div id="map_canvas" style="width:260px; height:265px"></div>',
		changepicturecallback: function(){ initialize(); }
	});

	jQuery("#custom_content a[rel^='prettyPhoto']:last").prettyPhoto({
		custom_markup: '<div id="bsap_1259344" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div><div id="bsap_1237859" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6" style="height:260px"></div><div id="bsap_1251710" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div>',
		changepicturecallback: function(){ _bsap.exec(); }
	});
});
//google.load("jquery", "1.5.1");

var li_cur='';
getcur();
function getcur()
{
	jQuery(document).ready(function(){
		jQuery("nav ul li").each(function(){
			if(jQuery(this).hasClass("current"))
			{
				li_cur=jQuery(this).attr("id");
			}
		});
		//alert(li_cur);
		jQuery("#"+li_cur).addClass("current");		
	});
	setTimeout(getcur,100);
}
