// Niks beters te doen ?

var Timer1;
var Timer2;

function ScrollUp(which)
{
    clearInterval(Timer1);
    x = new getObj(which);
    Timer1 = setInterval('x.obj.scrollTop -= 2', 1);
}

function ScrollDown(which)
{
    clearInterval(Timer1);
    x = new getObj(which);
    Timer1 = setInterval('x.obj.scrollTop += 2', 1);
}

function HardUp(which)
{
    clearInterval(Timer2);
    x = new getObj(which);
    Timer2 = setInterval('x.obj.scrollTop -= 4', 1);
}
	
function HardDown(which)
{
    clearInterval(Timer2);
    x = new getObj(which);
    Timer2 = setInterval('x.obj.scrollTop += 4', 1);
}

function ScrollReset()
{
    x = new getObj('Ncontent');
    setTimeout("x.obj.scrollTop = 0;",250);
}
		


function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

function clearTimers(which)
{
    if (which == "all")   
    {
	clearInterval(Timer1);
        clearInterval(Timer2);
    }
    else
	clearInterval(Timer1);
}

function showcontent(which) {
    frames['contentswitch'].location.replace('getcontent.php?id='+which);
}

function imagelarge(id) {
    mywin = window.open('image-popup.html?'+id, 'imagepopup','width=2000,height=2000,scrollbars=no,toolbar=no,location=no');
}
		
