
  $(document).ready(function()
							 {
			  $("#best_tovar .item:last").addClass("end");
			  $("tr:even td").css("background-color", "#E5E5E5");
                          $(".uncolor").css("background-color", "transparent");

              //$("tr:odd").css("background-color", "#EFF1F1");
              equalHeight($(".item"));
        });
  
  
function show(ele) {
var srcElement = document.getElementById(ele);
if(srcElement != null) {
if(srcElement.style.display == "block") {
srcElement.style.display= 'none';
}
else {
srcElement.style.display='block';
}
}
//return false;
}

function equalHeight(group) {
 tallest = 0;
 group.each(function() {
     thisHeight = $(this).height();
     if(thisHeight > tallest) {
        tallest = thisHeight;
 }
 });
 group.height(tallest);
}
$(document).ready(function() {
    

});

$(document).ready(function() {
			$('input[type="text"]').addClass("idleField");
       		$('input[type="text"]').focus(function() {
       			$(this).removeClass("idleField").addClass("focusField");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		$('input[type="text"]').blur(function() {
    			$(this).removeClass("focusField").addClass("idleField");
    		    if ($.trim(this.value) == ''){
			    	this.value = (this.defaultValue ? this.defaultValue : '');
				}
    		});
		});			
$(document).ready(function() {
			$('textarea').addClass("idleField");
       		$('textarea').focus(function() {
       			$(this).removeClass("idleField").addClass("focusField");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		$('textarea').blur(function() {
    			$(this).removeClass("focusField").addClass("idleField");
    		    if ($.trim(this.value) == ''){
			    	this.value = (this.defaultValue ? this.defaultValue : '');
				}
    		});
		});			

