<!--
working = false;
function getPageSizeWithScroll(){
	if (window.innerHeight && window.scrollMaxY) {// Firefox
		yWithScroll = window.innerHeight + window.scrollMaxY;
		xWithScroll = window.innerWidth + window.scrollMaxX;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		yWithScroll = document.body.scrollHeight;
		xWithScroll = document.body.scrollWidth;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		yWithScroll = document.body.offsetHeight;
		xWithScroll = document.body.offsetWidth;
  	}
	arrayPageSizeWithScroll = new Array(xWithScroll,yWithScroll);
	//alert( 'The height is ' + yWithScroll + ' and the width is ' + xWithScroll );
	return arrayPageSizeWithScroll;
}

function fadR(ID,from,to) {
	if (working == true) { return false; } 
	working = true; 
	var Obj = document.getElementById(ID);

	var from = ((!isNaN(from)) ? from : 0);
	var to = ((!isNaN(to)) ? to : 10);

	setOpacity(Obj,from);
	
	Obj.style.display = 'block';
	
	document.getElementById('transBG').style.display = 'block';
	
	if (from < to) {
		for (var i=(from+1); i<=(to); i++) {
			var i = (i);
			setTimeout("setOpacity(document.getElementById('" + ID + "')," + i + ");",50*i);
		}
	}
	else if (from > to) {
		for (var i=(from-1); i>=(to); i--) {
			var i = (i);
			setTimeout("setOpacity(document.getElementById('" + ID + "')," + i + ");",50*(from-i));
		}
	}
	setTimeout("working = false;",1000);
	if (to == 0) { setTimeout("document.getElementById('" + ID + "').style.display = 'none';",1000); setTimeout("document.getElementById('transBG').style.display = 'none';",500); }
	
}
function setOpacity(Obj,value) {
	Obj.style.opacity = value/10;
	Obj.style.filter = 'alpha(opacity=' + value*10 + ')';
}
-->
