
//function DocumentOnLoad() {
//   PreloadImages(
//	'http://www.denvercooperativepreschool.org/image/homeover.gif',
//	'http://www.denvercooperativepreschool.org/image/exploreover.gif',
//	'http://www.denvercooperativepreschool.org/image/registerover.gif',
//	'http://www.denvercooperativepreschool.org/image/participateover.gif',
//	'http://www.denvercooperativepreschool.org/image/contactover.gif',
//	'http://www.denvercooperativepreschool.org/image/editover.gif',
//	'http://www.denvercooperativepreschool.org/image/deletebuttonover.gif',
//	'http://www.denvercooperativepreschool.org/image/newover.gif';
//	)
//}

function HideRolloverImage() {
   if (document.originalImages != null)
      for(var i=0;i < (document.originalImages.length-1);i+=2)
         document.originalImages[i].src = document.originalImages[i+1];
}

function ShowRolloverImage() {
   var i,j=0,objStr,obj,imgList=new Array,oldList=document.originalImages;
   for (i=0;i < (ShowRolloverImage.arguments.length-2);i+=3) {
      objStr = ShowRolloverImage.arguments[(navigator.appName=='Netscape')?i:i+1];
      if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
          (objStr.indexOf('document.all[')==0 && document.all==null))
         objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
      obj = eval(objStr);
      if (obj != null) {
         imgList[j++] = obj;
         imgList[j++] = (oldList==null || oldList[j-1]!=obj)?obj.src:oldList[j];
         obj.src = ShowRolloverImage.arguments[i+2];
      }
   }
   document.originalImages = imgList;
}

function PreloadImages() {
   if (document.images){
      var imgFiles = PreloadImages.arguments;
      if (document.preloadArray==null) document.preloadArray = new Array();
      var i = document.preloadArray.length;
      with (document) for (var j=0;j < imgFiles.length;j++)
         if (imgFiles[j].charAt(0) != "#"){
            preloadArray[i] = new Image;
            preloadArray[i++].src = imgFiles[j];
         }
   }
}

var popupWindow=null;
function popup(mypage,myname,w,h,pos,infocus){
	if (pos == 'random')
	{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
	else
	{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
	settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';popupWindow=window.open('',myname,settings);
	if(infocus=='front'){popupWindow.focus();popupWindow.location=mypage;}
	if(infocus=='back'){popupWindow.blur();popupWindow.location=mypage;popupWindow.blur();}
}

//function openHandbook() {
//	window.open('docs/Handbook.pdf','Handbook','location=no,toolbar=no,status=no,menubar=no');
//}

