/***************************/
//@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($) {
	var searchBox = $("#fieldSearch");
	var searchBoxDefault = "Search";
	//Effects for both searchbox
	searchBox.focus(function(e){
		$(this).addClass("searchActive");
		});
	searchBox.blur(function(e){
		$(this).removeClass("searchActive");
		});
	//Searchbox, set focus when document is ready
	searchBox.focus(function(){
		if($(this).attr("value") == searchBoxDefault) $(this).attr("value", "");
		});
	searchBox.blur(function(){
		if($(this).attr("value") == "") $(this).attr("value", searchBoxDefault);
		});
})
