/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function showExpocomerVideo(lang, str)
{
    str = "?lang="+lang+"&q="+str;
    showExpocomerAjax(str, "video/video.php");
}

function showExpocomerHome(str)
{
    str = "?lang="+str;
    showExpocomerAjax(str, "home/home.php");
}

function showExpocomerInfo(str)
{
    str = "?lang="+str;
    showExpocomerAjax(str, "info/info.php");
}

function showExpocomerExhib(str)
{
    str = "?lang="+str;
    showExpocomerAjax(str, "exhib/exhib.php");
}

function showExpocomerRegister(str)
{
    str = "?lang="+str;
    showExpocomerAjax(str, "register/register.php");
}


function showExpocomerGallery(str) {
    str = "?lang="+str;
    showExpocomerAjax(str, "galeria/galeria.php");
}

function showExpocomerNews(lang, page) {
    str = "?lang="+lang+"&page="+page;
    showExpocomerAjax(str, "noti/noti.php");
}

function showExpocomerGalleryShow(lang, gal, page) {
    str = "?lang="+lang+"&gal="+gal+"&page="+page;
    showExpocomerAjax(str, "galeria/galeria.php");
}

function showExpocomerCont(str)
{
    str = "?lang="+str;
    showExpocomerAjax(str, "cont/cont.php");
}

function showExpocomerEvt(str)
{
    str = "?lang="+str;
    showExpocomerAjax(str, "evt/evt.php");
}


function showExpocomerAjax(str, url)
{
    var d = new Date();

    str = str + "&rnd=" + d.getTime();

    if (window.XMLHttpRequest)
    {// code for IE7+, Firefox, Chrome, Opera, Safari
        xmlhttp = new XMLHttpRequest();
    }
    else
    {// code for IE6, IE5
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }

    xmlhttp.onreadystatechange = function() {
        if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            document.getElementById("tdMainPainel").innerHTML = xmlhttp.responseText;
        }
    }

    xmlhttp.open("GET",url + str,true);
    xmlhttp.send();
}





