
$(document).ready(function() {
/*    $('#partner ul').jcarousel({ scroll: 5 });
	
    $('#info .tab, #inner .news .tab').each(function(){
        $(this).find('a').each(function(){
            if ($(this).parent().hasClass('current')){ $($(this).attr('href')).show(); }
            else $($(this).attr('href')).hide();
            $(this).click(function(){
                if (!$(this).parent().hasClass('current')){
                    $($(this).attr('href')).fadeIn();
                    $(this)
                        .parent().addClass('current')
                        .siblings().each(function(){
                            $(this).removeClass('current');
                            $($(this).children().attr('href')).hide();
                        })
                }
                return false;
            });
        });
    });
*/	
    // local news
    /*$('#inner .local-news .list').bxSlider({
        auto            : true,
        infiniteLoop    : false,
        speed           : 1000
    });*/
/*    
    //service & portfolio
    $('#inner .service li, #inner .portfolio li, #inner .image_gallery li').each(function(e){
        if (e % 2 != 0) $(this).addClass('odd').after('<li class="clear"></li>');
    });

    //popup
    $('a[rel=gallery]').fancybox({
        'titleShow': true
    });
    $('a.login').fancybox({
        'height'  : 450,
        'width'   : 630,
        'type'    : 'iframe'
    });
    $('a.register').fancybox({
        'height'  : 500,
        'width'   : 630,
        'type'    : 'iframe'
    });
    $('a.tvc').fancybox({
        'height'  : 348,
        'width'   : 706,
        'type'    : 'iframe'
    });
    $('a.channel').fancybox({
        'height'  : 440,
        'width'   : 885,
        'type'    : 'iframe'
    });
    $('a.popup, a[rel=partner]').fancybox();
  
    $('#teaserStart').slider().find('.teaserBox').each(function(i, obj){
            var content = $(obj).find('.teaserContent');
            if ($(obj).hasClass('selected')) content.appendTo('#teaserContentContainer').show();
            else content.appendTo('#teaserContentContainer');
        });

    //popup video homepage
    $('#extras .featured-article .view-video').fancybox({
    });

    // popup portfolio
    $('#inner .portfolio .view-video').fancybox({
        'height'  : 440,
        'width'   : 885,
        'type'    : 'iframe'
    });

    // popup portfolio
    $('#inner .portfolio .view-gallery').fancybox({
    });

    $('#partner a').fancybox({
        'height'  : 440,
        'width'   : 885,
        'type'    : 'iframe'
    });

    $('.channel h1').bind('click', function(){
        $(this).toggleClass('expanded').next().slideToggle();
    });

	 $('.tooltip_top').tooltip({
	   bodyHandler: function() {
		   return $('#adv_top').html();
	   },
	   showURL: false
   });

   $('.tooltip_right').tooltip({
	   bodyHandler: function() {
		   return $('#adv_right').html();
	   },
	   showURL: false
   });

   $('.tooltip_center').tooltip({
	   bodyHandler: function() {
		   return $('#adv_center').html();
	   },
	   showURL: false
   });
   
    //thumbnail
    $('#aside .thumbnail .list').bxSlider({
        auto    : true,
        controls: false,
        speed   : 1000,
    });
*/
});

function checkSelectPoll(msg) {
    if ($("input[name=answer]:checked").val() == undefined) {
        alert(msg);
        return false;
    }

    return true;
}

function changeRaovatcategory(rv_url, rvc_id) {
    $.ajax({
	    url: rv_url,
	    type: 'get',
	    data: {id: rvc_id},
	    success: function(data) {
                $('#raovat_list').html(data);
	    }
	  });
}

