
    function initialize() {
        var d = document.createElement('div');
        d.setAttribute('id', 'container')
        var b = document.getElementsByTagName('body')[0];
        b.appendChild(d);
        ajaxloader('container.html', d);
    }


    /* Load content into container, them copy it to the real container */

    function ajaxloader(url, container) {
        var page_request = false
        if (window.XMLHttpRequest) // if Mozilla, Safari etc
            page_request = new XMLHttpRequest()
        else if (window.ActiveXObject) { // if IE
            try {
                page_request = new ActiveXObject("Msxml2.XMLHTTP")
            } 
            catch (e) {
                try{
                    page_request = new ActiveXObject("Microsoft.XMLHTTP")
                }
                catch (e) { }
            }
        }
        else {
            return false
        }

        page_request.onreadystatechange = function() {
            if (page_request.readyState == 4 &&
                (page_request.status==200 || window.location.href.indexOf("http") == -1)) {
                container.innerHTML = page_request.responseText;

                var source = document.getElementById('content');
                var destination = document.getElementById('contentdest');
                var copy = source.cloneNode(true);
                copy.setAttribute('id', 'content');
                copy.style.display = "inline";
                destination.parentNode.replaceChild(copy, destination);
            }
        }
        page_request.open('GET', url, true)
        page_request.send(null)
    }

