




<!--
function GoTop() {
	window.scrollTo(0,0);
}

function GoTop_Call() {
	document.body.ondblclick = Top;	
}

// Banner Scroll
document.writeln('<div id="gotop" style="Z-INDEX: 1; LEFT: 10px; TOP: 400px; WIDTH: 17px; HEIGHT: 39px; POSITION: absolute; visibility: visible;"><a href="javascript:GoTop();"  onFocus="this.blur()"><img id="sidelogo" src="/moby/cms/images/sidelogo.gif" width="34" height="185" border="0" class="sidelogo"></a></div>');


var bFirefox1plus = false;
var bNetscape4plus = false;
var bExplorer4plus = false;
if (navigator.userAgent.indexOf("Firefox") != -1) {
	var versionIndex = navigator.userAgent.indexOf("Firefox") + 8;
	if (parseInt(navigator.userAgent.charAt(versionIndex)) >= 1)
		bFirefox1plus = true;
}
else {
	bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
	bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
}

function CheckUIElements() {
        var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

        if ( bNetscape4plus || bFirefox1plus ) {

		var tempStr = document.getElementById("gotop").style.top;
                yMenuFrom   = tempStr.substring(0, tempStr.length-2);
                
                if (document.getElementById("maintable") != null) {
                  var sideimageheight = document.getElementById("maintable").scrollHeight;
                  var winHeight = window.pageYOffset + window.innerHeight;
                  if (sideimageheight < winHeight ) {
                    yMenuTo = sideimageheight - document.getElementById("sidelogo").height - 30;   // position of the image from top is determine by getting the height of the side nav subtract height of the image
                  }
                  else {
                    yMenuTo = winHeight - document.getElementById("sidelogo").height - 14;   // position of the image from top is determine by getting the height of the window subtract height of the image
                    
                  }
                } 
                else {
                  yMenuTo = window.pageYOffset + window.innerHeight - document.getElementById("sidelogo").height - 14;   // position of the image from top is determine by getting the height of the window subtract height of the image
                }

        }
        else if ( bExplorer4plus ) {
	        
	        var sidelogoID = document.getElementById("sidelogo");
                yMenuFrom   = parseInt (gotop.style.top, 10);

                if (document.getElementById("maintable") != null) {
                  var sideimageheight = document.getElementById("maintable").scrollHeight;
                  var winHeight = document.body.scrollTop + document.body.clientHeight ;
                  if (sideimageheight < winHeight ) {
                    yMenuTo = sideimageheight - sidelogoID.height + 10 ;   // position of the image from top is determine by getting the height of the side nav subtract height of the image
                  }
                  else {
                    yMenuTo = winHeight - sidelogoID.height + 10;   // position of the image from top is determine by getting the height of the window subtract height of the image
                  }
                } 
                else {
		  yMenuTo = document.body.scrollTop + document.body.clientHeight - sidelogoID.height + 10;  // position of the image from top is determine by getting the height of the window subtract height of the image
                }

	}

        timeoutNextCheck = 10;

        if ( yMenuFrom != yMenuTo ) {
                yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 5 );
                if ( yMenuTo < yMenuFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus || bFirefox1plus ) {
			var finalTopVal;
			var tempStr = document.getElementById("gotop").style.top;
			if (yOffset < 0)
				finalTopVal = parseInt(tempStr.substring(0, tempStr.length-2)) + yOffset + 1;
			else if (yOffset > 0)
				finalTopVal = parseInt(tempStr.substring(0, tempStr.length-2)) + yOffset - 1;
			else if (yOffset == 0)
				finalTopVal = parseInt(tempStr.substring(0, tempStr.length-2)) + yOffset;
			document.getElementById("gotop").style.top = finalTopVal + "px";
                }
		else if ( bExplorer4plus ) {
                        gotop.style.top = parseInt (gotop.style.top, 10) + yOffset;
		}

                timeoutNextCheck = 10;
        }

        setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function OnLoad()
{
        CheckUIElements();
        return true;
}

OnLoad();
//-->