function switchPageElement(id, part) {
    //zastepujemy menu wezem
    $('#menuAjaxPageElement'+id).html('<img src="gallery/system/ajax-loader.gif" />');

    $.ajax({
        type: "POST",
        url: "index.php",
        data: "main_template=main/blank&ajax=2&portlet=elementAjaxCrop/show&ctHtIdElement="+id+"&part="+part,
        success: function(msg){
            $("#ctHtId_"+id).html(msg);
            tb_init('a.thickbox');
        }
    });
}

function switch_gallery_page(page) {
    $("#galleryPhoto").hide('normal',function() {
        $("#galleryPhoto").html("<img src=\"gallery/system/ajax-loader.gif\" alt=\"\" style=\"margin-top: 5px\" />").show();
        $.ajax({
            type: "GET",
            url: "index.php",
            data: "portlet=WEBGaleria/kategorie_lista&main_template=main/blank&page=" + page,
            success: function(data){
                $("#galleryPhoto").hide(1,function() {
                    $("#galleryPhoto").html(data);
                    $("#galleryPhoto").show('normal');
                });
            }
        });
    });
    return false;
} 
$(document).ready(function(){
    $("#orgLogoIn").scrollable({size: 5}).circular();
    $("#newsTabs ul").tabs(".tabCont");
    $("#sidebarTabs ul").tabs(".tabSidebarCont");
});


function standardFont(){
  $("#content p").css("font-size","1em");
  $("#content p").css("line-height","1.4em");
  $("#content li").css("font-size","1em");
  $("#content li").css("line-height","1.4em");
}
function biggerFont (){
  $("#content p").css("font-size","1.2em");
  $("#content p").css("line-height","1.6em");
  $("#content li").css("font-size","1.2em");
  $("#content li").css("line-height","1.6em");
}
function biggestFont(){
  $("#content p").css("font-size","1.3em");
  $("#content p").css("line-height","1.8em");
  $("#content li").css("font-size","1.3em");
  $("#content li").css("line-height","1.8em");
}

$(document).ready(function(){
    if($("a[rel^='prettyPhoto']").length) {
        $("a[rel^='prettyPhoto']").prettyPhoto();
    }
    if($("table.alternate").length) {
        $("table.alternate tbody tr:odd").livequery(function(){ 
            $(this).addClass("odd"); 
        });
        $("table.alternate tbody tr:even").livequery(function(){ 
            $(this).addClass("even"); 
        });
    }
});



