$hPosition="right"; //horizontal location [left, center or right]
$vPosition="bottom"; //vertical position [top, middle or bottom]
$hMargin=40; //horizontal margin in relation to the border
$width=114; //width of the button in pixels
$height=34; //height of the button
$vMargin=10; //vertical margin
$content="<img src='/imgs/omhoog.gif' name='omhoogknop' alt='Naar boven' style='cursor:hand' onmouseover='omhoog(1)' onmouseout='omhoog(2)'>" //The content of the button, can be most HTML codes
$speed=5; //speed of movement, 0 to have instant movement
$onresize=1; //1 to reposition the button immediately on resize, 0 to move to the new position
$opacity=100 //opacity in percentages (IE only)

document.write('<style>#d{position:absolute;visibility:hidden;filter:alpha();}</style>');

function omhoog(aktie){
	if (aktie==1)
		document.images['omhoogknop'].src="/imgs/omhoog-over.gif";
	if (aktie==2)
		document.images['omhoogknop'].src="/imgs/omhoog.gif";	
	}


function act(){ /*Edit this function to let the button do something else*/

  location.href="#";

}

function locate(){

  $screenw=(document.layers)?innerWidth:document.body.clientWidth;
  $screenh=(document.layers)?innerHeight:document.body.clientHeight;

  if(document.layers)
    $screenw-=20;

  $hspace=$screenw-$width;
  $vspace=$screenh-$height;

  $left=($hPosition=="left")?$hMargin:($hPosition=="center")?$hspace/2:$hspace-$hMargin;
  $top=($vPosition=="top")?$vMargin:($vPosition=="middle")?$vspace/2:$vspace-$vMargin;

  $div.left=(document.layers)?$left+window.pageXOffset:$left+document.body.scrollLeft;
  $div.top=(document.layers)?$top+window.pageYOffset:$top+document.body.scrollTop;

}
$p=0;
function move(){

  $left0=document.layers?window.pageXOffset+$left:document.body.scrollLeft+$left;
  $top0=document.layers?window.pageYOffset+$top:document.body.scrollTop+$top;

  if($speed==0){
    $div.top=$top0;
    $div.left=$left0;
  }else{
    $div.top=parseInt($div.top)+($top0-parseInt($div.top))/$speed;
    $div.left=parseInt($div.left)+($left0-parseInt($div.left))/$speed;
  }

}

document.write("<div id='d'>"+$content+"</div>");


if(document.getElementById('d'))
  $div=document.getElementById('d');
else
  $div=(document.layers)?document.layers.d:document.all.d.style;

if(document.all)
$div=$div.style;

if(document.layers){

  document.layers.d.captureEvents(Event.MOUSEUP);
  document.layers.d.onmouseup=act;

}else{
  document.all.d.onclick=act;
}

locate()

//if(!document.layers)
  //document.all.d.filters["alpha"].opacity=$opacity;

//$div.visibility=(document.layers)?"show":"visible";

$t=setInterval("move()",20);

window.onresize=locate;