var siteWidth, siteHeight, screenWidth, screenHeight, lwWidth, mwWidth, rwWidth;

siteWidth = 1024;
siteHeight = 900;

lwWidth = 401;
rwWidth = 222;

function getDimensions()
{    
    if (screen.availWidth) {
        screenWidth = screen.availWidth; 
    } else if (screen.width) {
        screenWidth = screen.width;
    } else {
        screenWidth = siteWidth;
    }
    
    if (screen.availHeight) {
        screenHeight = screen.availHeight;
    } else if (screen.height) {
        screenHeight = screen.height;
    } else {
        screenHeight = siteHeight;
    }
    
    return;
}

function adjustDimensions()
{
    getDimensions();
    
    if (screenWidth > siteWidth) {
        mwWidth = screenWidth - (lwWidth + rwWidth + 50); 
    } else {
        mwWidth = siteWidth - (lwWidth + rwWidth + 50);
    }
    
    document.getElementById('highlightTitle').style.width = mwWidth + 'px';
    document.getElementById('highlightContent').style.width = mwWidth + 'px';
    
    document.getElementById('contactTitle').style.width = mwWidth + 'px';
    document.getElementById('contactContent').style.width = mwWidth + 'px';

    return;
}
