/*
 * Allgemeine Funktionen
 *
 * Lars Vogel
 * 11-05-2005
 *
 */
 
 
// Fenster absolut positionieren
/*
function getPosition () {
		self.moveTo(100, 100);
}*/

// Fenster in den Vordergrund
function getFocus() {
    window.focus();
    /*window.moveTo(400, 300);*/
}

//Pop-UP Fenster (nicht verwendet)
function popUp(link, name) {
    var w  = 730;
	var h = 200;
	//alert("top="+((screen.height/2)-(h/1.5))+", left="+((screen.width/2)-(+w/2))+"");
 	if (link!=null && name!=null) {
	    window.open(link, name,"resizable=no,scrollbars=yes,locationbar=no,menuebar=no,status=no,height="+h+",width="+w+", top="+((screen.height/2)-(h/1))+", screenY="+((screen.height/2)-(h/1.5))+", left="+((screen.width/2)-(+w/2))+",screenX="+((screen.width/2)-(+w/2)));
		//window.open(link, name,"resizable=no,scrollbars=yes,locationbar=no,menuebar=no,status=no, height="+height+", width="+width+",left="((screen.width/2-(width/2))",top="((screen.height/2)-(height/1.5)));
	} else {
    	// DEBUG
		alert("Link oder Fensternahme fehlt");
	}
}

/* Tabellenzellen einfärben (Übersichtsseiten) */
function getCellOver(element) {

    self.document.getElementById(element).style.backgroundColor="#ffffff";
	self.document.getElementById(element).style.color="#704724";
}
function getCellOut(element) {

    self.document.getElementById(element).style.backgroundColor="transparent";
	self.document.getElementById(element).style.color="#704724";
}

/* Tabellen-Border einfärben Team */
function getElementBorderOver(element) {
//alert("licht an: "+status);
	    //alert("licht an: "+status);
    //self.document.getElementById(element).style.border="1px solid #b01b31";
	self.document.getElementById(element).style.border="1px solid #E8EAEB";
}
function getElementBorderOut(element) {

    self.document.getElementById(element).style.border="1px solid #000000";
}

// Fenster in den Vordergrund
function getFocus() {
	window.focus();
	//window.moveTo(60, 100);
}


// Pop Up Fenster oeffnen
function fenster(link,id,w,h) {
	//window.open(name,id,'width='+w+',height='+h);
	window.open(link, id,"resizable=no,scrollbars=no,locationbar=no,menuebar=no,status=yes,height="+h+",width="+w+", top="+((screen.height/2)-(h/1.5))+", screenY="+((screen.height/2)-(h/1.5))+", left="+((screen.width/2)-(+w/2))+",screenX="+((screen.width/2)-(+w/2)));
}

/**
 * Dreamweaver Flash Detection
 *
 *
 */
 
function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0
  var ok=false; document.MM_returnValue = false;
  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
    ok=(plugins && plugins[plgIn]);
  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
    else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
    else ok=autoGo; }
  if (!ok) theURL=altURL; if (theURL) window.location=theURL;
}

/**
 *  Pop Up Fenster Werbung oeffnen
 *
 *
 */

function windowAd(link,id,w,h) {
	//window.open(name,id,'width='+w+',height='+h);
	window.open(link, id,"resizable=no,scrollbars=no,locationbar=no,menuebar=no,status=no,height="+h+",width="+w+", top="+((screen.height/2)-(h/1.5))+", screenY="+((screen.height/2)-(h/1.5))+", left="+((screen.width/2)-(+w/2))+",screenX="+((screen.width/2)-(+w/2)));
}