//<![CDATA[
// ===
var BlendCount, BlendAct;
function FullSize(Picture, PicHeight) {
		if(BlendAct != 1) {
		ScrollPosition();
		ScrnY();
		var Border = 10;
		YOffset = parseInt((ScrnHeight / 2 - PicHeight / 2) - Border);
		var PicTop = ScrollPosY + YOffset;
		document.getElementById("SCR").style.display	= "block";
		document.getElementById("SCRIMG").style.top		= PicTop + "px";
		document.getElementById("SCRIMG").src = Picture;
		BlendCount = 0;
		BlendAct = 1;
		StartOn();}
	else {
		BlendCount = 100;
		BlendAct = 2;
		StartOff();}
}
function PictureOff() {
	if(BlendCount == 0) BlendCount = 100;
	BlendAct = 2;
	StartOff();
}
function StartOff() {
	BlendCount = BlendCount - 10;
	if(BlendCount > 1) {
		SetOpacity('SCRIMG', BlendCount);
		window.setTimeout("StartOff()", 30)
	}
	else {
		BlendAct = 0;
		document.getElementById("SCR").style.display = "none";
		document.getElementById("SCRIMG").src = "images/blank.gif";
	}
}
function StartOn() {
	if(BlendAct == 1) {
		BlendCount = BlendCount + 10;
		if(BlendCount < 101) {
			SetOpacity('SCRIMG', BlendCount);
			window.setTimeout("StartOn()", 30)
		}
	}
}
// ===
function SetOpacity(objId, opacity) {
	obj = document.getElementById(objId);
	opacity = (opacity == 100)?99.999:opacity;
	obj.style.filter = "alpha(opacity:"+opacity+")";
	obj.style.KHTMLOpacity = opacity/100;
	obj.style.MozOpacity = opacity/100;
	obj.style.opacity = opacity/100;
}
// ===
var ScrnHeight;
function ScrnY() {
	if (self.innerHeight) {
		ScrnHeight = self.innerHeight;}
	else if (document.documentElement && document.documentElement.clientHeight) {
		ScrnHeight = document.documentElement.clientHeight;}
	else if (document.body) {
		ScrnHeight = document.body.clientHeight;}
}
// ===
var ScrollPosY;
function ScrollPosition() {
	if (typeof window.pageYOffset != 'undefined') {
		ScrollPosY = window.pageYOffset;
	}
	else if (typeof document.compatMode != 'undefined' &&
		document.compatMode != 'BackCompat') {
		ScrollPosY = document.documentElement.scrollTop;
	}
	else if (typeof document.body != 'undefined') {
		ScrollPosY = document.body.scrollTop;
	}
}
//]]>
