function noop_c3() {}

function switchrow(n) {
	myref = document.all ? document.all['row' + n] : document.getElementById('row' + n);
	myref.style.display = myref.style.display == 'none' ? (document.all ? 'block' : 'table-row') : 'none';

	document.cookie = 'switchrow_' + n + '=' + myref.style.display;
}

function getScrollTop() {
	var scrollTop = 0;

	if (window.pageYOffset) {
		scrollTop = window.pageYOffset;
	}
	else if (window.document.documentElement && window.document.documentElement.scrollTop) {
		scrollTop = window.document.body.scrollTop;
	}
	else if (window.document.body) {
		scrollTop = window.document.body.scrollTop;
	}

	return scrollTop;
}

function getPosX(obj) {
	var curleft = 0;

	if (obj.offsetParent) {
		while (obj.offsetParent) {
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;

	return curleft;
}

function getPosY(obj) {
	var curtop = 0;

	if (obj.offsetParent) {
		while (obj.offsetParent) {
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;

	return curtop;
}

function getWindowHeight() {
	var myHeight = 0;

	if (document.body && document.body.clientHeight) {
		//IE 4 compatible
		myHeight = document.body.clientHeight;
	}
	else if (typeof(window.innerHeigth) == 'number') {
		//Non-IE
		myHeight = window.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight) {
		//IE 6+ in 'standards compliant mode'
		myHeight = document.documentElement.clientHeight;
	}

	return myHeight;
}

function getWindowWidth() {
	var myWidth = 0;

	if (document.body && document.body.clientWidth) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
	}
	else if (typeof(window.innerWidth) == 'number') {
		//Non-IE
		myWidth = window.innerWidth;
	}
	else if (document.documentElement && document.documentElement.clientWidth) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
	}

	return myWidth;
}

function getPageWidth() {
	var x,y;
	var test1 = document.body.scrollHeight;
	var test2 = document.body.offsetHeight
	if (test1 > test2) // all but Explorer Mac
	{
		x = document.body.scrollWidth;
		y = document.body.scrollHeight;
	}
	else // Explorer Mac;
	     //would also work in Explorer 6 Strict, Mozilla and Safari
	{
		x = document.body.offsetWidth;
		y = document.body.offsetHeight;
	}
	return x;
}

function getPageHeight() {
	var x,y;
	var test1 = document.body.scrollHeight;
	var test2 = document.body.offsetHeight
	if (test1 > test2) // all but Explorer Mac
	{
		x = document.body.scrollWidth;
		y = document.body.scrollHeight;
	}
	else // Explorer Mac;
	     //would also work in Explorer 6 Strict, Mozilla and Safari
	{
		x = document.body.offsetWidth;
		y = document.body.offsetHeight;
	}
	return y;
}