﻿/// <reference path="jquery-1.6.2-vsdoc.js" />
/// <reference path="jquery-1.6.2.js" />
/// <reference path="jquery-ui-1.8.14.js" />

$(function () {
	var divMain = $("#main");
	var divNav = $("#nav");

	function MatchHeights() {
		var height = 0;
		if (divMain.height() > height) {
			height = divMain.height();
		}
		if (divNav.height() > height) {
			height = divNav.height();
		}
		divMain.height(height);
		divNav.height(height);
	};

	function MatchHeightsSleeper() {
		setTimeout(MatchHeights, 500);
	};

	MatchHeightsSleeper();
});
