function getScrollY() { var scrOfY = 0; if( typeof( window.pageYOffset ) == 'number' ) { //Netscape compliant scrOfY = window.pageYOffset; } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { //DOM compliant scrOfY = document.body.scrollTop; } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) { //IE6 standards compliant mode scrOfY = document.documentElement.scrollTop; } return scrOfY; } function add_scrollheight(what) { var lnk=what.href; //alert(document.documentElement.scrollTop); if(lnk.indexOf("?")<0) { lnk+='?st='+getScrollY(); } else { lnk+='&st='+getScrollY(); } what.href=lnk; return true; } function printPage() { if (window.print) window.print() else alert("Sorry, your browser doesn't support this feature."); } //Specify speed of scroll. Larger=faster (ie: 5) var scrollspeed=cache=1; var thelength; function initialize() { //newsObj = document.getElementById("news"); //newsObj.style.top = '0px'; //thelength = newsObj.offsetHeight; //scrolltest(); } function scrolltest() { newsObj.style.top = parseInt(newsObj.style.top) - scrollspeed + 'px'; if (parseInt(newsObj.style.top) < thelength * (-1)) { newsObj.style.top = 178 + 'px'; } setTimeout("scrolltest()",50); } cookieArr = new Array(); var menuActive = null; var menuOpen = null; function init() { preloadImages(); initialize();initialize2(); } function toggleMenu(id,obj) { obj.blur(); if (menuOpen != null) { document.getElementById(menuOpen).style.display = 'none'; } if (menuActive != 'subnav'+id) { menuOpen = 'subnav'+id; } if (document.getElementById('subnav'+id).style.display == 'none') { document.getElementById('subnav'+id).style.display = 'block'; } else { document.getElementById('subnav'+id).style.display = 'none'; } return false; } /* short generic onload by Brothercake */ if(typeof window.addEventListener != 'undefined') { window.addEventListener('load', init, false); } else if(typeof document.addEventListener != 'undefined') { document.addEventListener('load', init, false); } else if(typeof window.attachEvent != 'undefined') { window.attachEvent('onload', init); }