$(document).ready(function(){
						   
hh = $("#datepanel").height();
$("#datepanel").height(18);
$("#datepanel").css('overflow','hidden');

//When mouse rolls over
$("#datepanel").mouseover(function(){
$(this).stop().animate({height:hh+10},{queue:false, duration:1000, easing: 'easeOutBounce'})
});

//When mouse is removed
$("#datepanel").mouseout(function(){
$(this).stop().animate({height:'18px'},{queue:false, duration:1000, easing: 'easeOutBounce'})
});

});

/* перенесли в аякс
$(function () {
    $('.icos').each(function () {
        var distance = 10;
        var time = 250;
        var hideDelay = 200;

        var hideDelayTimer = null;

        var beingShown = false;
        var shown = false;
        var trigger = $('.trigger', this);
        var info = $('.popup', this).css('opacity', 0);


        $([trigger.get(0), info.get(0)]).mouseover(function () {
            if (hideDelayTimer) clearTimeout(hideDelayTimer);
            if (beingShown || shown) {
                return;
            } else {
                beingShown = true;
                info.css({
                    top: 31,
                    left: -20,
                    display: 'block'
                }).animate({
                    opacity: 1
                }, time, 'swing', function() {
                    beingShown = false;
                    shown = true;
                });
            }

            return false;
        }).mouseout(function () {
            if (hideDelayTimer) clearTimeout(hideDelayTimer);
            hideDelayTimer = setTimeout(function () {
                hideDelayTimer = null;
                info.animate({
                    opacity: 0
                }, time, 'swing', function () {
                    shown = false;
                    info.css('display', 'none');
                });

            }, hideDelay);

            return false;
        });
    });
});
*/

function popupView(er, text) {
	if (er == 'er') {
		$("#popupBlock span").removeClass();
		$("#popupBlock span").addClass("mesError");
		$("#popupBlock").fadeIn(1000);
		$("#popupBlock span").html(text);
	}
	if (er == 'ok')
	{
		$("#popupBlock span").removeClass();
		$("#popupBlock span").addClass("mesOk");
		$("#popupBlock").fadeIn(1000);
		$("#popupBlock span").html(text);
	}
	$("#popupBlock span").click(function(){
		$("#popupBlock").fadeOut(1000);
	});
}

