		$(document).ready(function() { 
               
      // remove then add default value from search form
      $("#search:text").focus(function() {
          if( this.value == this.defaultValue ) {
              this.value = "";
          }
       }).blur(function() {
          if( !this.value.length ) {
              this.value = this.defaultValue;
          }
       })

       // nav drop down this sucks and needs to be rewritten with a slide in effect
       $('ul#nav li').hover(function() {$(this).addClass('over');}, function() {$(this).removeClass('over');});
	     $('ul#nav ul').hover(function() {$('.over a').addClass('onsection');}, function() {$('.over a').removeClass('onsection');});
	     $('ul#nav li li').hover(function() {$('.over a').addClass('onsection');}, function() {$('.over a').removeClass('onsection');});	

       // cta hover fade effect      
       //$("ul#cta > li > a, ul#cta > li > img").hover(function () {
       //    $(this).fadeTo("slow", 0.50);
       // })
        
        $("ul#cta > li > a, ul#cta > li > img, ul.form > li > a > img, ul > li.question, ul.ourproducts > li > a > img, .btn_fcon, ul.newslist > li a").hover(
          function () {
            $(this).fadeTo("fast", 0.6);
          },
          function () {
            $(this).fadeTo("fast", 1);
          }
         );

         // $("ul.form > li > a > img").hover(function () {
         //    $(this).fadeTo("slow", 0.50);
         //    $(this).fadeTo("fast", 0.90);
         // })
          
         //  $("div.rhstext > a").hover(function (){
         //    $(this).fadeTo("slow", 0.50);
         //    $(this).fadeTo("fast", 0.90);
         // })
        
        /*hide and show */        
        
        $("div.faqcat ul li.answer").hide();
        $("div.faqcat ul li.question").click(function() {
            if ($(this).parent().find("li.answer").is(":hidden")) {
                $(this).parent().find("li.answer").slideDown("fast");
                return false;
            } else {
                $(this).parent().find("li.answer").slideUp("fast");
                return false;
            }
        });
     
        /*hide and show faq categories*/
        
        $('ul.faqcatmenu > li > a').click(function() {
        	var category = "#" + $(this).attr('href');
        	$('div.faqcat').hide();
          if (category != "#faq_all") {
            $(category).fadeIn("slow");
            return false;
          }
          else {
            $('div.faqcat').fadeIn("slow");
            return false;
          }
        });

		}); 


