function resize(){
    var l_iStandardWebsiteHeight;
    var l_iContentCenterHeight;
    var l_iContentHeight;
    var l_iContentMarginTop;
    var l_iMenuHeight;
    var l_iHeaderHeight;
    
    var l_oContentCenter;
    var l_oSidebarBottom;
    var l_oContent;
    var l_oFooter;
    var l_oWebsite;
    
    l_oContentCenter    = document.getElementById('content_center');
    l_oSidebarBottom    = document.getElementById('sidebar_bottom');
    l_oContent          = document.getElementById('content');
    l_oWebsite          = document.getElementById('website');
    l_oWebsiteContainer = document.getElementById('website_container');
    l_oFooter           = document.getElementById('footer');
    
    l_oWebsiteShadowHeader      = document.getElementById('website_bottom_shadow');
    l_oWebsiteLeftShadow        = document.getElementById('website_left_shadow')
    
    l_iContentCenterHeight      = l_oContentCenter.offsetHeight;
    l_iStandardWebsiteHeight    = 726;
    l_iMenuHeight               = 20;
    l_iContentMarginTop         = 47;
    l_iHeaderHeight             = 287;
    l_iSidebarTopHeight         = 382;
    l_iSidebarBottomTop         = 380;
    l_iStandardSidebarHeight    = 123;
    l_iStandardFooterTop        = 814;
    l_iBottomMargin             = 20;
    l_iFooterHeigth             = 33;
    l_iEmptySpaces              = 4;
    
    l_iContentHeight = l_iContentMarginTop + l_iContentCenterHeight;
    
    l_iWebsiteHeight = l_iHeaderHeight + l_iMenuHeight + l_iContentHeight + l_iEmptySpaces + 30 + l_iBottomMargin;
    l_oWebsiteContainer.style.height= l_iStandardWebsiteHeight     + l_iBottomMargin  + "px";
    
    if(l_iWebsiteHeight > l_iStandardWebsiteHeight){
        l_oWebsite.style.height             = l_iWebsiteHeight + "px";
        l_oWebsiteLeftShadow.style.height   = l_iWebsiteHeight + "px";  
        
        l_oSidebarBottom.style.height       = l_iContentHeight - l_iSidebarTopHeight + l_iBottomMargin + "px";
        l_iSidebarGrowth                    = l_iContentHeight - l_iSidebarTopHeight + l_iBottomMargin - l_iStandardSidebarHeight;
        
        l_oFooter.style.top                 = l_iStandardFooterTop + l_iSidebarGrowth + "px";        
        l_oWebsiteShadowHeader.style.top    = l_iStandardFooterTop + l_iSidebarGrowth + l_iFooterHeigth + "px";
        l_oWebsiteContainer.style.height    = l_iWebsiteHeight     + l_iBottomMargin  + "px";
    }  
    
    
}

function changeImage(l_bChange){
    var l_oMenuLeft;
    var l_sImageURL;
    
    l_oMenuLeft = document.getElementById('menu_left');
    
    if(l_bChange){
        l_sImageURL = "url(/assets/templates/spranq/images/menu_left_alt.jpg)";
        l_oMenuLeft.style.backgroundImage = l_sImageURL;
    }else{
        l_sImageURL = "url(/assets/templates/spranq/images/menu_left.jpg)"; 
        l_oMenuLeft.style.backgroundImage = l_sImageURL;
    }
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}



