
 function eqBord() {

	 ls = document.getElementById("left-shadow");
	 
	 /*
	 if (document.getElementById("smrightcolumn")) {							 
	 	rmn = document.getElementById("smrightcolumn");
	 }
	 else {
		rmn = document.getElementById("smleftcolumn");
	 }
	 */
	 ms = document.getElementById("main-inner");						 
	 //lmn = document.getElementById("smleftcolumn");
	 rs = document.getElementById("right-shadow");

	 if (ms.offsetHeight) {
		msh = ms.offsetHeight;
	 }
	 else if (rmn.style.pixelHeight) {
		msh = ms.style.pixelHeight;
	 }
	
	 ls.style.height=msh+"px";
	 rs.style.height=msh+"px";

  }
  
  function getMax(a,b) {
	  if (a>=b) return a;
	  else return b;
  }
  
  function rOI(iid,isrc) {
	  document.getElementById(iid).src=isrc; 
  }
  
  function getWidth() {
	wWidth=0;
	if( typeof(window.innerWidth) == 'number' ) {
		wWidth = window.innerWidth;
	}
	else if( document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			wWidth = document.documentElement.clientWidth;
	} 
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		wWidth = document.body.clientWidth;
	}	
	return wWidth;
	
}

function getHeight() {
    var D = document;
    return Math.max(
        Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
        Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
        Math.max(D.body.clientHeight, D.documentElement.clientHeight)
    );
}


function getScrollY() {
  var scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    scrOfY = window.pageYOffset;
  } 
  else if ( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    scrOfY = document.body.scrollTop;
  } 
  else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    scrOfY = document.documentElement.scrollTop;
  }
  return scrOfY;	
}


function showModal(dI,iimg,ialt,icaption) {
	 dIo=document.getElementById(dI);
     dIo.style.display = "block";
	 document.getElementById("modal").style.height=getHeight()+"px";
	 document.getElementById("modalbackground").style.height=getHeight()+"px";
	 document.getElementById("modalbox").style.top = getScrollY()+25+"px";
	 document.getElementById("modalbox").style.left=Math.round((getWidth()-630)/2)+"px";
	 //window.onscroll = function () { document.getElementById("modalbox").style.top = getScrollY()+25+"px"; };
	 document.getElementById("modalimage").src=iimg;
	 document.getElementById("modalimage").alt=ialt;
	 if (icaption && icaption != "") {
		 document.getElementById("modallayer").style.height="550px";
		 document.getElementById("modalcaption").style.display="block";
		 document.getElementById("modalcaption").innerHTML=icaption; 
	 }
	 else {
		 document.getElementById("modalcaption").innerHTML="&nbsp;";
		 document.getElementById("modalcaption").style.display="none";
		 document.getElementById("modallayer").style.height="512px";
	 }
}

function show_hide_deps(obj,value,eid) {
	v=obj.value; 
	if (v == value || (v == '' && value == '!Urms!NaN!')) 
		document.getElementById(eid).className="showcms"; 
	else 
		document.getElementById(eid).className="hidecms"; 
}

function hideModal(dI) {
	 document.getElementById(dI).style.display = "none";
}
  
  window.onload=function() {
  	  eqBord();
  }
