

var agt= navigator.userAgent.toLowerCase();
var ie= false;
var ns6= false;
var ns4= document.layers;
var html = "";
var cursor= "pointer";



if (document.all&&(agt.indexOf('msie')!=-1)) {
ie=true;
}
if (document.getElementById&&!ie) {
ns6=true;
}

if (ie) {
cursor = "hand";
}

function getDim(el){
        for (var lx=0,ly=0;el!=null;
                lx+=el.offsetLeft,ly+=el.offsetTop,el=el.offsetParent);
        return {x:lx,y:ly}
} 

function hide (layer) {
if (!ns4) {
if (ns4) {
document.layers[mainlayer].visibility="hide";
}
else {
var crossobj=document.getElementById ? document.getElementById(layer) : document.all.layer;
crossobj.style.visibility="hidden";
}
}
}

function show (layer) {
if (!ns4) {
if (ns4) {
document.layers[layer].left=xpos-10;
document.layers[layer].top=ypos+1;
document.layers[mainlayer].visibility="visible";
}
else {
var koe = "pad"+layer;
positioner = document.getElementById(koe);
imgPlace = getDim(positioner);
xpos=imgPlace.x;
ypos=imgPlace.y;


var crossobj=document.getElementById ? document.getElementById(layer) : document.all.layer;
crossobj.style.left=xpos-10;
crossobj.style.top=ypos+1;
crossobj.style.visibility="visible";
}
}
}


var isa = "";
var table_started = false;
var previous_id = "";

tau = new Array();
tau[0]="allg|eng_unter_firmen.html|Company Profile|menub|main";
tau[1]="allg|eng_bpi_gruppe.html|Pöyry Infra GmbH and Subsidiaries|menub|main";
tau[2]="allg|eng_meilensteine.html|Milestones|menub|main";
tau[3]="allg|eng_kundennutzen.html|Client Benefits|menub|main";
tau[4]="allg|eng_management.html|Organisation and Management|menub|main";
tau[5]="allg|eng_qm_system.html|Quality Management System|menub|main";
tau[6]="allg|eng_verband.html|Activity in Associations|menub|main";
tau[7]="gf|../gf/eng_consulting.html|Consulting|menub|gf_1";
tau[8]="gf|../gf/eng_planung.html|Planning|menub|gf_2";
tau[9]="gf|../gf/eng_bau.html|Construction and Project Management|menub|gf_3";
tau[10]="gf|../gf/eng_dienst.html|IT and other services|menub|gf_4";
tau[11]="aktuell|../aktuell/eng_projekte.html|New Projects|menub|main";
tau[12]="aktuell|../aktuell/eng_presse.html|Press Releases|menub|main";
tau[13]="aktuell|../aktuell/eng_publikation.html|Publications|menub|main";
tau[14]="kontakt|../kontakt/eng_standorte.html|Locations|menub|main";
tau[15]="kontakt|../kontakt/eng_gruppen.html|Group Companies|menub|main";
tau[16]="gf_1|../gf/eng_consulting_proj.html|Projects|menub|sub";
tau[17]="gf_1|../gf/eng_consulting_leist.html|Services|menub|sub";
tau[18]="gf_2|../gf/eng_planung_proj.html|Projects|menub|sub";
tau[19]="gf_2|../gf/eng_planung_leist.html|Services|menub|sub";
tau[20]="gf_3|../gf/eng_bau_proj.html|Projects|menub|sub";
tau[21]="gf_3|../gf/eng_bau_leist.html|Services|menub|sub";
tau[22]="gf_4|../gf/eng_dienst_proj.html|Projects|menub|sub";
tau[23]="gf_4|../gf/eng_dienst_leist.html|Services|menub|sub";



function funi() {

for (i=0; i < tau.length; i++){
test=tau[i];
taulukko=test.split("|");

id= taulukko[0];
href= taulukko[1];
txt= taulukko[2];
style= taulukko[3];
arrow= taulukko[4];

if (previous_id != id) {
main_layer = id.split("_");
isa = main_layer[0];

if (table_started != false){
table_started=true;
}
else {
html +="</TABLE>";
html +="</DIV>";
}
if (arrow == "sub") {
html +="<DIV ID=\"" + id  + "\" onMouseOver=\"show('" + id +"');show('" + isa + "');\" onMouseOut=\"hide('" + id + "');hide('" + isa +"')\" style=\"visibility:hidden;position: absolute; left: 0; top:0;\">";
}
else {
html +="<DIV ID=\"" + id  + "\" onMouseOver=\"show('" + id +"');\" onMouseOut=\"hide('" + id + "')\" style=\"visibility:hidden;position: absolute; left: 0; top:0;\">";
}
   html +="<TABLE BORDER=0 WIDTH=140 CELLSPACING=0 CELLPADDING=0 BGCOLOR=\"#E8F0FF\">";
    html +="<TR><TD COLSPAN=5 BGCOLOR=\"#000000\"><IMG SRC=\"../bilder/pad.gif\" WIDTH=1 HEIGHT=1></TD></TR>";
previous_id = id;
}

if ((arrow == "sub")||(arrow == "main")) {
html += "<TR STYLE=\"cursor:" + cursor + "\">";
}
else {
html += "<TR STYLE=\"cursor:" + cursor + "\" onMouseOver=\"show('" + arrow +  "');\" onMouseOut=\"hide('" + arrow +  "');\">";
}
html += "<TD BGCOLOR=\"#000000\"><IMG SRC=\"../bilder/pad.gif\" WIDTH=1 HEIGHT=1></TD>";
html += "<TD><IMG SRC=\"../bilder/pad.gif\" WIDTH=10 HEIGHT=1></TD>";
html += "<TD><IMG SRC=\"../bilder/pad.gif\" WIDTH=130 HEIGHT=3><BR>";
html += '<A HREF="' + href + '" CLASS="' + style + '">' + txt + '</A>' + "<BR><IMG SRC=\"../bilder/pad.gif\" WIDTH=130 HEIGHT=3></TD>";
if (arrow != "main") {
if (arrow != "sub"){
html += '<TD NOWRAP><IMG SRC="../bilder/pfeil.gif">';
html += "<IMG SRC=\"../bilder/pad.gif\" WIDTH=1 HEIGHT=10 BORDER=0 NAME=\"pad" + arrow + "\" ID=\"pad" + arrow + "\">&nbsp;&nbsp;";
}
}
else {
html += "<TD NOWRAP>";
html += "<IMG SRC=\"../bilder/pad.gif\" WIDTH=1 HEIGHT=1 BORDER=0 NAME=\"pad" + arrow + "\" ID=\"pad" + arrow + "\">&nbsp;&nbsp;";
}
html += "<TD BGCOLOR=\"#000000\"><IMG SRC=\"../bilder/pad.gif\" WIDTH=1 HEIGHT=1></TD></TR>";
html += "<TR><TD COLSPAN=5 BGCOLOR=\"#000000\"><IMG SRC=\"../bilder/pad.gif\" WIDTH=1 HEIGHT=1></TD></TR>";
}
html +="</TABLE>";
html +="</DIV>";
if (!ns4) {
document.write(html);
}
}

function openPopup(href,w,h,r,s) {
var format = 'width=' + w + ',height=' + h + ',screenX=100,screenY=100,left=100,top=100,resizable=' + r + ',scrollbars=' + s;
window.open(href,'popup',format);
return false;
}

