<!-- Loading Bar Script - by Unknown Source -->
// set before error handling

var DHTML = (document.getElementById || document.all || document.layers);
function ap_getObj(name)
{
if (document.getElementById)
{
return document.getElementById(name).style;
}
else if (document.all)
{
return document.all[name].style;
}
else if (document.layers)
{
return document.layers[name];
}
}

function ap_showWaitMessage(div,flag)
{
if (!DHTML) return;
var x = ap_getObj(div);
x.visibility = (flag) ? 'visible':'hidden'
if(! document.getElementById)
if(document.layers)
x.left=280/2;
return true;
}


<!--Error handling-->

// Event-Handler onError setzen
window.onerror = fehler;

// Array fuer Fehlermeldungen
fehlerText = new Array();
fehlerURL = new Array();
fehlerZeile = new Array();

fehlerNummer = 0;

function fehler(txt, URL, zeile) {
   fehlerText[fehlerNummer] = txt;
   fehlerURL[fehlerNummer] = URL;
   fehlerZeile[fehlerNummer] = zeile;

   fehlerNummer++;

   // Fehlermeldung des Browsers unterdruecken
   return true;
}


function ausgabe() {
   neuesFenster= window.open("", "fehlerAusgabe",
     "scrollbars=yes,width=500,height=400")

   with (neuesFenster.document) {

     open();
     write("<html><head><title>Fehlermeldungen");
     write("</title></head>");

     write("<h1>Folgende Fehler sind aufgetreten:</h1>");

     for (i = 0; i < fehlerNummer; i++) {
       write("<b>Datei:</b> <i>"
         + fehlerURL[i] + "</i><br>");
       write("<b>Zeile:</b> <i>"
         + fehlerZeile[i] + "</i><br>");
       write("<b>Fehlermeldung:</b> <i>"
         + fehlerText[i] + "</i><br><br>");
     }

     write("</body></html>");
     close();
   }

}

<!--BrowserCheck-->
function isMozilla(){
         if(navigator.appName == "Netscape" || navigator.appName == "Mozilla"){
                 return true;
         }
         else{
                 return false;
         }
}

<!--Logo-->
function logo() {
        document.write("<font face='Arial'>");
        if(isMozilla()){
                document.write("<font color='green' size=5>");
                document.write("<a href='http://aattuntangled.blogspot.com' class='none'><img src='http://www.andalsothetrees.info/pics/aatt_untangled_logo1.gif' width='332' height='63' border='0' alt='Go to Startsite'></a>");
                /*document.write("<img src='http://www.andalsothetrees.info/pics/aatt_untangled_logo3.gif' width='320' height='80' border='0' alt='And Also The Trees Untangled'>");   */
                document.write("<P></P>");
                }
        else{
                        with (document) {
                        /*document.write("<img src='http://www.andalsothetrees.info/pics/aatt_untangled_logo3.gif' width='320' height='80' border='0' alt='And Also The Trees Untangled'>");
                	       document.write("<P></P>")    */
                        write("<DIV style='width:100%; font-size=19pt; color:black; filter:Shadow(color=#bbbbbb, direction=45)'><a href='http://www.andalsothetrees.info' class='none'><span title='Go to Startpage'><B><NOBR>AND ALSO THE TREES</NOBR></B></span></A>");
                        write("<BR>");
                        write("<img src='http://www.andalsothetrees.info/pics/spacer.gif' width='235' height='1' border='0'>");
                        write("<sup>");
                        write("<font color='white'>");
                        write("untangled");
                        write("</Font>");
                        write("</sup>");
                        write("</DIV>");
                        }
	}
        document.write("</font>");
}



<!-- Rollover Image Script - by 1stPage2000 -->
function SwitchImg(){
  var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
    for (rem=0; rem < (SwitchImg.arguments.length-2); rem+=3) {
            store = SwitchImg.arguments[(isMozilla())?rem:rem+1];
    if ((store.indexOf('document.layers[')==0 && document.layers==null) ||
        (store.indexOf('document.all[')==0 && document.all==null))
         store = 'document'+store.substring(store.lastIndexOf('.'),store.length);
         obj = eval(store);
    if (obj != null) {
              switcher[keep++] = obj;
      switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
      obj.src = SwitchImg.arguments[rem+2];
  } }
  document.Data = switcher;
}

function RestoreImg()
{
  if (document.Data != null)
    for (var rem=0; rem<(document.Data.length-1); rem+=2)
      document.Data[rem].src=document.Data[rem+1];
}
// End Rollover

<!--Bildwechsel-->
function Bildwechsel(Bildnr,Bildobjekt){
   window.document.images[Bildnr].src = Bildobjekt.src;
}

<!--Info window-->
// Make Info Windows global known

function info()
{
var infoWindow;
infoWindow = window.open(info.arguments[0],"andalsothetrees_info","resizable=yes,width=700,height=500,left=35,top=37,toolbar=no,titlebar=no,menubar=no,location=no,status=no,scrollbars=yes,alwaysRaised=yes");
infoWindow.focus();
}

function openPhotos()
{
var photosWindow;
photosWindow = window.open(openPhotos.arguments[0],"andalsothetrees_gallery","resizable=no,width=700,height=650,left=35,top=37,toolbar=no,titlebar=no,menubar=no,location=no,status=no,scrollbars=yes,alwaysRaised=yes");
photosWindow.focus();
}

function openPhotosWide()
{
var photosWindow;
photosWindow = window.open(openPhotosWide.arguments[0],"andalsothetrees_gallery","resizable=no,width=760,height=680,left=35,top=37,toolbar=no,titlebar=no,menubar=no,location=no,status=no,scrollbars=yes,alwaysRaised=yes");
photosWindow.focus();
}

function openExLink()
{
var exLinkWindow;
exLinkWindow = window.open(openExLink.arguments[0],"andalsothetrees_exlink","resizable=yes,width=740,height=470,left=55,top=60,toolbar=yes,titlebar=yes,menubar=yes,location=yes,status=no,scrollbars=yes,alwaysRaised=yes");
exLinkWindow.focus();
}

function showHelp(id,doit)
{
  if (doit=="off") {
      //alert('1a-'+ id+"-"+document.getElementById(id).style.display+"-"+doit);
            document.getElementById(id).style.display="none";
     }
     else {
       //alert('1b-'+id+"-"+document.getElementById(id).style.display+"-"+doit);
           document.getElementById(id).style.display="block";
     }
}

function startCenter(){
    if (window.innerWidth > 1500){
  //  document.write("<CENTER>");
  }
}


function stopCenter(){
    if (window.innerWidth > 1500){
   // document.write("</CENTER>");
   }
}

function getInnerHight(){

         var innerHeight;
	if (self.innerHeight) // all except Explorer
	{
	         innerHeight = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight
	)
	         // Explorer 6 Strict Mode
	{
	         innerHeight = document.documentElement.clientHeight;
	}
	else if (document.body) // other Explorers
	{
	         innerHeight = document.body.clientHeight;
	}
         return innerHeight;
}

function getInnerWidth(){

         var innerWidth;
	if (self.innerHeight) // all except Explorer
	{
	         innerWidth = self.innerWidth;
	}
	else if (document.documentElement && document.documentElement.clientHeight
	)
	         // Explorer 6 Strict Mode
	{
	         innerWidth = document.documentElement.clientWidth;
	}
	else if (document.body) // other Explorers
	{
	         innerWidth = document.body.clientWidth;
	}
         return innerWidth;
}

function bottomTableWidth(){
         var innerWidth = getInnerWidth();
         //alert('ok bottomTableWidth: ' + innerWidth);
	if (innerWidth > 1500){
	    document.write("<TABLE border=0 width='960'>");
	}else{
	    document.write("<TABLE border=0 width='100%'>");
	}
}