﻿// File JScript

<!-- hide script from old browsers

  var bIe, bNs6, sNavAppName;
	
	sNavAppName = navigator.appName;
	sNavAppName = sNavAppName.toLowerCase();
	if (sNavAppName.indexOf("internet explorer") > -1) {
		bIe = true;
		bNs6 = false;
	} else {
		bIe = false;
		bNs6 = (document.getElementById && !document.all) ? true : false;
	}
	
	if ((bIe == true) || (bNs6 == true)) {			
		if (screen.width >= 1024) {
		  window.onscroll = positionScrollers;
		}
  }

  function positionScrollers() {
    var oPageScrollLeft, oPageScrollRight, iDocTop, iMarginTop;
		
		iDocTop = 0;
		
		if (bIe == true) {
			oPageScrollLeft = document.all.scrollPageLeft;
			oPageScrollRight = document.all.scrollPageRight;
		} else {
			oPageScrollLeft = document.getElementById("scrollPageLeft");
			oPageScrollRight = document.getElementById("scrollPageRight");
		}
		
		iDocTop = document.body.scrollTop; //document.documentElement.scrollTop;
		iMarginTop = 145;
    
		if (iDocTop > iMarginTop) {
			oPageScrollLeft.style.height = (iDocTop - iMarginTop);
		} else {
			oPageScrollLeft.style.height = 0;
		}
	  
	  oPageScrollRight.style.height = oPageScrollLeft.style.height;
  }
    
//-->

