// JavaScript Document
/*********************************/
/*Javascript ADDONS*/
/*********************************/

//This creates 3 equal height divs
function sortNum(a,b) { return b-a}
function fixH2(one,two,three) {
if (document.getElementById(one)) {
var obj=new Array(3);
var option=[one,two,three];
for(var i=0; i<option.length; i++) {
document.getElementById(option[i]).style.height="auto";
obj[i]=document.getElementById(option[i]).offsetHeight;
nh=obj.sort(sortNum);
}
nh1=nh.splice(1,2);
for(var i=0; i<option.length; i++) {
document.getElementById(option[i]).style.height=nh+"px";
}
}
}
window.onload=function(){
fixH2('MainMenu','MainContentLeft','MainContentRight');
}
/********************************************************/
//End of Three Equal Height Divs
/********************************************************/


/********************************************************/
/*USE FOR TWO EQUAL HEIGHT DIVS*/
/********************************************************/
/*function fixH(one,two) {
if (document.getElementById(one)) {
var lh=document.getElementById(one).offsetHeight;
var rh=document.getElementById(two).offsetHeight;
var nh = Math.max(lh, rh);
document.getElementById(one).style.height=nh+"px";
document.getElementById(two).style.height=nh+"px";
}
}

window.onload=function(){
fixH('leftcolumn','rightcolumn');

}
*/
/********************************************************/
/*END OF TWO EQUAL HEIGHT DIVS*/
/********************************************************/


//window.onload=function test(){
//document.getElementById("MainMenu").style.backgroundColor="#000000";
//document.getElementById("MainMenu").style.height = document.getElementById("MainContentLeft").style.height;

