// -------------------------------------------
// --- All elements copyright (c) 2003-2005 by
// --- SFW - Stefan Falz Webconsulting
// --- http://www.asp-solutions.de/
// --- 
// --- Unauthorized use is strongly prohibited
// -------------------------------------------

// -------------------------------------------
// --- Definieren der JavaScript Funktionen
// ---
// --- Aufruf erfolgt von allen ASP-Seiten
// --- Erstellt am: 14.02.2005 von SFW (SF)
// -------------------------------------------
// --- Letzte Änderung am : 
// --- Letzte Änderung von: 
// --- Grund              : 
// -------------------------------------------

function SwitchToFullscreen()
    {
    if( document.mPlayer.playState == "3" )
        {
        alert( "Die Anwendung wechselt nun in den Vollbildmodus. Drücken Sie \"ESC\", um zur normalen Anzeige zurückzuwechseln.\n\nThe video now switches to fullscreen mode. With \"ESC\" you can return to the default view." );
        document.mPlayer.fullScreen = 'true';
        }
    }

function ClosePopup()
    {
    self.close();
    }

// function for IE to fix the PNG Problem (optimized version with opera detection)
ns = true;
if(navigator.userAgent.indexOf("Firefox") == -1 && navigator.userAgent.indexOf("Opera") == -1 && navigator.userAgent.indexOf("Netscape") == -1) {
	ns = false;
}

function pngIeTrans() {
	if(!ns) {
	   for(i=0; i<document.images.length; i++)
		  {

			  img = document.images[i];
			  imgName = img.src.toUpperCase();
			  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
				 {
					 imgID = (img.id) ? "id=\'" + img.id + "' " : "";
					 imgClass = (img.className) ? "class='" + img.className + "' " : "";
					 imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
					 imgStyle = (img.style.cssText) ? img.style.cssText + ";" : "";
					 img.outerHTML = "<span " + imgID + imgClass + imgTitle
					 + " style=\"" + imgStyle + " width:" + img.width + "px; height:" + img.height + "px; "
					 + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'" + img.src + "\');\">"
					 + "</span>"; 
					 i = i - 1; // image count reduced by replacement. NB: normal decrement breaks the W3C Validator
				 }
		  }
	}
}

