var xMax;
var yMax;
var mar;
if (window.innerHeight)
	{
	xMax = window.innerWidth+window.pageXOffset;
	yMax = window.innerHeight+window.pageYOffset;
	}
else 
	{
	xMax = (document.body.clientWidth+document.body.scrollLeft);
	yMax = (document.body.clientHeight+document.body.scrollTop);
	}
yMax = yMax-topH;
mar = (xMax - pageWidth)/2;
var marBar= mar + barleft;
var marBox= mar + boxleft;
var marContent = mar + contentleft;
var contentWidth = xMax-marContent-mar;
document.write('<div style="width:' + pageWidth + 'px; height:' + divH + '%; background:white url(images/paper2.jpg) repeat top left fixed; position:absolute; top:0px; left:' + mar + 'px; z-index:30; "><br></div>');

if (screen.width >1020) {

/*Make Drop Shadow - if IE use gradrient property of Alpha property
Otherwise - make 10 divs of greater opacity and lesser height overlayed on top of each other*/
if (checkIt('msie') && checkIt('win')){
  document.write('<div style="top:0px; left:' + eval(mar + 8) + 'px; position:absolute; width:' + pageWidth + 'px; height:' + divH + '%; padding:0px; background:#333333; z-index:1; filter:progid:DXImageTransform.Microsoft.Alpha( Opacity=80, FinishOpacity=0, Style=1, StartX=99,  FinishX=100, StartY=0, FinishY=0);"><br></div>');
}
else {
  if (!(checkIt('msie') && checkIt('mac'))){
    for(n=1; n <= 10; n++){
      document.write('<div style="top:0px; left:' + mar + 'px; position:absolute; height:' + divH + '%; filter:alpha(opacity=' + eval(2*n) + '); -moz-opacity:' + eval(.02*n) + '; opacity:' + eval(.02*n) + ';  width:' + eval(pageWidth+10-n) + 'px; padding:0px; background:#333333; z-index:' + eval(1+n) + ';"><br></div>');
    }
  }
}


}

document.write('<div id = "topbar" style="width:' + pageWidth + 'px;left:' + mar + 'px;">'
+ '<div style="position:absolute; left:' + eval(barleft + barW + 5) + 'px"><img src="images/' + hornellcityschools + '.gif" border=0 vspace=4></div></div>');

function makeBoxShadow(thing) {
/*Make Drop Shadow - if IE use gradrient property of Alpha property
Otherwise - make 10 divs of greater opacity and lesser height overlayed on top of each other*/
var boxX;
var boxY;
var boxW;
var boxH;
	if (!DHTML) return;
	var x = new getObj(thing);
	boxX = x.style.left;
	boxH = x.style.height;
	boxY = x.style.top;
	boxW = x.style.width;
alert(boxX);
alert(boxY);
alert(boxW);
alert(boxH);

//if (checkIt('msie') && checkIt('win')){
//  document.write('<div style="top:0px; left:' + eval(mar + 8) + 'px; position:absolute; width:' + pageWidth + 'px; height:' + divH + '%; padding:0px; background:#333333; z-index:1; filter:progid:DXImageTransform.Microsoft.Alpha( Opacity=80, FinishOpacity=0, Style=1, StartX=99,  FinishX=100, StartY=0, FinishY=0);"><br></div>');
//}
//else {
//  if (!(checkIt('msie') && checkIt('mac'))){
//    for(n=1; n <= 10; n++){
//      document.write('<div style="top:0px; left:' + mar + 'px; position:absolute; height:' + divH + '%; filter:alpha(opacity=' + eval(2*n) + '); -moz-opacity:' + eval(.02*n) + '; opacity:' + eval(.02*n) + ';  width:' + eval(pageWidth+10-n) + 'px; padding:0px; background:#333333; z-index:' + eval(1+n) + ';"><br></div>');
//    }
//  }
//}


}