
/**
 * getDocHeight()
 *
 * Höhe des Bodies rauskriegen
 *
 * geborgt von Peter-Paul Koch,
 * http://www.evolt.org/article/document_body_doctype_switching_and_more/17/30655/index.html
 */
 
function getDocHeight()
{
    if (window.innerHeight)
    {
    	theHeight = window.innerHeight;
    }
    else if (document.documentElement && document.documentElement.clientHeight)
    {
    	theHeight = document.documentElement.clientHeight;
    }
    else if (document.body)
    {
    	theHeight = document.body.clientHeight;
    }
    
    return theHeight;
}

/**
 * setSidebarCSS()
 */
 
function setSidebarCSS()
{
    var theBodyHeight = getDocHeight();
    
    // Höhe Body setzen, damit's auch mit dem backpic klappt
       
    if(document.getElementById && !document.all)
    {
        document.getElementById('sidebar').style.height = theBodyHeight+"px";
    }
    
    if(document.all)
    {
        document.all.sidebar.style.height = theBodyHeight+"px";;
    }
}

/**
 * resizePopup()
 */
 
function resizePopup(myheight,mywidth) 
{
    return;
    
    var sizeh = myheight;
    var sizew = mywidth; 
    
    window.resizeTo(sizew,sizeh); //resize it
    window.moveTo(((screen.width/2)-(sizew/2)),((screen.height/2)-(sizeh/2))); //reposition it
}

/**
 * reloadFrameLeft()
 */
 
function reloadFrameLeft(frameAddParams, frameHref)
{
    top.frame_left.location.href = frameHref + frameAddParams;
}

/**
 * reloadFrameTop()
 */
 
function reloadFrameTop(frameAddParams, frameHref)
{
    top.frame_top.location.href = frameHref + frameAddParams;
}

/**
 * jQuery Action!
 */

$(document).ready(function() {


// ScrollToTop()

$("li.up a").click(function(){
	$('html, body').animate({ scrollTop: 0 }, 'slow');
	return false;
});

});

