
if (document.images) { 
plaatje1on = new Image(); 
plaatje1on.src = "images/banner/ecreativehoe1.gif"; 
  

  
plaatje1off = new Image(); 
plaatje1off.src = "images/banner/ecreativehoe2.gif"; 
  

} 
  
function muisop(imgname) { 
if (document.images) { 
document[imgname].src = eval(imgname + 'on.src'); 
} 
} 
  
function muisaf(imgname) { 
if (document.images) { 
document[imgname].src = eval(imgname + 'off.src'); 
} 
} 

function initClassdraggable()
{
	bMoving = false;
	document.onmousedown=startMove;
	document.onmousemove=moveObj;
	document.onmouseup=new Function("bMoving=false");
}

function moveObj()
{
	if(!bMoving) return true;
	if(event.button!=1) return true;

// Reposition the object, keeping the same distance from the cursor
	ob.style.pixelLeft=event.clientX-xdif;
	ob.style.pixelTop=event.clientY-ydif;
	return false;
}

function startMove()
{
// Only "draggable" objects can move
	if(event.srcElement.className!="draggable") return;

	bMoving=true;
// Store the object and the differnce between the obj pos and cursor pos: it must remain the same
	ob=event.srcElement;
	xdif=event.clientX-event.srcElement.style.pixelLeft;
	ydif=event.clientY-event.srcElement.style.pixelTop;
}

function showDiv(object,val) { 
document.getElementById(object).style.visibility = val; 
}



