var bw=new cm_bwcheck() // start the x pos var pos=15; //flag for one div if he is open 1 var picLayer = new Array(); //timerID = 0 var timerID = new Array(); var selectID = new Array(); var RollOverCollor = "#D9EDD4"; var ParentBorder = "1px solid #000000"; //var ParentWidth = "193"; var ParentTop = "0"; if(bw.mac&&bw.ie) var ParentTop = "0"; var ParentBackground = "#ffffff"; function findPosY(obj) { var xPos = 0; while(obj != null) { //alert(obj); xPos +=obj.offsetTop; obj=obj.offsetParent; } return xPos; } // set the position of the layers function makePosition(iCount) { //alert(findPosY( document.getElementById("navigationStartImage") )); obj = document.getElementById("navigationStartImage"); topPos = findPosY( obj )+22; for(i=0; i2) { document.all['sub'+i].style.visibility = "visible"; document.all['dumsub'+i].style.visibility = "visible"; } if(!isActive) eval('roll'+i).className="navigationDivActive"; } else if(bw.ns4) { // clear all other for(iz=0; iz2) { document.layers['sub'+i].visibility = "show"; document.layers['dumsub'+i].visibility = "show"; } if(!isActive) document.layers['roll'+i].className="navigationDivActive"; } else { if(!isActive) document.getElementById('roll'+i).className="navigationDivActive"; if(menu.chi[i] && menu.chi[i].length>2) { document.getElementById('sub'+i).style.visibility = "visible"; document.getElementById('dumsub'+i).style.visibility = "visible"; } } } setTimeout('hideSelect()', 10); picLayer[i] = 1; } // change rollover image to normal one function changeDivBack(i, isActive) { timerID[i] = setTimeout('changeDivB('+i+', '+isActive+')',10); } function clearTimeOut(i) { clearTimeout(timerID[i]); } function changeDivB(i, isActive) { showSelect(); if(bw.ie4 || (bw.mac && bw.ie) ) { objSub = document.all['sub'+i]; objSubdummy = document.all['dumsub'+i]; if(objSub) { objSub.style.visibility = "hidden"; objSubdummy.style.visibility = "hidden"; } if(!isActive) eval('roll'+i).className="navigationDiv";; } else if(bw.ns4) { objSub = document.layers['sub'+i]; objSubdummy = document.layers['dumsub'+i]; if(objSub) { objSub.visibility = "hide"; objSubdummy.visibility = "hide"; } if(!isActive) document.layers['roll'+i].className="navigationDiv"; } else { objSub = document.getElementById('sub'+i); objSubdummy = document.getElementById('dumsub'+i); if(objSub) { objSub.style.visibility = "hidden"; objSubdummy.style.visibility = "hidden"; } if(!isActive) document.getElementById('roll'+i).className="navigationDiv"; } //if(oImg.src!=aImg[i]) //oImg.src = aImg[i]; timerID[i] = null; picLayer[i] = 0; } function showNN() { if (this.id.search(/^dumsub/)==0) clearTimeOut(this.id.replace("dumsub", "")); else clearTimeOut(this.id.replace("sub", "")); } function hideNN(e) { if (this.id.search(/^dumsub/)==0) changeDivBack(this.id.replace("dumsub", "")); else changeDivBack(this.id.replace("sub", "")); } function changeColor(p,i) { if(bw.mac && bw.ie) { document.all['tdA'+p+''+i].style.background=RollOverCollor; //document.all['tdB'+p+''+i].style.background="#006699"; return; } if(!bw.ns4 && bw.dom) { document.getElementById('tdA'+p+''+i).className="SOver" return; } if(bw.ns4){ document.layers['sub'+p].document.layers['tdA'+p+''+i].document.bgColor=RollOverCollor; //document.layers['sub'+p].document.layers['tdB'+p+''+i].document.bgColor='#006699'; return; } } function clearAllRollOvers(p) { for(i=0;i0 && i0 && i
'+txt+'
'; cdStr +='
'; } else { cdStr ='

'+txt+'
'; cdStr +='
'; } } else return ""; } else if(bw.ns4 && !bw.dom ) { if(txt) { cdStr =''; cdStr +='
'; } else { if(align=="bottom") paddTop = '' else paddTop = '' cdStr ='
'+paddTop+'
'; } } else { pDiv = document.getElementById("sub"+p); cDiv = document.createElement("DIV") if(txt) { //inster space betwean a text and upper and lower ITEM cDiv.innerHTML += '
'+txt+'
'; if(bw.ns7) cDiv.onmouseover= function (e) { clearAllRollOvers(p); changeColor(p,id); } else cDiv.onmouseover= function (e) { changeColor(p,id); } cDiv.onmouseout= function (e) { clearAllRollOvers(p) } //open in menu child url inside of popup if(isPopUp) { cDiv.onclick= function (e) { OpenPopUp(url); } } else { cDiv.onclick= function (e) { document.location.href=url; } } cDiv.className="S"; } else { cDiv.innerHTML = ''; cDiv.className="Sdummy"; } cDiv.display="none"; cDiv.cursor="hand"; cDiv.id = 'tdA'+p+""+id; cDiv.title=desc pDiv.appendChild(cDiv); cDiv.style.height=cDiv.offsetHeight; //cDiv.style.width=pDiv.style.width.replace("px", ""); return ""; } return cdStr; } function Child(p, id, txt, desc,url, height, align, isPopUp) { this.id=id; this.url=url; this.txt=txt; this.desc=desc; this.dStr=createChilde(p, id, txt, desc,url, height, align, isPopUp); } function createParent(id){ if(bw.ns4) { cssStr = "SubMNN" } else { cssStr = "SubM" } if(bw.mac && bw.ie) { var cdStr = ''; cdStr += ''; } function Parent(id) { this.id='par'+id; //this.childrens=0; this.dStr=createParent(id); if(!bw.dom || (bw.mac && bw.ie) ) { this.endStr=createEndParent(); } } function Menu() { //parent array this.par = new Array(); // children two dimensional array[par][child]; this.chi = new Array(); //to create parent and child this.parent = MakeMP; this.child = MakeMC; //this.par.length shorter this.counter=0; } function MakeMP(id) { this.par[id] = new Parent(id); this.chi[id] = new Array(); this.counter++; }//Menu function MakeMC(p, id, txt, desc, url, height, align, isPopUp) { this.chi[p][id] = new Child(p, id, txt, desc, url, height, align, isPopUp); }//Menu var menu = new Menu(); var ParentWidth=193; menu.parent(0); menu.child(0, 0, '', '', '', 4, 'top'); menu.child(0, 1, "Schullaufbahnberatung - 2. AHS", "Schullaufbahnberatung - 2. AHS", "/DE/berufsinformationszentrum/beratung/schullaufbahnberatung/schullaufbahnberatung_2_ahs.aspx", 4, '', false); menu.child(0, 2, "Test für Lehrlinge", "Test für Lehrlinge", "/DE/berufsinformationszentrum/beratung/test_fuer_lehrlinge/test_fuer_lehrlinge.aspx", 4, '', false); menu.child(0, 3, "WIFI-Test Berufsberatung für Jugendliche", "WIFI-Test Berufsberatung für Jugendliche", "/DE/berufsinformationszentrum/beratung/wifi_test/berufsberatung_fuer_jugendliche.aspx", 4, '', false); menu.child(0, 4, "Bildungsberatung für Erwachsene", "Bildungsberatung für Erwachsene", "/DE/berufsinformationszentrum/beratung/bildungsberatung_fuer_erwachsene/bildungsberatung_fuer_erwachsene.aspx", 4, '', false); menu.child(0, 5, "Bildungsberatung für Maturantinnen und Maturanten", "Bildungsberatung für Maturantinnen und Maturanten", "/DE/berufsinformationszentrum/beratung/bildungsberatung für_aturantinnen_und_maturanten/Bildungsberatung_f%c3%bcr_maturantinnen_und_maturanten.aspx", 4, '', false); menu.child(0, 6, "Potenzialanalyse", "Potenzialanalyse", "/DE/berufsinformationszentrum/beratung/potenzialanalyse/potenzialanalyse.aspx", 4, '', false); menu.child(0, 7, "Individual-Coaching", "Individual-Coaching", "/DE/berufsinformationszentrum/beratung/individualcoaching/bildungscoaching.aspx", 4, '', false); menu.child(0, 8, "Lerntest-Lernpotentialanalyse", "Lerntest-Lernpotentialanalyse", "/DE/berufsinformationszentrum/beratung/lerntest-lernpotentialanalyse/Lerntest-Lernpotenzialanalyse.aspx", 4, '', false); menu.child(0, 9, "Lernorganisation-Lernen können Sie lernen", "Lernorganisation-Lernen können Sie lernen", "/DE/berufsinformationszentrum/beratung/lernorganisation-lernen _können _sie _lernen/lernorganisation_lernen+k%c3%b6nnen+Sie+lernen.aspx", 4, '', false); menu.child(0, 10, '','', '', 7, 'bottom'); menu.parent(1); menu.child(1, 0, '', '', '', 4, 'top'); menu.child(1, 1, "Schulgruppeninformation", "Schulgruppeninformation", "/DE/berufsinformationszentrum/seminare/schulgruppeninformation/gruppeninformation.aspx", 4, '', false); menu.child(1, 2, "Wege in die Berufswelt", "Wege in die Berufswelt", "/DE/berufsinformationszentrum/seminare/wege_in_die_berufswelt/wege_in_die_berufswelt.aspx", 4, '', false); menu.child(1, 3, "Verflixt, wie soll ich mir das merken?", "Verflixt, wie soll ich mir das merken?", "/DE/berufsinformationszentrum/seminare/verflixt_wie_soll_ich_mir_das_merken/verflixt_wie_soll_ich_mir_das_merken.aspx", 4, '', false); menu.child(1, 4, "Bewerbungstraining für die 7. bis 9. Schulstufe", "Bewerbungstraining für die 7. bis 9. Schulstufe", "/DE/berufsinformationszentrum/seminare/bewerbungstraining_fuer_7._9.sch/Bewerbungstraining+f%c3%bcr+7-9Schstf.aspx", 4, '', false); menu.child(1, 5, "Nachhilfe für Lehrlinge", "Nachhilfe für Lehrlinge", "/DE/berufsinformationszentrum/seminare/nachilfe_für_lehrlinge/nachhilfe_+f%c3%bcr_lLehrlinge.aspx", 4, '', false); menu.child(1, 6, '','', '', 7, 'bottom'); menu.parent(2); menu.child(2, 0, '', '', '', 4, 'top'); menu.child(2, 1, '','', '', 7, 'bottom'); menu.parent(3); menu.child(3, 0, '', '', '', 4, 'top'); menu.child(3, 1, "BIZ in St.Pölten", "BIZ in St.Pölten", "/DE/berufsinformationszentrum/biz_noe/biz_st_poelten/biz_st_poelten.aspx", 4, '', false); menu.child(3, 2, "BIZ in Gänserndorf", "BIZ in Gänserndorf", "/DE/berufsinformationszentrum/biz_noe/biz_gaeserndorf/biz_gaenserndorf.aspx", 4, '', false); menu.child(3, 3, "BIZ in Gmünd", "BIZ in Gmünd", "/DE/berufsinformationszentrum/biz_noe/biz_gmuend/biz_gmuend.aspx", 4, '', false); menu.child(3, 4, "BIZ in Mistelbach", "BIZ in Mistelbach", "/DE/berufsinformationszentrum/biz_noe/biz_mistelbach/biz_mistelbach.aspx", 4, '', false); menu.child(3, 5, "BIZ in Wr. Neustadt", "BIZ in Wr. Neustadt", "/DE/berufsinformationszentrum/biz_noe/biz_wr_neustadt/biz_wr_neustadt.aspx", 4, '', false); menu.child(3, 6, '','', '', 7, 'bottom'); menu.parent(4); menu.child(4, 0, '', '', '', 4, 'top'); menu.child(4, 1, "Stipendien", "Stipendien", "/DE/berufsinformationszentrum/links/stipendien/stipendien.aspx", 4, '', false); menu.child(4, 2, "Schulen", "Schulen", "/DE/berufsinformationszentrum/links/schulen/schulen.aspx", 4, '', false); menu.child(4, 3, "Beratungsstellen", "Beratungsstellen", "/DE/berufsinformationszentrum/links/beratungsstellen/beratungsstellen.aspx", 4, '', false); menu.child(4, 4, '','', '', 7, 'bottom'); function init() { if(!bw.dom || (bw.mac && bw.ie) ) { for(i=0; i0 && ci<(menu.chi[ip].length-1) ) { macDivHeight=macDivHeight+document.all['tdA'+ip+""+ci].clientHeight+1; //document.all['tdA'+ip+""+ci].onclick= function { window.document.location.href= } } }//for document.all['sub'+ip].style.height=(macDivHeight+7); } function organizeLayers(ip){ pInt = 'sub'+ip; //..length/2 because he has this litle blue line oLay = document.layers[pInt].document.layers; var iPositonLayer=0; var str=""; for(ci=0; ci0 && ci