<!--

function popUp(url, name, height, width)

{
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  str += ",scrollbars=yes";
  if (window.screen)
  {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;

    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;

    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
  var name = window.open(url, name, str);
}

/**
* 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 confirmLink(text,link)	{
	
	if (confirm(text)) {
		this.document.location.href = link;
		return 1;
	}
}


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) {
		pakete_over = newImage("../images/topnavi/pakete_over.gif");
		preisrechner_over = newImage("../images/topnavi/preisrechner_over.gif");
		kontakt_over = newImage("../images/topnavi/kontakt_over.gif");
		preloadFlag = true;
	}
}

// -->
