var flash = false;
var movieUrl = "empty.swf"; 
var hdl01 = "";
var hdl02 = "";
var pic = "";


function mover(cell,color){
cell.style.background=color;
}
// mouse out of cell
function mout(cell,color){
cell.style.background=color;
}

function hl_pn(hobj)
{
   pn = document.getElementById("np_wz");
   pn.style["color"]="#4b444a";
   pn = document.getElementById("np_ez");
   pn.style["color"]="#4b444a";
   pn = document.getElementById("np_ba");
   pn.style["color"]="#4b444a";
   pn = document.getElementById("np_sz");
   pn.style["color"]="#4b444a";
   pn = document.getElementById("np_gz");
   pn.style["color"]="#4b444a";
   pn = document.getElementById("np_fl");
   pn.style["color"]="#4b444a";
   pn = document.getElementById("np_bz");
   pn.style["color"]="#4b444a";
   pn = document.getElementById("np_ku");
   pn.style["color"]="#4b444a";
            
   pn = document.getElementById(hobj);
   pn.style["color"]="#734b21";
}



function clean() {

MM_swapImgRestore();

};


/*function writeFlash() {

document.writeln('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"620\" height=\"250\">');
document.writeln('<param name=\"movie\" value=\"' + movieUrl +'\">');
document.writeln('<param name=\"quality\" value=\"high\">');
document.writeln('<param name=\"menu\" value=\"false\">');
document.writeln('<embed src=\"' + movieUrl +'\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"620\" height=\"250\"></embed>');
document.writeln('</object>');
}

function writeHTML() {

document.writeln('<table width=\"619\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>');
document.writeln('<td><img src=\"' + hdl01 + '\" alt=\"COLUMBUS\" width=\"437\" height=\"70\"></td>');
document.writeln('<td rowspan=\"2\"><img src=\"' + pic + '\" alt=\"COLUMBUS-Detail\" width=\"182\" height=\"250\"></td>');
document.writeln('</tr><tr>');
document.writeln('<td><img src=\"' + hdl02 + '\" width=\"437\" height=\"180\"></td>');
document.writeln('</tr></table>');
}*/




//Macromedia

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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 MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function tmt_findObj(n){
	var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
	x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
	}else{x=document.getElementById(n)}return x;
}

function MM_showHideLayers() { //v3.0A Modified by Al Sparber and Massimo Foti for NN6 Compatibility
  var i,p,v,obj,args=MM_showHideLayers.arguments;if(document.getElementById){
   for (i=0; i<(args.length-2); i+=3){ obj=tmt_findObj(args[i]);v=args[i+2];
   v=(v=='show')?'visible':(v='hide')?'hidden':v;
   if(obj)obj.style.visibility=v;}} else{
  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_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}


//druck start
function drucken() {
			if (window.print) {
            window.print() ;  
                              } else {
                                      var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
                                      document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    			 					 WebBrowser1.ExecWB(6, 2);
    								 WebBrowser1.outerHTML = "";  
                                      }
		            }


function autoPopUp (url)
{

if (screen.height <= 767) {
     var width = '756'; 
	 var height = '590';  }

/// war schon vorher auskommentiert
/* else if (screen.height > 600) {
     var width = '756'; 
	 var height = '590';  }	*/ 
	 
// Ende Auskommentierung


else if (screen.height >= 768) {
     var width = '756'; 
	 var height = '680';  }
                      								
else {
    var width = '756';
	var height = '680';}

fenster(url,'grundrisse', width, height,'scrollbars=yes, menubar=no, resizeable=no, toolbar=no, status=yes');

}




function fenster(url, name, width, height, otherfeatures)
{
  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 + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
  newwin = window.open(url, name, str + ',' + otherfeatures);
  //newwin = window.open(url, name, str + ',' + 'scrollbars=no, menubar=no, resizeable=no, toolbar=no, status=yes');
  if(parseInt(navigator.appVersion) >= 4)
  {
	//bisserl warten, IE4 neigt zu ERRORS
	//beim Versuch gerade geöffnete Fenster zu fokussieren
 	setTimeout('newwin.focus();',250);
  }
}


//zentriertes POPUP end		
/////////////////////////////////////////


//Script by Thomas Stich
/*
var pop = null;

function popdown() {
  if (pop && !pop.closed) pop.close();
}

function popup(obj,width,height) {
  var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;
  if (!url) return true;
  width = (width) ? width += 20 : 150;  // 150px*150px is the default size
  height = (height) ? height += 25 : 150;
  var args = 'width='+width+',height='+height+',resizable';
  popdown();
  pop = window.open(url,'',args);
  return (pop) ? false : true;
}


window.onunload = popdown;
window.onfocus = popdown;*/

//Ende

// Dokumententitel anzeigen
self.defaultStatus = document.title;
