//Fast rollover
//Written by Camuc @ Sennep 2009
//Copyright Sennep 2009

//This library is to be used with Lightbox
//There must be 3 layers for every picture: 
//The layer/image to be rollovered ---> picunder
//The layer going over it ---> picover
//the image to be centered over the two. Must be 20x20px ---> picontop
//every part must end with a number, same for the 3, i.e. picunder13 , picover13 , picontop13


function rollon(num)
{ 
a=document.getElementById('picunder'+num);
b=document.getElementById('picover'+num);
c=document.getElementById('picontop'+num);
b.style.display='block';
c.style.display='block';
gy = a.offsetTop;
if (a.offsetParent) while (a = a.offsetParent) gy += a.offsetTop;
b.style.top=gy;
a=document.getElementById('picunder'+num);
gx = a.offsetLeft;
if (a.offsetParent) while (a = a.offsetParent) gx += a.offsetLeft;
b.style.left=gx;
a=document.getElementById('picunder'+num);
b.style.width=a.width;
b.style.height=a.height;
c.style.top=gy+a.height/2-10;
c.style.left=gx+a.width/2-10;

};

function rolloff(num)
{

	b=document.getElementById('picover'+num);
	c=document.getElementById('picontop'+num);
	b.style.display='none';
	c.style.display='none';
	

};