var $j = jQuery.noConflict();
$j(document).ready(function()
{

	$j('.topDate a.btn')
		.css('cursor', 'pointer')
		.hover(function() {$j(this).css('top', '6px')}, function() {$j(this).css('top', '7px')})
		.mousedown(function() {$j(this).css('top', '7px')})
		.mouseup(function() {$j(this).css('top', '6px')});

        $j('.skip').click(function()
        {

                // пропустить
                $j('#actionDate').val('0');
                $j('#voteForm').submit();
        });

        $j('#y').click(function()
        {
                // ДА
                $j('#actionDate').val('1');
                if ($j("#store").data("rel") == 1)
                {

                	sendMessageToUserWindow();
                }
                else
                {
                	$j('#voteForm').submit();
                }
        });

        $j('#n').click(function()
        {

                // НЕТ
                $j('#actionDate').val('2');
                $j('#voteForm').submit();
        });


/*	$j(document).keyup(function (e) {
		if(e.which == 17) isCtrl=false;
	}).keydown(function (e) {
		if(e.which == 17 && $j('#currentFoto').attr('src')) isCtrl=true;
		if(isCtrl == true){
			if(e.which == 37) {
				nextFoto();
				return false;
			}else if(e.which == 38) {
				dateMatch(1);
				return false;
			}else if(e.which == 39) {
				dateMatch(0);
				return false;
			}else if(e.which == 40) {
				dateMatch(-1);
				return false;
			}
		}
	});
*/

});

