(function ($) { $().ready(function () { startChanger();  $('input.noedit').focus(function () { $(this).blur(); return false; }); /*$('.gallery ul').jcarousel({ scroll: 1 });*/ $.datepicker.setDefaults($.datepicker.regional["ru"]); $('.datepick').datepicker({ showOn: "button", buttonImage: "/t/goldenbeach.ru/i/calendar.png", buttonImageOnly: true, showMonthAfterYear: false, dateFormat: 'dd.mm.yy', firstDay: '1' }); $('#dialog_link, ul#icons li').hover(function () { $(this).addClass('ui-state-hover'); }, function () { $(this).removeClass('ui-state-hover'); }); }); })(jQuery);
var curImage = 0;
/*var interval = 5000;
function changePic() {
curImage++;
if (curImage == images.length) curImage = 0;
jQuery(".headpic img").fadeOut("slow", function () {
jQuery(".headpic img").attr("src", images[curImage]);
jQuery(".headpic img").fadeIn("slow");
setTimeout("changePic();", interval);
});
}*/
function startChanger() {
      jQuery('.headpic .pics').cycle({
        timeout: 5000,
        prev:   '#prev', 
        next:   '#next',
        speed: 1000
    });
}

