function Highlight(on)
{

	el = event.srcElement;
	if (on) {
		el.style.backgroundColor="rgb(255,255,255)";		
		el.style.color="rgb(255,102,0)";
	} else {
		el.style.backgroundColor="rgb(240,240,240)";
		el.style.color="rgb(80,80,80)";
	}

	return true;
}
function resize() { 
       var content = document.getElementById("content"); 
       var htmlheight = document.body.parentNode.scrollheight; 
       var windowheight = 0; 


       if( typeof( window.innerheight ) == 'number' ) {
         //Non-IE                    
          windowheight = window.innerHeight;
       } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
         //IE 6+ in 'standards compliant mode'
          windowheight = document.documentElement.clientHeight;
       } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
         //IE 4 compatible
         windowheight = document.body.clientHeight;
       }

       windowheight = windowheight - 200; // ajust for header and foote heights
       content.style.height = windowheight + "px"; 
} 

function initRollovers() {
	if (!document.getElementById) return

	resize();

	initRolloversTag('input');
	initRolloversTag('img');
}

function initRolloversTag(tag) {
	
	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName(tag);

	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(ftype, '_o'+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('_o'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}

function addLoadEvent(func)
{
        var oldonload = window.onload;
        if (typeof window.onload != 'function'){
        window.onload = func;
        } else {
                window.onload = function(){
                oldonload();
                func();
                }
        }

}


addLoadEvent(initRollovers);
