//<![CDATA[
var BlendCount, BlendAct;
function FullSize(Picture, PicHeight) {
	ScrollPosition();
	ScrnY();
	var Border = 10;
	YOffset = ((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;
	if(BlendAct != 1) {
		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;
	}
}
// Button ===
	function CloseOn() {document.getElementById("Close").src = "images/CloseOn.jpg";}
	function CloseOv() {document.getElementById("Close").src = "images/CloseOv.jpg";}
	function CloseOf() {document.getElementById("Close").src = "images/Close.jpg";}
	function DBOv() {document.getElementById("DB").src = "images/DBckOv.jpg";}
	function DFOv() {document.getElementById("DF").src = "images/DFwdOv.jpg";}
	function GBOv() {document.getElementById("GB").src = "images/GBckOv.jpg";}
	function GFOv() {document.getElementById("GF").src = "images/GFwdOv.jpg";}
// ===
	var MovieName;	// FlashName & BildName ohne Extension
	var Breite;			// Breite in PX
	var Hoehe;			// Höhe in PX
	var Loop;				// True oder False für Loop
	var GoOn;				// True oder False für Play
	
	function InsertSampleMovie(MovieName, Breite, Hoehe, Loop, GoOn) {
		window.document.write('<object type="application/x-shockwave-flash" data="images/' + MovieName + '.swf" width="' + Breite + '" height="' + Hoehe + '">\n');
		window.document.write('<param name="movie" value="images/' + MovieName + '.swf" />\n');
		window.document.write('<param name="play" value="' + GoOn + '" />\n');
		window.document.write('<param name="menu" value="false" />\n');
		window.document.write('<param name="loop" value="' + Loop + '" />\n');
		window.document.write('<param name="quality" value="high" />\n');
		window.document.write('&nbsp;');
		window.document.write('</object>\n');
	}
//]]>