﻿
// ******* RotoZip Javascript Globals ******* //

// --------> matchHeight - make sure the content body matches the nav's height

function matchHeight() {  
	var L=parseInt(document.getElementById('rz_global_bodyA').offsetHeight);	var R=parseInt(document.getElementById('rz_global_nav').offsetHeight);    
    var maxHeight = Math.max(L,R);
       //alert(maxHeight);
       if (maxHeight<400) {
            //maxHeight=756 + "px";
            document.getElementById('rz_global_nav').style.height= 460 + "px";
            document.getElementById('rz_global_bodyA').style.height= 460 + "px";
        }
        else {
            document.getElementById('rz_global_bodyA').style.height= maxHeight + "px";
            document.getElementById('rz_global_nav').style.height= maxHeight + "px";
        }            	     }

// --------> matchHeightMain - Home page height settings...function matchHeightMain() { 
	var b=parseInt(document.getElementById('rz_home_body').offsetHeight);	var n=parseInt(document.getElementById('rz_global_nav_HOME').offsetHeight);     var maxHeightM = Math.max(b,n);

       document.getElementById('rz_home_body').style.height= maxHeightM + "px";
       document.getElementById('rz_global_nav_HOME').style.height= maxHeightM + "px";

}

function addImageMap(item, map) 
{
    document.getElementById(item).setAttribute("usemap", map);
}