// JavaScript Document
// Created by DogRiley, 05/18/2006
// This page is used to store common js functions used throughout the site.
// All Dreamweaver js routines will remain in the individual documents.

function fix_height() {
		var minim = 700;
		var x = parseInt(document.getElementById("main").offsetHeight);
		//alert("The height of main is: " + x);
		if (x > minim) {
			document.getElementById("right").style.height = 'auto';
			document.getElementById("left").style.height = 'auto';
			document.getElementById("right").style.height = x + "px";
			document.getElementById("left").style.height = (x-8)  + "px";
		} 
		else{
			document.getElementById("right").style.height = 'auto';
			document.getElementById("left").style.height = 'auto';
			document.getElementById("right").style.height = minim + "px";
			document.getElementById("left").style.height = (minim-8)  + "px";
		}
}

// Dynamic Iframe loader
function loadIframe(theURL) {
	document.getElementById("TMContent").src=theURL;
}

// resizes Iframe according to content
function reSizeMe(obj){ 
	alert("Running");
	//alert(document.getElementById("TMContent").offsetHeight.);
	//docHeight = TMContent.document.body.scrollHeight;
	//obj.style.height = (docHeight + 10) + 'px';
 } 
