// this script is credited to the crews at www.neoedo.com and threeoh.com

function initScroll(text,nester) {
    oScroll=new makeScrollObj(text,nester)
}

function makeScrollObj(obj,nest) {
	nest = (!nest) ? '' : 'document.'+nest+'.'										
	this.css = (n) ? eval(nest+'document.'+obj) : eval('document.all.'+obj+'.style')							
	this.scrollHeight = (n) ? this.css.document.height : eval('document.all.'+obj+'.offsetHeight')							
	this.top = rtop
	return this
}

function rtop() {
	return (n) ? eval(this.css.top) : eval(this.css.pixelTop)
}

function jobscroll(speed) {
	var way=speed>0?1:0
	if ((!way && jScroll.top()>-jScroll.scrollHeight+contHeight) || (jScroll.top()<0 && way)) {
		jScroll.css.top=jScroll.top()+speed
		scrollTim=setTimeout("jobscroll("+speed+")",timSpeed)
	}
}

function scroll(speed) {
	var way=speed>0?1:0
	if ((!way && oScroll.top()>-oScroll.scrollHeight+contHeight) || (oScroll.top()<0 && way)) {
		oScroll.css.top=oScroll.top()+speed
		scrollTim=setTimeout("scroll("+speed+")",timSpeed)
	}
}

function noScroll() {
	clearTimeout(scrollTim)
}

var n=document.layers?1:0
var scrspeed=2
var timSpeed=10,contHeight=100,scrollTim,active=0
var jScroll,oScroll

function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL) { //v3.0
  var newURL='', verStr=navigator.appVersion, app=navigator.appName, version = parseFloat(verStr);
  if (app.indexOf('Netscape') != -1) {
    if (version >= NSvers) {if (NSpass>0) newURL=(NSpass==1)?URL:altURL;}
    else {if (NSnoPass>0) newURL=(NSnoPass==1)?URL:altURL;}
  } else if (app.indexOf('Microsoft') != -1) {
    if (version >= IEvers || verStr.indexOf(IEvers) != -1)
     {if (IEpass>0) newURL=(IEpass==1)?URL:altURL;}
    else {if (IEnoPass>0) newURL=(IEnoPass==1)?URL:altURL;}
  } else if (OBpass>0) newURL=(OBpass==1)?URL:altURL;
  if (newURL) { window.location=unescape(newURL); document.MM_returnValue=false; }
}