
(function ($) {
$(document).ready(function(){
	$(".btn-slide").click(function(){
		$("#panel").slideToggle	("slow");
		$(this).toggleClass("active"); return false;
	});
});

})(jQuery);
;
(function($){
	$(function(){
		$('#edit-search-block-form--2').val('Search this site...');
		
		$('#edit-search-block-form--2').bind('focus',function () {
			
			if($(this).val() == 'Search this site...'){
				$(this).val(''); 
			}else if($(this).val() == ""){
				$(this).val('Search this site...');
			}
			
		});
		
		$('#edit-search-block-form--2').bind('focusout', function () {
			if($(this).val() == ''){
				$(this).val('Search this site...');
			}
		});
		
		var textInputs;
		if($('.form-text', '#webform-client-form-40')){
			textInputs = $('.form-text', '#webform-client-form-40');
			for(var i=0; i<textInputs.length; i++)
			{
				//console.log(textInputs[i]);
				if($(textInputs[i]).val() == 'Qty.'){
					$(textInputs[i]).css({
						color: '#bfd0de'
					});
				}
			}
		}
		
		//check for generic value in the text fields
		$('.form-text', '#webform-client-form-40').bind('focus', function(){
			if($(this).val() == 'Qty.'){
				$(this).val('');
			}
			
			$(this).bind('keypress', function () {
				$(this).css({color: '#0A497A'});
			});
			
			return false;
		});
		//replace the generic value if left blank
		$('.form-text', '#webform-client-form-40').bind('focusout', function(){
			if($(this).val() == '')
			{
				$(this).val('Qty.');
				$(this).css({color: '#bfd0de'});
			}else{
				$(this).css({color: '#0A497A'});
			}
			return false;
		});
		
		var newSideHeight = 0;
		newSideHeight = $('#section-content').height();
		var winderWidth = 0;
		winderWidth = $('body').width();
		if(newSideHeight > 0 && winderWidth > 690)
		{
			$('#region-sidebar-second').height(newSideHeight);
		}
		
	});
})(jQuery);;

