/*
lib.js for Gartner

Author:			  manfred.schneiderbauer@world-direct.at
Version:      1.11
Last Changed:	2007-07-16
*/


// lift the menu
function liftMenu(){
 var menu=d('menue'); var i=0;
 try{var allLis=menu.getElementsByTagName('li');}catch(error){}
 try{var allUls=menu.getElementsByTagName('ul');}catch(error){}
 try{var allAs=menu.getElementsByTagName('a');}catch(error){}
 try{var allSpans=menu.getElementsByTagName('span');}catch(error){}
 try{var allDivs=menu.getElementsByTagName('div');}catch(error){}
 try{for(i=0;i<allLis.length;i++){allLis[i].style.zIndex=10;}}catch(error){}
 try{for(i=0;i<allUls.length;i++){allUls[i].style.zIndex=10;}}catch(error){}
 try{for(i=0;i<allAs.length;i++){allAs[i].style.zIndex=10;}}catch(error){}
 try{for(i=0;i<allSpans.length;i++){allSpans[i].style.zIndex=10;}}catch(error){}
 try{for(i=0;i<allDivs.length;i++){allDivs[i].style.zIndex=10;}}catch(error){}
}
if(isIE5up){window.setTimeout('clib_onload("liftMenu()");',2500);}

// imagemapper
function imageMap(obj,mode){if(d('tbImagemap')){
var allAreas=d('tbImagemap').getElementsByTagName('area');
var thisArea=''; var thisNormTitle=''; var imgPrefix='fileadmin/dev/img/map/map_';
window.mapImg=d('tbImagemap').getElementsByTagName('img')[0];
window.thisMapImgSrc=mapImg.getAttribute('src'); window.mapImgSrcs=new Array();
for(var i=0;i<allAreas.length;i++)
  {
   thisArea=allAreas[i];
   thisArea.setAttribute('title',thisArea.alt);
   thisArea.setAttribute('thisIndex',i);
   thisNormTitle=escape(thisArea.getAttribute('alt').toLowerCase());
   while(thisNormTitle.indexOf('%E4')!=-1){thisNormTitle=thisNormTitle.replace('%E4','ae');}
   while(thisNormTitle.indexOf('%F6')!=-1){thisNormTitle=thisNormTitle.replace('%F6','oe');}
   while(thisNormTitle.indexOf('%FC')!=-1){thisNormTitle=thisNormTitle.replace('%FC','ue');}
   while(thisNormTitle.indexOf('%DF')!=-1){thisNormTitle=thisNormTitle.replace('%DF','ss');}
   thisNormTitle=unescape(thisNormTitle);
   window.mapImgSrcs[i]=imgPrefix+thisNormTitle+'.gif';
   thisArea.setAttribute('href',thisNormTitle+'.html');
   thisArea.onmouseover=function(){window.mapImg.src=mapImgSrcs[this.getAttribute('thisIndex')];}
   thisArea.onmouseout=function(){window.mapImg.src=window.thisMapImgSrc;}
  }
}}
clib_onload("imageMap()");