/* site specific scripts */

function siteInit(){
  // Called with the body onload event.
  // Customise according to site requirements.
}

window.onresize=setLayout;

function getSections() {
  sections = new Array();
                                                                                                                                                             
  sections[0] = document.getElementById('primary-navigation');
  sections[1] = document.getElementById('component-box');
  sections[2] = document.getElementById('main-banner');
  sections[3] = document.getElementById('search-box');
  sections[4] = document.getElementById('breadcrumbs');
  sections[5] = document.getElementById('print-page');
                                                                                                                                                             
  return sections;
}

function setLayout() {

    section = getSections();

    primarynavHeight = sections[0].offsetHeight;
    bannerHeight = sections[2].offsetHeight; 

    componentboxHeight = primarynavHeight+bannerHeight;

    if(current_browser.isIE){
        sections[1].style.top = componentboxHeight-1+"px";
        sections[3].style.top = componentboxHeight-25+"px";
        sections[4].style.top = primarynavHeight+25+"px";
        sections[5].style.top = componentboxHeight-35+"px";
    }else{
        sections[1].style.top = componentboxHeight+"px";
        sections[3].style.top = componentboxHeight-18+"px";
        sections[4].style.top = primarynavHeight+25+"px";
        sections[5].style.top = componentboxHeight-35+"px";
    }
    
}
