<!--

/**
* Open a window.
*
* @return true if confirmed, false otherwise
*
* @access public
*/

function cm_openWin(url,nam,w,h,rs,sb) 
{ 
	if (rs == "") rs = "no";
 	if (sb == "") sb = "no";
 
	par = "status=no,resizable=" + rs + ",scrollbars=" + sb + ",width=" + w + ",height=" + h;
  
	cm_win = window.open(url,nam,par);
  
	window.setTimeout("cm_win.focus()",20);
	
	return;
}

/**
*
* Check for Flash Plugin on Startpage with timeline
*
* if no flash is detected, show a jpg 
*
*/

function flJunctBgcolor(classid, width, height, quality, flbgcol, moviesource, imgsource, mapname)
{
	document.write('<OBJECT classid="'+ classid + '"');
	document.write('ID="' + mapname + '" WIDTH="' + width + '" HEIGHT="' + height +'">');
	document.write('<PARAM NAME="movie" VALUE="'+ moviesource + '">');
	document.write('<PARAM NAME="quality" VALUE="' + quality + '">');
	document.write('<PARAM NAME="BGCOLOR" VALUE="' + flbgcol + '">');
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if ( plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-2)) >= 3 ) {
		// Check for Flash version 3 or greater in Netscape
		document.write('<EMBED src="'+ moviesource + '" quality="' + quality +'" bgcolor="' + flbgcol + '" ');
		document.write(' swLiveConnect="FALSE" WIDTH="'+ width + '" HEIGHT="' + height +'"');
		document.write(' TYPE="application/x-shockwave-flash">');
		document.write('</EMBED>');
	} else {
		document.write('<IMG SRC="'+ imgsource +'" WIDTH="' + width +'" HEIGHT="'+ height +'" usemap="#' + mapname +'" BORDER="0">');
	}
	document.write('<NOEMBED><IMG SRC="'+ imgsource +'" WIDTH="' + width +'" HEIGHT="'+ height +'" usemap="#' + mapname +'" BORDER="0"></NOEMBED>');
	document.write('</OBJECT>');
}

/**
* Raise a confirm dialog for given link.
*
* @return true if confirmed, false otherwise
*
* @access public
*/


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		preloadFlag = true;
	}
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function ermittelnhoehe() {

	document.getElementById("footer").style.top = 800+"px";

	var hoehe=0;
	if (typeof(window.innerHeight)=='number') {
	hoehe=window.innerHeight;
	}
	else {
	if (document.documentElement&&
	document.documentElement.clientHeight) {
	hoehe=document.documentElement.clientHeight;
	}
	else {
	if (document.body&&document.body.clientHeight) {
	hoehe=document.body.clientHeight;
	}
	}
	}
		document.getElementById("footer").style.top = hoehe-100+"px";
		}


// -->

