/** * Anchor Script * o.tietze@hanseatics.com  goal:  - set height from flash to use browser scrollbars.        - if height is less than viewport height, set viewport height instead  */
 
function jump(y) {
    window.scrollTo(0, y);
}

function resize() {
    setContentHeight();
    var h = pageheight;
    if (h < document.body.clientHeight) 
        h = document.body.clientHeight;
    setContentHeight(h);
}

function setPageheight(height) {
    pageheight = height;
    resize();
}

function setContentHeight(h) {
    h = h == undefined ? "100%" : h + "px";
    document.getElementById("flashcontent").style.height = h;
}

pageheight = 0;
window.onresize = resize;