<!--
function change(button,map,type)
{
	document.getElementById(button).src=map+"/"+button+"3."+type;
}
function changeback(button,map,type)
{
	document.getElementById(button).src=map+"/"+button+"1."+type;
}

function swapImage(naam,bijschrift)
{
  document.getElementById('fotogr').src = naam;
  document.getElementById('fotogr').alt = bijschrift;
  document.getElementById('fotogr').title = bijschrift;
}

function loadImages()
{
  var images = new Array('beeld/band1.gif','beeld/band2.gif','beeld/band3.gif','beeld/contact1.gif','beeld/contact2.gif','beeld/contact3.gif','beeld/fotoband1.gif','beeld/fotoband2.gif','beeld/fotoband3.gif','beeld/fotolive1.gif','beeld/fotolive2.gif','beeld/fotolive3.gif','beeld/fotoshit1.gif','beeld/fotoshit2.gif','beeld/fotoshit3.gif','beeld/home1.gif','beeld/home2.gif','beeld/home3.gif','beeld/media1.gif','beeld/media2.gif','beeld/media3.gif','beeld/mediaaudio1.gif','beeld/mediaaudio2.gif','beeld/mediaaudio3.gif','beeld/mediavideo1.gif','beeld/band1.gif','beeld/mediavideo2.gif','beeld/mediavideo3.gif','beeld/pics1.gif','beeld/pics2.gif','beeld/pics3.gif','beeld/set1.gif','beeld/set2.gif','beeld/set3.gif','beeld/shows1.gif','beeld/shows2.gif','beeld/shows3.gif','Band/Frederik1.gif','Band/Frederik3.gif','Band/Koen1.gif','Band/Koen3.gif','Band/Manfred1.gif','Band/Manfred3.gif','Band/Nic1.gif','Band/Nic3.gif','Band/Thomas1.gif','Band/Thomas3.gif','Band/Vanessa1.gif','Band/Vanessa3.gif','Band/Wouter1.gif','Band/Wouter3.gif','Band/Yves1.gif','Band/Yves3.gif');
  var loaded = new Array();
  for(i=0;i<images.length;i++)
  {
    loaded[i] = new Image();
    loaded[i].src = images[i];
  }
}
/* Begin code voor scrollbalk */
var isNav4, isNav6, isIE4;

function setBrowser()
{
    if (navigator.appVersion.charAt(0) == "4")
    {
        if (navigator.appName.indexOf("Explorer") >= 0)
        {
            isIE4 = true;
        }
        else
        {
            isNav4 = true;
        }
    }
    else if (navigator.appVersion.charAt(0) > "4")
    {
        isNav6 = true;
    }
}
function getStyleBySelector( selector )
{
    if (!isNav6)
    {
        return null;
    }
    var sheetList = document.styleSheets;
    var ruleList;
    var i, j;

    /* look through stylesheets in reverse order that
       they appear in the document */
    for (i=sheetList.length-1; i >= 0; i--)
    {
        ruleList = sheetList[i].cssRules;
        for (j=0; j<ruleList.length; j++)
        {
            if (ruleList[j].type == CSSRule.STYLE_RULE &&
                ruleList[j].selectorText == selector)
            {
                return ruleList[j].style;
            }   
        }
    }
    return null;
}

function getIdProperty( id, property )
{
    if (isNav6)
    {
        var styleObject = document.getElementById( id );
        if (styleObject != null)
        {
            styleObject = styleObject.style;
            if (styleObject[property])
            {
                return styleObject[ property ];
            }
        }
        styleObject = getStyleBySelector( "#" + id );
        return (styleObject != null) ?
            styleObject[property] :
            null;
    }
    else if (isNav4)
    {
        return document[id][property];
    }
    else
    {
        return document.all[id].style[property];
    }
}

function setIdProperty( id, property, value )
{
    if (isNav6)
    {
        var styleObject = document.getElementById( id );
        if (styleObject != null)
        {
            styleObject = styleObject.style;
            styleObject[ property ] = value;
        }
    }
    else if (isNav4)
    {
        document[id][property] = value;
    }
    else if (isIE4)
    {
         document.all[id].style[property] = value;
    }
}

function generic_move( id, xValue, yValue, additive )
{
    var left = getIdProperty(id, "left");
    var top = getIdProperty(id, "top");
    var leftMatch, topMatch;

    if (isNav4)
    {
        leftMatch = new Array( 0, left, "");
        topMatch = new Array( 0, top, "");
    }
    else if (isNav6 || isIE4 )
    {
        var splitexp = /([-0-9.]+)(\w+)/;
        leftMatch = splitexp.exec( left );
        topMatch = splitexp.exec( top );
        if (leftMatch == null || topMatch == null)
        {
            leftMatch = new Array(0, 0, "px");
            topMatch = new Array(0, 0, "px");
        }
    }
    left = ((additive) ? parseFloat( leftMatch[1] ) : 0) + xValue;
    top = ((additive) ? parseFloat( topMatch[1] ) : 0) + yValue;
    setIdProperty( id, "left", left + leftMatch[2] );
    setIdProperty( id, "top", top + topMatch[2] );
}

function moveIdBy( id, x, y)
{
    generic_move( id, x, y, true );
}

var timerd, timeru;
var teller = 0;
var tel = 0;
var maxdown = 0;
var toScroll = 282;
var maxToScroll;
scrollValues = new Array();
var lastTextScroll = 0;
var textToScroll = 7;
function scrolldown()
{
  //alert(getIdProperty("content", "top"));
  if(teller<maxdown)
  {
      if(maxToScroll<textToScroll)
      {
        textToScroll = maxToScroll;
      }
      moveIdBy('content',0,-textToScroll);
      scrollvalue = Math.floor(textToScroll*toScroll/maxToScroll);
      maxToScroll-=textToScroll;
      toScroll-=scrollvalue;
      //alert("Tekst naar beneden: 6px\nNog te schuiven tekst: "+maxToScroll+"px\nSchuifbalk nr beneden: "+scrollvalue + "px\nNog te schuiven schuifbalk: " + toScroll + "px");
      scrollValues[tel]=scrollvalue;
      tel++;
      moveIdBy('round',0,scrollvalue)
      teller+=textToScroll;
      textToScroll = 7;
      timerd = setTimeout("scrolldown()",30);
  }
  
}
function scrollup()
{
  if(teller>0)
  {
      if((maxdown-maxToScroll)<textToScroll)
      {
        textToScroll = (maxdown-maxToScroll);
      }
      moveIdBy('content',0,textToScroll);
      tel--;
      scrollvalue = scrollValues[tel];
      maxToScroll+=textToScroll;
      toScroll+=scrollvalue;
      moveIdBy('round',0,-scrollvalue)
      teller-=textToScroll;
      textToScroll = 7;
      timeru = setTimeout("scrollup()",30);
  }
  
}
function stopscroll()
{
  clearTimeout(timeru);
  clearTimeout(timerd);
}

var maxright = 0;
function scrollright()
{
  if(teller<maxright)
  {
      if(maxToScroll<textToScroll)
      {
        textToScroll = maxToScroll;
      }
      moveIdBy('fotocontent',-textToScroll,0);
      maxToScroll-=textToScroll;
      teller+=textToScroll;
      textToScroll = 10;
      timerd = setTimeout("scrollright()",30);
  }
}

function scrollleft()
{
  if(teller>0)
  {
      if((maxright-maxToScroll)<textToScroll)
      {
        textToScroll = (maxright-maxToScroll);
      }
      moveIdBy('fotocontent',textToScroll,0);
      maxToScroll+=textToScroll;
      teller-=textToScroll;
      textToScroll = 10;
      timeru = setTimeout("scrollleft()",30);
  }
}

function init()
{
   //loadImages();
   setBrowser();
   maxdown = document.getElementById('content').offsetHeight-377;
   maxToScroll = maxdown;
   //toScroll+=Math.floor(6*toScroll/maxToScroll);
   if(maxdown>0) document.getElementById('scrollbar').style.visibility='visible';
   if(document.getElementById('fotocontent'))
   {
     maxright = document.getElementById('fototest').offsetWidth-423;
     maxToScroll = maxright;
     textToScroll = 10;
     if(maxright>0)
     {
       document.getElementById('leftarrow').style.visibility='visible';
       document.getElementById('rightarrow').style.visibility='visible';
     }
   }
}
/* Einde code scrollbar */
//-->