/* DATEI: hwe.js */


/* Javascript Datei Hier waechst Europa 10-2002 */
/* Copyright by ISS-Oberlausitz */
/* Author: T.Hojenski */

// main.php Navigationstext-Einblendung

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
appear()
setTimeout("window.onresize=regenerate",450)
}
}

function changetext(whichcontent){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions"):document.all.descriptions
cross_el.innerHTML=whichcontent
}
else if (document.layers){
document.nav.document.d1.document.d2.document.write('<p align=center class=sw>'+whichcontent+'</p>')
document.nav.document.d1.document.d2.document.close()
}

}

function appear(){
document.nav.document.d1.visibility='show'
}

// index.php Navigationstext-Einblendung

function viewtext(content,bereich){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById(bereich):document.all.bereich
cross_el.innerHTML=content
}
else if (document.layers){
document.d1.document.d2.document.write('<p align=center class=sw>'+whichcontent+'</p>')
document.d1.document.d2.document.close()
}
}

///////////////////////////
function high(which2){
var NS4 = (navigator.appName.indexOf("Netscape")>=0 && !document.getElementById)? true : false;
if (NS4 == false) {
   theobject=which2
   highlighting=setInterval("highlightit(theobject)",50)
}
}
function low(which2){
var NS4 = (navigator.appName.indexOf("Netscape")>=0 && !document.getElementById)? true : false;
if (NS4 == false) {
   clearInterval(highlighting)
   if (which2.style.MozOpacity)
   which2.style.MozOpacity=0.0
   else if (which2.filters)
   which2.filters.alpha.opacity=00
}
}

function highlightit(cur2){
   if (cur2.style.MozOpacity<1)
   cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
   else if (cur2.filters&&cur2.filters.alpha.opacity<100)
   cur2.filters.alpha.opacity+=10
   else if (window.highlighting)
   clearInterval(highlighting)
}

function setline(theRow, linecolor)
{
    if (linecolor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = linecolor;
    }

    return true;
}

function img_view(auswahlpic,txt)
{
wnd = open("wnd","wnd","width=640,height=680,left=0,top=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable,dependent,screenX=0,screenY=0")


var baseadr = location.href
var lastsl = location.href.lastIndexOf("\\")
if(lastsl >= 0)
baseadr = baseadr.substring(0, lastsl + 1)
else
{
lastsl = location.href.lastIndexOf("/")
if(lastsl >= 0)
baseadr = baseadr.substring(0, lastsl + 1)
}
with(wnd.document)
{
open("text/html")
writeln("<HTML>")
writeln("<HEAD><TITLE>© Hier wächst Europa</TITLE>")
writeln("<LINK href=css/hwe.css type=text/css rel=stylesheet>")

writeln("<script language=JavaScript><!--")
writeln("function rechts(evt) {")
writeln("if (navigator.appName.indexOf(\"Microsoft\") != -1){")
writeln("if (event.button==2) {")
writeln("self.close();")
writeln("return false;}}")
writeln("if (navigator.appName.indexOf(\"Netscape\") != -1) {")
writeln("if ( evt.which == 3 ) {")
writeln("self.close();")
writeln("return false;}}}")
writeln("if (navigator.appName.indexOf(\"Netscape\") != -1) {")
writeln("document.captureEvents( Event.MOUSEDOWN )}")
writeln("document.onmousedown = rechts;")
writeln("// --></script>")
writeln("<meta http-equiv=imagetoolbar content=no>")
writeln("</HEAD>")
writeln("<BODY topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 onKeypress=\"self.close()\" scroll=\"auto\">")
writeln("<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=4 HEIGHT=\"100%\" ALIGN=CENTER>")
writeln("<TR><TD ALIGN=CENTER VALIGN=CENTER colspan=2 HEIGHT=\"100%\"><IMG SRC=\"images/aktionen_zoom/" + auswahlpic + "\" HSPACE=0 VSPACE=0 border=1></TD></TR>")
writeln("<TR><TD ALIGN=CENTER VALIGN=CENTER colspan=2 class=sw>" + txt + "</TD></TR>")
writeln("<TR><TD ALIGN=center><table border=0 cellpadding=0 cellspacing=0><tr><td></td>")
writeln("<td><a class=gn href=javascript:self.close()>Fenster schließen</a></td></tr><tr><td colspan=2 class=sw>&nbsp;</td></tr></table>")
writeln("</TD></TR>")
writeln("</TABLE>")
writeln("</BODY></HTML>")
close()
}
wnd.focus()
}

function img_view2(auswahlpic,txt)
{
wnd = open("wnd","wnd","width=640,height=680,left=0,top=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable,dependent,screenX=0,screenY=0")


var baseadr = location.href
var lastsl = location.href.lastIndexOf("\\")
if(lastsl >= 0)
baseadr = baseadr.substring(0, lastsl + 1)
else
{
lastsl = location.href.lastIndexOf("/")
if(lastsl >= 0)
baseadr = baseadr.substring(0, lastsl + 1)
}
with(wnd.document)
{
open("text/html")
writeln("<HTML>")
writeln("<HEAD><TITLE>© Hier wächst Europa</TITLE>")
writeln("<LINK href=css/hwe.css type=text/css rel=stylesheet>")

writeln("<script language=JavaScript><!--")
writeln("function rechts(evt) {")
writeln("if (navigator.appName.indexOf(\"Microsoft\") != -1){")
writeln("if (event.button==2) {")
writeln("self.close();")
writeln("return false;}}")
writeln("if (navigator.appName.indexOf(\"Netscape\") != -1) {")
writeln("if ( evt.which == 3 ) {")
writeln("self.close();")
writeln("return false;}}}")
writeln("if (navigator.appName.indexOf(\"Netscape\") != -1) {")
writeln("document.captureEvents( Event.MOUSEDOWN )}")
writeln("document.onmousedown = rechts;")
writeln("// --></script>")
writeln("<meta http-equiv=imagetoolbar content=no>")
writeln("</HEAD>")
writeln("<BODY topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 onKeypress=\"self.close()\" scroll=\"auto\">")
writeln("<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=4 HEIGHT=\"100%\" ALIGN=CENTER>")
writeln("<TR><TD ALIGN=CENTER VALIGN=CENTER colspan=2 HEIGHT=\"100%\"><IMG SRC=\"" + auswahlpic + "\" HSPACE=0 VSPACE=0 border=1></TD></TR>")
writeln("<TR><TD ALIGN=CENTER VALIGN=CENTER colspan=2 class=sw>" + txt + "</TD></TR>")
writeln("<TR><TD ALIGN=center><table border=0 cellpadding=0 cellspacing=0><tr><td></td>")
writeln("<td><a class=gn href=javascript:self.close()>Fenster schließen</a></td></tr><tr><td colspan=2 class=sw>&nbsp;</td></tr></table>")
writeln("</TD></TR>")
writeln("</TABLE>")
writeln("</BODY></HTML>")
close()
}
wnd.focus()
}


