/***************************/
//@Author: Adrian "yEnS" Mato Gondelle & Ivan Guardado Castro
//@website: www.yensdesign.com
//@email: yensamg@gmail.com
//@license: Feel free to use it, but keep this credits please!					
/***************************/

$(document).ready(function(){
       $("a").click(function(event){
//global vars  
var searchBoxText = $(".text");  
var searchBox = $("#search2");  
var searchBoxDefault = "Search this site...";  

   //Effects  
   searchBoxText.focus(function(event){  
        $(this).addClass("active");  
    	});  
   searchBoxText.blur(function(event){  
        $(this).removeClass("active");  
    	}); 
   
   searchBox.focus(function(event){  
        $(this).addClass("active");  
    	});  
   searchBox.blur(function(event){  
        $(this).removeClass("active");  
    	}); 
   
 
  		//SearchBox show/hide default text if needed  
  		searchBox.focus(function(){  
        if($(this).attr("value") == searchBoxDefault) $(this).attr("value", "");  
   		});  
   		searchBox.blur(function(){  
       if($(this).attr("value") == "") $(this).attr("value", searchBoxDefault);  
  		});
		
		
  })
});
						   
