<!--

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 launchFull(url, name, height, width) 

{
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  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 + ",resizable=no,menubar=no,locationbar=no,status=no,scrollbars=yes,screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
  window.open(url, name, str);
}


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) {
		home_over = newImage("images/navi/home_over.gif");
		musik_over = newImage("images/navi/musik_over.gif");
		bio_over = newImage("images/navi/bio_over.gif");
		termine_over = newImage("images/navi/termine_over.gif");
		downloads_over = newImage("images/navi/downloads_over.gif");
		shop_over = newImage("images/navi/shop_over.gif");
		gaeste_over = newImage("images/navi/gaeste_over.gif");
		nl_over = newImage("images/navi/nl_over.gif");
		kontakt_over = newImage("images/navi/kontakt_over.gif");		
		credits_over = newImage("images/navi/credits_over.gif");
		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;
}

// -->
