<!-- /* BLOCK ERROR */

function blockError(){return true;}
window.onerror = blockError;


/*********************End Switch Content**************************/

/****************************************** go to top **********************************/

function GoTop() {
	window.scrollTo(0,0);
}

function GoTop_Call() {
	document.body.ondblclick = Top;	
}


var Xpos = 0;
var Ypos = 0;
var Ygravity = 0.79;
var scrollPos = 0;
var oldScrollPos = 0;
var top_temp=0;

function FloatMenu() {
docWidth = document.body.clientWidth; // Update document width
docHeight = document.body.clientHeight; // Update document height
oldScrollPos = scrollPos;
scrollPos = document.body.scrollTop; // Update scrollbar position

//Xpos = 905;
//Xpos = (docWidth - document.getElementById("floater").offsetWidth) - 10; 
Xpos = (docWidth / 2) + 355; 
Yboundary = ((scrollPos + docHeight) - document.getElementById("floater").offsetHeight) - 80; 

if (document.getElementById("floater").offsetTop < Yboundary - 1) // Object is behind boundary
Ypos += 2;

if (document.getElementById("floater").offsetTop > Yboundary + 1) // Object is past boundary
Ypos -= 1;

Ypos *= Ygravity; // Slow object down

document.getElementById("floater").style.left = Xpos;
//document.getElementById("floater").style.top += Ypos; // Make object bounce
top_temp = document.getElementById("floater").offsetTop;
top_temp += Ypos;
document.getElementById("floater").style.top = top_temp;
}

window.setInterval("FloatMenu()", 1); 

/****************************************** go to top end **********************************/


function displayStatusMsg(msgStr)  { //v3.0
	status=msgStr; document.MM_returnValue = true;
}



function open_window(pict, hieg, wed, windw) {
	var window_chrome = windw + ",height=" + hieg + ",width=" + wed
	window.open(pict, "", window_chrome)
}

// -->

