﻿function getWindowHeight() {
var windowHeight=0;
if (typeof(window.innerHeight)=='number') {
	windowHeight=window.innerHeight;
}
else {
	if (document.documentElement&&
		document.documentElement.clientHeight) {
		windowHeight=document.documentElement.clientHeight;
	}
	else {
		if (document.body&&document.body.clientHeight) {
			windowHeight=document.body.clientHeight;
		}
	}
}
return windowHeight;
}
function setFooter() {

	if (document.getElementById) {
		var windowHeight=getWindowHeight();
		if (windowHeight>0) {
			if (document.getElementById('content')) {
				var contentElement=document.getElementById('content');
				if (document.getElementById('portfoliobox')) {
					var contentHeight=document.getElementById('content').offsetHeight+290;			
				} else if (document.getElementById('promomarker')) {
					var contentHeight=document.getElementById('content').offsetHeight+290;
				} else {
					var contentHeight=document.getElementById('content').offsetHeight+70;
				}
				
			}
			var containerElement=document.getElementById('container');
			//var footerElement=document.getElementById('footer');
			// ------------ Positioning -------------------------
			/* if (document.getElementById('content')) {
				if (contentHeight < 510) {
					footerElement.style.top='510px';
				}
				if (contentHeight >= 510) {
					footerElement.style.top=contentHeight + 10 + 'px';
				}
			} else {
				footerElement.style.top='510px';
			} */
			//-------------------------------------------------------------
		}		
	} 
}
window.onload = function() {
  setFooter();
} 
if(document.images){
ourwork1_lg= new Image
ourwork2_lg= new Image
ourwork3_lg= new Image
girl=new Image
ourwork1_lg.src="images/index-ourwork1-lg.gif"
ourwork2_lg.src="images/index-ourwork2-lg.gif"
ourwork3_lg.src="images/index-ourwork3-lg.gif"
}
else{
/* in case someone is on a commodor */
ourwork1_lg=""
ourwork2_lg=""
ourwork3_lg=""
girl=""
}

images = new Array(7);
	images[0] = "anthony_index.jpg";
	images[1] = "doug_index.jpg";
	images[2] = "emily_index.jpg";
	images[3] = "gina_index.jpg";
	images[4] = "kaye_index.jpg";
	images[5] = "lance_index.jpg";
	images[6] = "melinda_index.jpg";

index = Math.floor(Math.random() * images.length);
girl.src="images/" + images[index] +"";
