// begin win_stat
window.defaultStatus = "Rettet den Kottenforst";

// pop
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

// wexeln
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
    if ((bName == "Netscape" && bVer >= 3) || 
        (bName == "Microsoft Internet Explorer" && bVer >= 4)) br = "n3"; 
    else br = "n2";

    if (br== "n3") { 
    img1on = new Image(301,24);         
    img1on.src = "body/butrettet_den_kottenforst_on.jpg";
    img2on = new Image(301,24);         
    img2on.src = "body/butkottenforst_und_kies_on.jpg";
    img3on = new Image(301,24);         
    img3on.src = "body/butkies_buschhoven_on.jpg";
    img4on = new Image(301,24);         
    img4on.src = "body/butkies_sonnenhof_on.jpg";
    img5on = new Image(301,24);         
    img5on.src = "body/butkies_weilerswist_on.jpg";
	img6on = new Image(137,16);         
    img6on.src = "body/butregionalplanung_on.jpg";
	img7on = new Image(301,24);         
    img7on.src = "body/butchronik_on.jpg";
	img8on = new Image(301,24);         
    img8on.src = "body/butwir_ueber_uns_on.jpg";
	
    img1off = new Image(301,24);
    img1off.src = "body/butrettet_den_kottenforst_off.jpg";
    img2off = new Image(301,24);
    img2off.src = "body/butkottenforst_und_kies_off.jpg";
    img3off = new Image(301,24);
    img3off.src = "body/butkies_buschhoven_off.jpg";
    img4off = new Image(301,24);
    img4off.src = "body/butkies_sonnenhof_off.jpg";
    img5off = new Image(301,24);
    img5off.src = "body/butkies_weilerswist_off.jpg";
	img6off = new Image(137,16);
    img6off.src = "body/butregionalplanung_off.jpg";
	img7off = new Image(301,24);
    img7off.src = "body/butchronik_off.jpg";
	img8off = new Image(301,24);
    img8off.src = "body/butwir_ueber_uns_off.jpg";
	
    img1mo = new Image(301,24);
    img1mo.src = "body/butrettet_den_kottenforst_mo.jpg";
    img2mo = new Image(301,24);
    img2mo.src = "body/butkottenforst_und_kies_mo.jpg";
    img3mo = new Image(301,24);
    img3mo.src = "body/butkies_buschhoven_mo.jpg"; 
    img4mo = new Image(301,24);
    img4mo.src = "body/butkies_sonnenhof_mo.jpg";
	img5mo = new Image(301,24);
    img5mo.src = "body/butkies_weilerswist_mo.jpg";
	img6mo = new Image(137,16);
    img6mo.src = "body/butregionalplanung_mo.jpg";
	img7mo = new Image(301,24);
    img7mo.src = "body/butchronik_mo.jpg";
	img8mo = new Image(301,24);
    img8mo.src = "body/butwir_ueber_uns_mo.jpg";
    }

// Function to "activate" images.
function imgAct(imgName) {
    if (br == "n3")
    {
           for (var i=0; i<document.images.length; i++)
           {
                        if ((document.images[i].name.lastIndexOf("img")) != (-1))
                        {
                                if ((document.images[i].name) != (imgName))
                                        document.images[i].src = eval(document.images[i].name + "off.src");
                        }
                }
    document.images[imgName].src = eval(imgName + "on.src");
    }
}

// Function to "deactivate" images.
function imgInact(imgName) {
    if (br == "n3") {
        if ((document.images[imgName].src) !=  ( eval(imgName + "on.src")))
        {
            document.images[imgName].src = eval(imgName + "off.src");
           }
    }
}

// Function to "mouseover" images.
function imgMouseOver(imgName) {
    if (br == "n3")
    {
        if ((document.images[imgName].src) != (eval(imgName + "on.src")))       
                        document.images[imgName].src = eval(imgName + "mo.src");
    }
}

