//window.moveTo(0,0);
//window.resizeTo(screen.width,screen.height);

var NS4 = (document.layers) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;
var V6 = (document.getElementById) ? 1 : 0;

//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed=2;
//configure background color:
var marqueebgcolor="";
//Pause marquee onMousever (0=no. 1=yes)?
var pauseit=1;
if(dir ==  null) var dir = "";

if (screen.width<1024)
{ 
document.write("<link rel='STYLESHEET' href='8001.css' type='text/css'>");
var pageWidth = 800;
var barleft = 60;
var boxleft = 5;
var contentleft = 175;
//var menuWidth = 140;
//var menuName = 80;
var divH =100;
var rightBoxW=180;
var topImage="toppaper";
var hornellcityschools = "hornellcityschools2";
var marqueewidth=380;
var marqueeheight=25;
var barW=40;
var topH = 98;
var staffhspace=10;
var staffpicwidth=80;
}

else 
{
document.write("<link rel='STYLESHEET' href='10241.css' type='text/css'>");
var pageWidth = 1024;
var barleft = 75;
var boxleft = 10;
var contentleft = 220;
var menuWidth = 140;
var menuName = 80;
var divH =100;
var rightBoxW=250;
var topImage="toppaper";
var hornellcityschools = "hornellcityschools1";
var marqueewidth=490;
var marqueeheight=35;
var barW=60;
var topH = 118;
var staffhspace=40;
var staffpicwidth=120;
}


function flexcroll() {
if (typeof document.body.style.scrollbarFaceColor == 'undefined') {
//	if (window.innerHeight) {
	    CSBfleXcroll('content');
	}
}
	   
	   
var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "IE"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "An unknown browser";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "an unknown operating system";
}
	 
function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}



var show=0;
var DHTML = (document.getElementById || document.all || document.layers);
function showMenu(Menu) {
    show=1;
	if (!DHTML) return;
	var x = new getObj(Menu);
	x.style.visibility = 'visible';
}

function hideMenu(Menu) {
    show=0;
	setTimeout('reallyhideMenu(\''+Menu+'\')', 800);
}

function reallyhideMenu(Menu) {
  if (show==0) {
	if (!DHTML) return;
	var x = new getObj(Menu);
	x.style.visibility = 'hidden';
  }
}
function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}