window.onload = winOnLoad;
function loadXMLDoc(content)
{
    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)
        {
            r = document.getElementById("carousel");
            //            if (content[1] == "l") {
            //                $("#carousel").animate({
            //                    opacity: 0
            //                }, 700 );
            //                $("#carousel").hide();
            //            }
            //            if (content[1] != "l" && r.style.display == "none") {
            //                $("#carousel").show();
            //                $("#carousel").animate({
            //                    opacity: 1
            //                }, 700 );
            //            }
            a = document.getElementById("pageContent");
            if (a.style.opacity) {
                a.style.opacity = "";
            }
            a.innerHTML=xmlhttp.responseText;
            $("#pageContent").animate({
                opacity: 1
            }, 700 );
        }
    }
    var now = new Date();
    xmlhttp.open("GET", "pages/"+content+".html"+"?t="+now.getTime(),true);
    xmlhttp.send();
}

function winOnLoad(){
    $("#pageContent").animate({
        opacity: 1
    }, 700 );
}



