/***************************/
//@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(){
 //global vars
 var searchBox_site = $("#id_q");
 var searchBoxDefault_site = "Search site...";

 //Effects for both searchbox
 searchBox_site.focus(function(e){
 $(this).addClass("inputactive");
 });
 searchBox_site.blur(function(e){
 $(this).removeClass("inputactive");
 });

 //Searchbox show/hide default text if needed
 searchBox_site.focus(function(){
 if($(this).attr("value") == searchBoxDefault_site) $(this).attr("value", "");
 });
 searchBox_site.blur(function(){
 if($(this).attr("value") == "") $(this).attr("value", searchBoxDefault_site);
 });
});



$(document).ready(function(){
 //global vars
 var searchBoxl = $("#id_ql");
 var searchBoxDefaultl = "Search resource collection...";

 //Effects for both searchbox
 searchBoxl.focus(function(e){
  $(this).addClass("inputactive");
 });
 searchBoxl.blur(function(e){
  $(this).removeClass("inputactive");
 });

 //Searchbox show/hide default text if needed
 searchBoxl.focus(function(){
  if($(this).attr("value") == searchBoxDefaultl) $(this).attr("value", "");
 });
 searchBoxl.blur(function(){
  if($(this).attr("value") == "") $(this).attr("value", searchBoxDefaultl);
 });
});


$(document).ready(function(){
 //global vars
 var searchBox2 = $("#id_qm");
 var searchBoxDefault2= "Search member profiles...";

 //Effects for both searchbox
 searchBox2.focus(function(e){
 $(this).addClass("inputactive");
});
 searchBox2.blur(function(e){
  $(this).removeClass("inputactive");
});
 //Searchbox show/hide default text if needed
  searchBox2.focus(function(){
  if($(this).attr("value") == searchBoxDefault2) $(this).attr("value", "");
  });
  searchBox2.blur(function(){
  if($(this).attr("value") == "") $(this).attr("value", searchBoxDefault2);
  });
});


