var docH;
var winH;
var desiredHeight;
var initialHeight;
var flashHeight;

//the offset is 
function setFoot(resizeOffset) {
	initialHeight = $("#main-content").height();
	winH = $(window).height();
	docH = $("body").height();
	flashHeight = $("#flash-box").height();
	if (winH > docH){
		desiredHeight = (winH - flashHeight - resizeOffset) + "px";
		$("#main-content").css("min-height", desiredHeight);
	}
} 
function resizeFoot(resizeOffset){
	$("#main-content").css("min-height", initialHeight);
	winH = $(window).height();
	docH = $("body").height();
	if (winH > docH){
		desiredHeight = (winH - flashHeight - resizeOffset) + "px";
		$("#main-content").css("min-height", desiredHeight);
	}
}

function randomImage(){
	images = new Array(4);
	images[0] = '<img src="themes/golddocs/media/img/gold-docs-0.jpg" alt="automated legal documents" align="center" />';
	images[1] = '<img src="themes/golddocs/media/img/gold-docs-1.jpg" alt="automated legal documents" align="center" />';
	images[2] = '<img src="themes/golddocs/media/img/gold-docs-2.jpg" alt="automated legal documents" align="center" />';
	images[3] = '<img src="themes/golddocs/media/img/gold-docs-3.jpg" alt="automated legal documents" align="center" />';
	index = Math.floor(Math.random() * images.length);
	document.write(images[index]);
}
function randomQuote(){
	quotes = new Array(4);
	quotes[0] = "<p>My firm doesn't have an IT person on staff. With Gold Docs, there's no downloading, installing, networking, tutorials, special training, or time and effort on my part to upload monthly updates. I just log into my account and go!</p>";
	quotes[1] = "<p>I'm a solo practitioner that practices in several different content areas. Other vendors charge me extra for each topic I need, even though I can only bill out the same number of hours as the attorneys in the big firms who specialize in one area. Somehow that doesn't seem fair. Gold Docs understands. One monthly price includes everything!</p>";
	quotes[2] = "<p>I can get all sorts of forms for free in all sorts of places on the web, but if you look close, they're not all current, or MN specific, or able to be edited, and it takes a lot of my time to move around from place to place to find them. Gold Docs provides current, legally relevant forms written and updated by attorneys, all in one place, and all for less than one billable hour per month!</p>";
	quotes[3] = "<p>I've practiced law in a solo/small firm environment for 5 years, designed and built Westlaw databases for 9 years, and marketed legal products to attorneys for 2 years. The companies I worked for couldn't or wouldn't provide what you were asking for, so I built it myself. Quality content, easy technology and an affordable price - Gold Docs was designed for you!<br /> <b><em>Karen Renshaw, President</em></b></p>";
	index = Math.floor(Math.random() * quotes.length);
	document.write(quotes[index]);
}



