var MinHeight = 629;

function initHome() {
var contentHeight = 0;
var contentHeight= Math.max(getDivSize("homeCol1Inner"),contentHeight);
var contentHeight= Math.max(getDivSize("homeCol2Inner"),contentHeight);
var contentHeight= Math.max(getDivSize("homeCol3Inner"),contentHeight);
minHeight = contentHeight + 436;
adjustHeightsHome()
}

function adjustHeightsHome()
{
var maxHeight= minHeight;
var maxHeight= Math.max(getWindowHeight(),maxHeight);
var contentHeight= Math.max(getDivSize("homeCol1Inner") + 436,maxHeight);
var contentHeight= Math.max(getDivSize("homeCol2Inner") + 436,maxHeight);
var contentHeight= Math.max(getDivSize("homeCol3Inner") + 436,maxHeight);
document.getElementById("homeCol1Inner").style.height = (maxHeight - 436) + "px";	
document.getElementById("homeCol2Inner").style.height = (maxHeight - 436) + "px";	
document.getElementById("homeCol3Inner").style.height = (maxHeight - 436) + "px";	
document.getElementById("outerContainer").style.height = maxHeight + "px";	
//shift position of footer for IE 5.5
document.getElementById("footer").style.bottom = "";
document.getElementById("footer").style.top = (maxHeight - getDivSize("footer")) + "px"
}

//populate the image array for random homepage image
arImage = new Array();
arImage[0] = "images/home/strip1.jpg";
arImage[1] = "images/home/strip2.jpg";
arImage[2] = "images/home/strip3.jpg";
arImage[3] = "images/home/strip4.jpg";
arImage[4] = "images/home/strip8.jpg";
arImage[5] = "images/home/strip9.jpg";


//Write IMG tag for homepage with random image
function randomIMG() {
var randnum;
randnum = Math.floor(Math.random() * arImage.length);
document.write("<img src='" + arImage[randnum] + "' width='777' height='246' alt='Improving, Expanding, and Creating Seattle’s Parks and Green Spaces' border='0'>");
}

