// 21-12-2009	ka new function shadowpic

//	***** ALL FUNCTIONS ARE SORTED ALPHABETICALLY *****


// glow in id
function glow()
{
	var col = new Array('#000000','#111111','#222222','#333333','#444444','#555555','#666666','#777777','#CC5555','#CC6666','#DD7777','#DD8888','#DD9999','#EEAAAA','#EEBBBB','#EECCCC','#FFDDDD','#FFEEEE','#FFFFFF');
	var a = document.getElementById('glow');
	var b = a.lang;
	var c = a.title;
	var d = col.length;
	if(c=='up') 
	{
		b++;
		if(b>d) 
		{
			b=d;
			a.title = 'down';
		}
	}
	if(c=='down')
	{
		b--;
		if(b<0)
		{
			b=0;
			a.title='up';
		}
	}
	a.style.color = col[b];
	a.lang = b;
	setTimeout('glow()',100);
}


// init page
function init_page()
{
	if(document.getElementById('glow')) glow();
}


// give button the button stylesheet, and the mouse_out style sheet
function mg(a)
{
	a.className = 'butt butt_mg';
}


// give button the button stylesheet, and the mouse_over style sheet
function mo(a)
{	
	a.className = 'butt butt_mo';
}


// function to respond to button clicks
function ref_to(a)
{	
	var b = a.getAttribute('href');   // mozilla fix
	window.location = b;
}


// display a picture with dropshadow
function shadowpic(naam, url, active, picnaam, heightsmall, heightbig)
{
	tr1 = "";
	tr2 = "";
	tel++;
	if (tel == 1) tr1 = "<tr valign='top' align='center'>";
	if (tel == 2) 
	{
		tel = 0;
		tr2 = "</tr>";
	}
	anchor_b = "<span class='no_website'>";
	anchor_e = "</span>";
	if (active == "y") 
	{
		anchor_b = "<a target='_blank' href='http://" + url + "'>" ;
		anchor_e = "</a>";
	}
	document.write(tr1);
	document.write("<td class='example'>");
	document.write("<span class='website'>" + naam + "</span>");
	document.write("<br><br>");
	document.write("<img class='shadow3' src='gfx/" + picnaam + "_s.jpg' width='150' height='" + heightsmall + "' border='0' onClick=\"showBigPic('gfx/" + picnaam + ".jpg', " + heightbig + ", 600, event, 0);\">");
	document.write("<br><br>" + anchor_b  + url + anchor_e);
	document.write("</td>");
	document.write(tr2);
}


