function initRollovers() {
if (!document.getElementById) return

var aPreLoad = new Array();
var sTempSrc;
var aImages = document.getElementsByTagName('img');

for (var i = 0; i < aImages.length; i++) { 
if (aImages[i].className == 'imgover') {
var src = aImages[i].getAttribute('src');
var ftype = src.substring(src.lastIndexOf('.'), src.length);
var hsrc = src.replace('_off'+ftype, '_on'+ftype);

aImages[i].setAttribute('hsrc', hsrc);

aPreLoad[i] = new Image();
aPreLoad[i].src = hsrc;

aImages[i].onmouseover = function() {
sTempSrc = this.getAttribute('src');
this.setAttribute('src', this.getAttribute('hsrc'));
} 

aImages[i].onmouseout = function() {
if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_on'+ftype, '_off'+ftype);
this.setAttribute('src', sTempSrc);
}
}
}
}


function changeFullScreen()
{
//alert(document.getElementById("outline").style.width) ;
document.getElementById("outline").style.maxWidth='100%';
document.getElementById("outline").style.width='100%';

setCookie('crozier', "100%");


}

function change1000Screen()
{
//alert(document.getElementById("outline").style.width) ;
document.getElementById("outline").style.maxWidth='1000px';
if(document.body.clientWidth > 1000)
  {
document.getElementById("outline").style.width='1000px';
setCookie('crozier', "1000");
  }
  else
  {
document.getElementById("outline").style.width='auto';
setCookie('crozier', "auto");
  }

}

function change800Screen()
{
//alert(document.getElementById("outline").style.width) ;
document.getElementById("outline").style.maxWidth='800px';
if(document.body.clientWidth > 800)
  {
document.getElementById("outline").style.width='800px';
setCookie('crozier', "800");
  }
  else
  {
document.getElementById("outline").style.width='auto';
setCookie('crozier', "auto");
  }

}





function setWidth()
{
var theValue = getCookie('crozier');
	if(theValue!=null)
	{
	if(theValue=='100%')
		{
		changeFullScreen(); 
		}

	if(theValue=='1000')
		{
		change1000Screen(); 
		}
	if(theValue=='800')
		{
		change800Screen(); 
		}
	}


}


function initialize()
{
setWidth();
initRollovers(); 
SLIDE_start();
}




// begin menu functions
var cm=null;
//document.onclick = new Function("show(null)")
function getPos(el,sProp) {
	var iPos = 0
	while (el!=null) {
		iPos+=el["offset" + sProp]
		el = el.offsetParent
	}
	return iPos

}

function show(el,m) {
	if (m) {
		m.style.display='';
		m.style.pixelLeft = getPos(el,"Left")
		m.style.pixelTop = getPos(el,"Top") + el.offsetHeight
	}
	if ((m!=cm) && (cm)) cm.style.display='none'
	cm=m
}


function hideCheck(what, event) // requires onmouseenterleave functions (above)
{
if (checkMouseLeave(what, event)) 
	{
	hide();
	}
}


function hide()
{
if(cm != null)
	{
	cm.style.display='none'
	}
}



// end menu functions

