/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1

var produkte        = new Array()
    
    produkte[0]     = '<a alt   = "catalogue of the baude-group"'
    produkte[0]    += '   href  = "kataloginhalt.php"'
    produkte[0]    += '   title = "catalogue of the Baude-Group">'
    produkte[0]    += '   Catalogue / price list'
    produkte[0]    += '</a>'
    
    produkte[1]     = '<a alt         = "PUR lines"'
    produkte[1]    += '   href        = "pur.php"'
    produkte[1]    += '   title       = "PUR lines">'
    produkte[1]    += '   PUR lines'
    produkte[1]    += '</a>'
    
    produkte[2]     = '<a alt   = "spiral cables"'
    produkte[2]    += '   href  = "spiralen.php"'
    produkte[2]    += '   title = "spiral cables">'
    produkte[2]    += '   Spiral Cables'
    produkte[2]    += '</a>'
    
    produkte[3]     = '<a alt   = "cable confection / harness"'
    produkte[3]    += '   href  = "konfektion.php"'
    produkte[3]    += '   title = "cable confection / harness">'
    produkte[3]    += '   Cable confection / harness'
    produkte[3]    += '</a>'
    
    produkte[4]     = '<a alt   = "crane lines and accessories"'
    produkte[4]    += '   href  = "kran.php"'
    produkte[4]    += '   title = "crane lines and accessories">'
    produkte[4]    += '   Crane lines'
    produkte[4]    += '</a>'
    
    produkte[5]     = '<a alt   = "lift control lines"'
    produkte[5]    += '   href  = "aufzug.php"'
    produkte[5]    += '   title = "lift control lines">'
    produkte[5]    += '   Lift control lines'
    produkte[5]    += '</a>'
    
    produkte[6]     = '<a alt   = "PVC flat lines"'
    produkte[6]    += '   href  = "pvc_flach.php"'
    produkte[6]    += '   title = "PVC flat lines">'
    produkte[6]    += '   PVC flat lines'
    produkte[6]    += '</a>'
    
    produkte[7]     = '<a alt   = "dragchain control lines"'
    produkte[7]    += '   href  = "schleppketten.php"'
    produkte[7]    += '   title = "dragchain control lines">'
    produkte[7]    += '   Dragchain control lines'
    produkte[7]    += '</a>'
    
    produkte[8]     = '<a alt   = "400Hz - Cables"'
    produkte[8]    += '   href  = "400hz.php"'
    produkte[8]    += '   title = "400Hz - Cables">'
    produkte[8]    += '   400Hz - Cables'
    produkte[8]    += '</a>'
    
    produkte[9]     = '<a alt   = "special cables"'
    produkte[9]    += '   href  = "sonder.php"'
    produkte[9]    += '   title = "special cables">'
    produkte[9]    += '   Special cables'
    produkte[9]    += '</a>'
    
    produkte[10]     = '<a alt   = "accessories"'
    produkte[10]    += '   href  = "zubehoer.php"'
    produkte[10]    += '   title = "accessories">'
    produkte[10]    += '   Accessories'
    produkte[10]    += '</a>'
    
    produkte[11]     = '<a alt   = "non halogen cables and lines"'
    produkte[11]    += '   href  = "halogenfrei.php"'
    produkte[11]    += '   title = "non halogen cables and lines">'
    produkte[11]    += '   Non halogen'
    produkte[11]    += '</a>'
    
    produkte[12]     = '<a alt   = "elektronic cables"'
    produkte[12]    += '   href  = "elektronik.php"'
    produkte[12]    += '   title = "elektronic cables">'
    produkte[12]    += '   Elektronic cables'
    produkte[12]    += '</a>'
    
    produkte[13]     = '<a alt   = "standard cables"'
    produkte[13]    += '   href  = "standard.php"'
    produkte[13]    += '   title = "standard cables">'
    produkte[13]    += '   Standard cables'
    produkte[13]    += '</a>'
    
    produkte[14]     = '<a alt   = "selected applications of Baude-Products"'
    produkte[14]    += '   href  = "referenzen.php"'
    produkte[14]    += '   title = "selected applications of Baude-Products">'
    produkte[14]    += '   References'
    produkte[14]    += '</a>'

var unternehmen      = new Array()

    unternehmen[0]   = '<a alt   = "history of Baude-Group"'
    unternehmen[0]  += '   href  = "unternehmen.php"'
    unternehmen[0]  += '   title = "history of Baude-Group">'
    unternehmen[0]  += '   History'
    unternehmen[0]  += '</a>'
    
    unternehmen[1]   = '<a alt   = "social engagement"'
    unternehmen[1]  += '   href  = "soziales.php"'
    unternehmen[1]  += '   title = "social engagement">'
    unternehmen[1]  += '   Social'
    unternehmen[1]  += '</a>'
    
    unternehmen[2]   = '<a alt   = "locations of Baude-Group"'
    unternehmen[2]  += '   href  = "standorte.php"'
    unternehmen[2]  += '   title = "locations of Baude-Group">'
    unternehmen[2]  += '   Locations'
    unternehmen[2]  += '</a>'
    
    unternehmen[3]   = '<a alt   = "declaration of environment protection"'
    unternehmen[3]  += '   href  = "umwelt.php"'
    unternehmen[3]  += '   title = "declaration of environment protection">'
    unternehmen[3]  += '   Environment protection'
    unternehmen[3]  += '</a>'
    
    
    unternehmen[4]   = '<a alt   = "registered trademarks"'
    unternehmen[4]  += '   href  = "warenzeichen.php"'
    unternehmen[4]  += '   title = "registered trademarks">'
    unternehmen[4]  += '   Trademarks'
    unternehmen[4]  += '</a>'
    
    
    unternehmen[5]   = '<a alt   = "certificates"'
    unternehmen[5]  += '   href  = "zertifikate.php"'
    unternehmen[5]  += '   title = "certificates">'
    unternehmen[5]  += '   Certificates'
    unternehmen[5]  += '</a>'
    

var kontakte         = new Array()

    kontakte[0]      = '<a alt   = "contact persons"'
    kontakte[0]     += '   href  = "ansprechpartner.php"'
    kontakte[0]     += '   title = "contact persons">'
    kontakte[0]     += '   Contact persons'
    kontakte[0]     += '</a>'
    
    kontakte[1]      = '<a alt   = "approach"'
    kontakte[1]     += '   href  = "anfahrt.php"'
    kontakte[1]     += '   title = "approach">'
    kontakte[1]     += '   Approach'
    kontakte[1]     += '</a>'
    
    kontakte[2]      = '<a alt   = "suggestions for improvement"'
    kontakte[2]     += '   href  = "verbesserung.php"'
    kontakte[2]     += '   title = "suggestions for improvement">'
    kontakte[2]     += '   Suggestions for improvement'
    kontakte[2]     += '</a>'
    
var impressum        = new Array()

    impressum[0]     = '<a alt   = "general terms and conditions"'
    impressum[0]    += '   href  = "agb.php"'
    impressum[0]    += '   title = "general terms and conditions">'
    impressum[0]    += '   General terms and conditions'
    impressum[0]    += '</a>'
    
    impressum[1]     = '<a alt   = "protection of privacy"'
    impressum[1]    += '   href  = "datenschutz.php"'
    impressum[1]    += '   title = "protection of privacy">'
    impressum[1]    += '   Protection of privacy'
    impressum[1]    += '</a>'
    
    impressum[2]     = '<a alt   = "copyright, disclaimer;"'
    impressum[2]    += '   href  = "rechtlicherhinweis.php"'
    impressum[2]    += '   title = "copyright, disclaimer;">'
    impressum[2]    += '   Disclaimer'
    impressum[2]    += '</a>'
    
var menuwidth        = '165px' //default menu width
var menubgcolor      = 'lightyellow'  //menu bgcolor
var disappeardelay   = 100  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick = "yes" //hide menu when user clicks within menu?

/////No further editting needed
var ie4              = document.all
var ns6              = document.getElementById&&!document.all

// ---------------------------------------------------------------------------------------
//                         Internet Explorer 4 oder Nestcape 6
// ---------------------------------------------------------------------------------------

if (ie4||ns6)
   {  
     document.write('<div id          = "dropmenue"');
     document.write('     style       = "visibility:          hidden;');
     document.write('                    width:           ' + menuwidth + ';');
     document.write('                    background-color:' + menubgcolor + '"');
     document.write('     onMouseover = "clearhidemenu()"');
     document.write('     onMouseout  = "dynamichide(event)">');
     document.write('</div>')
   }

function getposOffset(what, offsettype)
         {
           var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
           var parentEl=what.offsetParent;
           
           while (parentEl!=null)
                 {
                   totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
                   parentEl=parentEl.offsetParent;
                 }

           return totaloffset;
         }


function showhide(obj, e, visible, hidden, menuwidth)
         {
           if (ie4||ns6)
              dropmenuobj.style.left=dropmenuobj.style.top=-500

           if (menuwidth!="")
              {
                dropmenuobj.widthobj=dropmenuobj.style
                dropmenuobj.widthobj.width=menuwidth
              }
              
           if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
              obj.visibility=visible
           else if (e.type=="click")
              obj.visibility=hidden
         }

         
function iecompattest()
         {
           return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
         }

function clearbrowseredge(obj, whichedge)
         {
           var edgeoffset=0

           if (whichedge=="rightedge")
              {
                var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
                
                dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
                
                if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
                    edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
              }
           else
              {
                var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
                var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
                
                dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
                
                if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
                   { //move up?
                     edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight

                     if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
                        edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
                   }
              }

            return edgeoffset
}

function populatemenu(what)
         {
           if (ie4||ns6)
              dropmenuobj.innerHTML=what.join("")
         }


function dropdownmenu(obj, e, menucontents, menuwidth)
         {
           if (window.event) event.cancelBubble=true
           else if (e.stopPropagation) e.stopPropagation()
           
           clearhidemenu()
           dropmenuobj=document.getElementById? document.getElementById("dropmenue") : dropmenudiv
           populatemenu(menucontents)

           if (ie4||ns6)
              {
                showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
                dropmenuobj.x=getposOffset(obj, "left")
                dropmenuobj.y=getposOffset(obj, "top")
                dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+50+"px"
                dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight-10+"px"
              }

           return clickreturnvalue()
         }

function clickreturnvalue()
         {
           if (ie4||ns6) return false
           else return true
         }

function contains_ns6(a, b) 
         {
           while (b.parentNode)
                 if ((b = b.parentNode) == a)
                 return true;
           
           return false;
         }

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

