var slidemenu_width='225px' //specify width of menu (in pixels)
var slidemenu_reveal='21px' //specify amount that menu should protrude initially
var slidemenu_revealinit='225px' //specify amount that menu should protrude initially
var slidemenu_top='10px'   //specify vertical offset of menu on page

var ns4=document.layers?1:0
var ie4=document.all
var ns6=document.getElementById&&!document.all?1:0

if (ie4||ns6)
  document.write('<div id="slidemenubar2" style="left:'+((parseInt(slidemenu_width)-parseInt(slidemenu_revealinit))*-1)+'px; top:'+slidemenu_top+'; width:'+slidemenu_width+'" onMouseover="pull()" onMouseout="draw()">')
else if (ns4){
  document.write('<style>\n#slidemenubar{\nwidth:'+slidemenu_width+';}\n<\/style>\n')
  document.write('<layer id="slidemenubar" left=0 top='+slidemenu_top+' width='+slidemenu_width+' onMouseover="pull()" onMouseout="draw()" visibility=hide>')
}

var sitems=new Array()

///////////Edit below/////////////////////////////////

//siteitems[x]=["Item Text", "Optional URL associated with text"]

sitems[0]=["http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/wilkomtab.gif", "../01welkom/01welcome.html", "http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/wilkomtab2.gif"]
sitems[1]=["http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/fwtab.gif", "../02fw/02fw.html", "http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/fwtab2.gif"]
sitems[2]=["http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/enzingertab.gif", "../03enzinger/03enzinger.html", "http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/enzingertab2.gif"]
sitems[3]=["http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/bahntab.gif", "../04bahn/04bahn.html", "http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/bahntab2.gif"]
sitems[4]=["http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/httab.gif", "../05ht/05ht.html", "http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/httab2.gif"]
sitems[5]=["http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/akttab.gif", "../06aktiv/06aktiv.html", "http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/akttab2.gif"]
sitems[6]=["http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/umgebungtab.gif", "../07umgebung/07umgebung.html", "http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/umgebungtab2.gif"]
sitems[7]=["http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/anreisetab.gif", "../08anr/08anr.html", "http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/anreisetab2.gif"]
sitems[8]=["http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/infotab.gif", "../09info/09info.html", "http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/infotab2.gif"]
sitems[9]=["http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/preisetab.gif", "../10prijs/10prijs.html", "http://www.ferienwohnung-enzingerboden.com/Mainpic/tabs/preisetab2.gif"]

//If you want the links to load in another frame/window, specify name of target (ie: target="_new")
var target="_parent"

/////////////////////////////////////////////////////////
if (ie4||ns4||ns6){
  for (i=0;i<sitems.length;i++){
    if (sitems[i][1])
document.open() 
document.write('<a text-decoration:none BORDER="0" href="'+sitems[i][1]+'" target="'+target+'">')
document.write('<IMG border="0" name="Image'+i+'" SRC="'+sitems[i][0]+'" HSRC="'+sitems[i][2]+'">')
    if (sitems[i][1])
document.open() 
document.write('</a>')
document.write('<br>\n')
  }
}

function regenerate(){
  window.location.reload()
}
function regenerate2(){
  if (ns4){
    document.slidemenubar.left=((parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1)
    document.slidemenubar.visibility="show"
    setTimeout("window.onresize=regenerate",1400)
  }
}
window.onload=init

rightboundary=0
leftboundary=(parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1

if (ie4||ns6){
  document.write('</div>')
  themenu=(ns6)? document.getElementById("slidemenubar2").style : document.all.slidemenubar2.style
}
else if (ns4){
  document.write('</layer>')
  themenu=document.layers.slidemenubar
}

function pull(){
  if (window.drawit)
    clearInterval(drawit)
    pullit=setInterval("pullengine()",2)
}
function draw(){
  clearInterval(pullit)
  drawit=setInterval("drawengine()",2)
}
function pullengine(){
  if ((ie4||ns6)&&parseInt(themenu.left)<rightboundary)
    themenu.left=parseInt(themenu.left)+3+"px"
  else if(ns4&&themenu.left<rightboundary)
    themenu.left+=2
  else if (window.pullit){
    themenu.left=0
    clearInterval(pullit)
  }
}

function drawengine(){
 if ((ie4||ns6)&&parseInt(themenu.left)>leftboundary)
   themenu.left=parseInt(themenu.left)-3+"px"
 else 
 if(ns4&&themenu.left>leftboundary)
    themenu.left-=2
  else 
 if (window.drawit){
   themenu.left=leftboundary
   clearInterval(drawit)
 }
     }
     
function init() {
  if (!document.getElementById) return
    var imgOriginSrc;
    var imgTemp = new Array();
    var imgarr = document.getElementsByTagName('img');
    for (var j = 0; j < imgarr.length; j++) {
      if (imgarr[j].getAttribute('hsrc')) {
        imgTemp[j] = new Image();
        imgTemp[j].src = imgarr[j].getAttribute('hsrc');
        imgarr[j].onmouseover = function() {
          imgOriginSrc = this.getAttribute('src');
          this.setAttribute('src',this.getAttribute('hsrc'))
        }
        imgarr[j].onmouseout = function() {
        this.setAttribute('src',imgOriginSrc)
        }
      }
    }
  if (ns4){
    document.slidemenubar.left=((parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1)
    document.slidemenubar.visibility="show"
    setTimeout("window.onresize=regenerate",1400)
  }
}