$(function() {
	// Removes Search text on focus, changes text to #9d9d9d and back to #666 out of focus
	var inputs = document.getElementsByTagName("input");
	for (var i = 0; i < inputs.length; i++) {
		if (inputs[i].name == "search") {
			inputs[i].style.color = "#9d9d9d";
			inputs[i].onfocus = function() {
				if (this.value == "szukaj...") {
            		this.value = "";
        		}
        		this.style.color = "#666";
        	}
			inputs[i].onblur = function() {
        		if (this.value == "") {
            		this.value = "szukaj...";
        		}
        		this.style.color = "#9d9d9d";
        	}            
     	}
  	}
});