<!--
//---made by Gerd Zimmermann, Germany  25.08.2004   --//
//---------- Basis Code fuer Asha Varadhi ------------//
var bild;
var browser;

if (screen.width < 800)
{
    window.defaultStatus = "Für diese Website sollten Sie eine höhere Bildschirmauflösung wählen !";

    bild = "800";
}

else if (screen.width == 800)
{
    window.defaultStatus = "*** Asha Varadhi - Brücke der Hoffnung für Indien ***";

    bild = "800";
}
else if (screen.width <= 1024)
{
    window.defaultStatus = "*** Asha Varadhi - Brücke der Hoffnung für Indien ***";

    bild = "1024";
}
else if (screen.width > 1024)
{
    window.defaultStatus = "*** Asha Varadhi - Brücke der Hoffnung für Indien ***";

    bild = "1280";
}


if(navigator.appName == "Netscape")
{
    if (navigator.vendor == "Firefox")
    {
      browser = "firefox";
    }
    else
    {
      browser = "net";
    }
}
else if(navigator.appName == "Microsoft Internet Explorer")
{
    browser = "mie";
}
else if (navigator.appName == "Opera")
{
    browser = "opera";
}
else
{
    browser = "sonst";
}

//***************** Function for different scrolling modes *******//

function scrollbalken()
{
  if (browser == "mie")
  {
    if (bild == 1280)
    {
      document.write("<td width='13' bgcolor='#FF9900'>");
    }
    else if (screen.availHeight != 738)
    {
      document.write("<td width='14' bgcolor='#FF9900'>");
    }
    else
    {
      document.write("<td width='16' bgcolor='#FF9900'>");
    }
  }
  else if (browser == "net")
  {
    if (bild ==1280)
    {
      document.write("<td width='4' bgcolor='#FF9900'>");
    }
    else if (bild ==1024)
    {
      document.write("<td width='7' bgcolor='#FF9900'>");
    }
    else
    {
      document.write("<td width='9' bgcolor='#FF9900'>");
    }
  }
  else if (browser == "firefox")
  {
    if (bild ==1280)
    {
      document.write("<td width='4' bgcolor='#FF9900'>");
    }
    else if (bild ==1024)
    {
      document.write("<td width='6' bgcolor='#FF9900'>");
    }
    else
    {
      document.write("<td width='8' bgcolor='#FF9900'>");
    }
  }
  else if (browser == "opera")
  {
    if (bild ==1280)
    {
      document.write("<td width='4' bgcolor='#FF9900'>");
    }
    else if (bild ==1024)
    {
      document.write("<td width='5' bgcolor='#FF9900'>");
    }
    else
    {
      document.write("<td width='7' bgcolor='#FF9900'>");
    }
  }
  else
  {
    document.write("<td width='14' bgcolor='#FF9900'>");
  }
}

//***************** Function for different scrolling modes *******//

function  scrollwindow()
{
  if (browser == "mie")
  {
    document.write("<table border='0' align='CENTER' cellpadding='0' cellspacing='0' width='100%' height='100%'>");
  }
  else
  {
    document.write("<div style='position:absolute;top:0px;left:0pt;width:1px; height:101%'></div>");
    document.write("<table border='0' align='CENTER' cellpadding='0' cellspacing='0' width='100%' height='101%'>");
  }
}

//***************** Function to select to frames *******//

function ZweiFrames(URL1,Fr1Nummer,URL2,Fr2Nummer)
{
    parent.frames[Fr1Nummer].location.href=URL1;
    parent.frames[Fr2Nummer].location.href=URL2;
}

//-->


//***************** PopUp Window *******//

function openPopup( url, sizeX, sizeY)
{
    w = window.open( url, "w", "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width="+sizeX+",height="+sizeY+",left=400,top=200");
}

function closeBild()
{
  	self.focus();
	self.close();
}


//***************** Verzeichnis-Balken *******//

function balken(xyz, farbe) {
  var dieZelle = document.getElementById(xyz);
  dieZelle.style.backgroundColor = farbe;
}

//------------- Code fuer Buttons ---------------//


var engon = new Image();                  // Active Buttons
    engon.src   = "../images/eng_flag1.gif";

var engoff = new Image();                 // Inactive Buttons
    engoff.src  = "../images/eng_flag.gif";

var engdown = new Image();                // Click Buttons
    engdown.src = "../images/eng_flag.gif";

var dton = new Image();                  // Active Buttons
    dton.src   = "../images/dt_flag1.gif";

var dtoff = new Image();                 // Inactive Buttons
    dtoff.src  = "../images/dt_flag.gif";

var dtdown = new Image();                // Click Buttons
    dtdown.src = "../images/dt_flag.gif";


function actMenuItem(imgName)
{
  act(imgName);
}

function inactMenuItem(imgName)
{
  inact(imgName);
}

function downMenuItem(imgName)
{
  down(imgName);
}

//****************** Function to activate images *******//
function act(imgName)
{
  if (document.images)
    document[imgName].src = eval(imgName + "on.src");
}

//***************** Function to deactivate images *******//

function inact(imgName)
{
  if (document.images)
    document[imgName].src = eval(imgName + "off.src");
}

//***************** Function to click images *******//
function down(imgName)
{
  if (document.images)
    document[imgName].src = eval(imgName + "down.src");
}


