$(function () {
    var tabContainers = $('div.tabs > div');
    tabContainers.hide().filter(':first').show();
    
    $('div.tabs ul.tabNavigation a').click(function () {
        tabContainers.hide();
        tabContainers.filter(this.hash).show();
        $('div.tabs ul.tabNavigation a').removeClass('selected');
        $(this).addClass('selected');
        return false;
    }).filter(':first').click();
});



jQuery(document).ready(function(){
	jQuery('#slider-code').tinycarousel({ pager: true });
	jQuery('#slider-code3').tinycarousel({ pager: true, animation: true });
});



function show1(obj){
$('.panel-room').css('height','auto').slideDown('100');
$('.panel-table').animate({height:40}, 500);
$('.panel-meeting').animate({height:40}, 500);
$('.panel-event').animate({height:40}, 500);
}
function show2(obj){
$('.panel-room').animate({height:40}, 500);
$('.panel-table').animate({height:'100%'}, 500);
$('.panel-meeting').animate({height:40}, 500);
$('.panel-event').animate({height:40}, 500);
}
function show3(obj){
$('.panel-room').animate({height:40}, 500);
$('.panel-table').animate({height:40}, 500);
$('.panel-meeting').css('height','auto').slideDown('100');
$('.panel-event').animate({height:40}, 500);
}
function show4(obj){
$('.panel-room').animate({height:40}, 500);
$('.panel-table').animate({height:40}, 500);
$('.panel-meeting').animate({height:40}, 500);
$('.panel-event').css('height','auto').slideDown('100');
}

function show_ol_info(obj){
        if($(obj).parent().find('.info').css('display') == "none"){
                $(obj).parent().parent().find('.info').slideUp('100');
                $(obj).parent().find('.info').slideDown('100');
        } else {
                $(obj).parent().parent().find('.info').slideUp('100');
        }
        return false;
}
function show_ol_infos(obj){
        if($(obj).parent().find('.infos').css('display') == "none"){
                $(obj).parent().parent().find('.infos').slideUp('100');
                $(obj).parent().find('.infos').slideDown('100');
        } else {
                $(obj).parent().parent().find('.infos').slideUp('100');
        }
        return false;
}
