var Header;
Header = 1;

function ShowProgress(name) {
    $("#" + name).html("<center><img src='images/progress.gif' style='margin-top:250px;margin-bottom:250px' /></center>");
}
function ShowProgressRC(name) {
    $("#" + name).html("<center><img src='images/progress.gif' style='margin-top:150px'margin-bottom:140px' /></center>");
}

function PokazHome()
{
    ShowProgress("content");
    ShowProgressRC("RC_content");
    $.ajax({
       url:"home.html",
       dataType: "html",
       success: function(html){
           $("#content").html(html);
       }
    });
    $.ajax({
       url:"home_RC.html",
       dataType: "html",
       success: function(html){
           $("#RC_content").html(html);
       }
    });
}

function PokazOferte()
{
    ShowProgress("content");
    ShowProgressRC("RC_content");
    $.ajax({
       url:"oferta.html",
       dataType: "html",
       success: function(html){
           $("#content").html(html);
       }
    });
    $.ajax({
       url:"oferta_RC.html",
       dataType: "html",
       success: function(html){
           $("#RC_content").html(html);
       }
    });
}

function PokazNews()
{
    ShowProgress("content");
    ShowProgressRC("RC_content");
    $.ajax({
       url:"news.html",
       dataType: "html",
       success: function(html){
           $("#content").html(html);
       }
    });
    $.ajax({
       url:"news_RC.html",
       dataType: "html",
       success: function(html){
           $("#RC_content").html(html);
       }
    });
}

function PokazSerwis()
{
    ShowProgress("content");
    ShowProgressRC("RC_content");
    $.ajax({
       url:"serwis.html",
       dataType: "html",
       success: function(html){
           $("#content").html(html);
       }
    });
    $.ajax({
       url:"serwis_RC.html",
       dataType: "html",
       success: function(html){
           $("#RC_content").html(html);
       }
    });
}

function PokazKontakt()
{
    ShowProgress("content");
    ShowProgressRC("RC_content");
    $.ajax({
       url:"kontakt.html",
       dataType: "html",
       success: function(html){
           $("#content").html(html);
       }
    });
    $.ajax({
       url:"kontakt_RC.html",
       dataType: "html",
       success: function(html){
           $("#RC_content").html(html);
       }
    });
}

function PokazGaleria()
{
    hs.close();
    ShowProgress("content");
    ShowProgressRC("RC_content");
    $.ajax({
       url:"galeria.html",
       dataType: "html",
       success: function(html){
           $("#content").html(html);
       }
    });
    $.ajax({
       url:"galeria_RC.html",
       dataType: "html",
       success: function(html){
           $("#RC_content").html(html);
       }
    });
}

function PokazGaleria1()
{
    hs.close();
    ShowProgress("content");
    ShowProgressRC("RC_content");
    $.ajax({
       url:"Galeria_Eurobike2008.html",
       dataType: "html",
       success: function(html){
           $("#content").html(html);
       }
    });
    $.ajax({
       url:"galeria_RC.html",
       dataType: "html",
       success: function(html){
           $("#RC_content").html(html);
       }
    });
}

function PokazGaleria2()
{
    hs.close();
    ShowProgress("content");
    ShowProgressRC("RC_content");
    $.ajax({
       url:"Galeria_Brno2008.html",
       dataType: "html",
       success: function(html){
           $("#content").html(html);
       }
    });
    $.ajax({
       url:"galeria_RC.html",
       dataType: "html",
       success: function(html){
           $("#RC_content").html(html);
       }
    });
}

function PokazGaleria3()
{
    hs.close();
    ShowProgress("content");
    ShowProgressRC("RC_content");
    $.ajax({
       url:"Galeria_Eurobike2009.html",
       dataType: "html",
       success: function(html){
           $("#content").html(html);
       }
    });
    $.ajax({
       url:"galeria_RC.html",
       dataType: "html",
       success: function(html){
           $("#RC_content").html(html);
       }
    });
}

function PokazGaleria4()
{
    hs.close();
    ShowProgress("content");
    ShowProgressRC("RC_content");
    $.ajax({
       url:"Galeria_Eurobike2010.html",
       dataType: "html",
       success: function(html){
           $("#content").html(html);
       }
    });
    $.ajax({
       url:"galeria_RC.html",
       dataType: "html",
       success: function(html){
           $("#RC_content").html(html);
       }
    });
}
