function resizeBGDiv()
{
    width = YAHOO.util.Dom.getViewportWidth();
    height = YAHOO.util.Dom.getViewportHeight();
    imgWidth = 1280;
    imgHeight = 800;
    ratio = width/height;
    imgRatio = imgWidth/imgHeight;
    imgObj = document.getElementById('bg')
    //alert("The viewport width is " + width + "\nThe viewport height is " + height + "\nThe ratio is " + (ratio))
    
    if (ratio <= imgRatio) {
        imgObj.height="" + height;
        imgObj.width="" + height*imgRatio;
    } else {
        imgObj.height="" + width/imgRatio;
	imgObj.width="" + width;
    }
    
//    contentDiv = document.getElementById('content');
//    contentDiv.style.height = "" + (height-150) + "px";
//    contentDiv.style.width = "" + (width * 1 - 70) + "px";
}
