var VALID_NOT_EMPTY = /\s*.+\s*/; var VALID_PHONE = /^\s*[0-9 +\(][0-9 \(\),+-]*\s*$/; $(document).ready( function() { // изменение цвета при наведении restor_color = $("div.subtitle").css("color"); restor_cursor = $("div.subtitle").css("cursor"); $("div.subtitle > span").hover( function() { $(this).css({ color: "#D23929", borderBottom: "1px dashed #D23929", cursor: "pointer" }); }, function() { $(this).css({ color: restor_color, borderBottom: "1px dashed "+restor_color, cursor: restor_cursor }); } ); // /изменение цвета при наведении } ); function ShowHideUl(id) { $("div#"+id).toggle("fast"); } function ChangeGoodsToCompare(compareCat, input) { if (input.checked) { compareCat.push(input.value); } else { for(i=0; i