function sw(id,im)
{
	if (doSwitch)
	{
		document.getElementById(id).src='/stekelsenstaartjes/template/media/' + im;
		if (im == 'stijlknop/01_hover.png')
		{		
			uit(StandTekstAan);aan('tekst_JF');		
		}
		if (im == 'stijlknop/01_uit.png')
		{		
			aan(StandTekstAan);uit('tekst_JF');		
		}
		if (im == 'stijlknop/02_hover.png')
		{		
			uit(StandTekstAan);aan('tekst_GG');		
		}	
		if (im == 'stijlknop/02_uit.png')
		{		
			aan(StandTekstAan);uit('tekst_GG');		
		}
		if (im == 'stijlknop/03_hover.png')
		{		
			uit(StandTekstAan);aan('tekst_CC');		
		}	
		if (im == 'stijlknop/03_uit.png')
		{		
			aan(StandTekstAan);uit('tekst_CC');		
		}	
	}
}
function swl(id,im)
{	
	document.getElementById(id).src='/stekelsenstaartjes/images/' + im;
}
function aan(id)
{
	//console.log('aan ' + id);
	if (doTextSwitch)
		document.getElementById(id).style.display='';
}
function uit(id)
{
	//console.log('uit ' + id);
	if (doTextSwitch)
		document.getElementById(id).style.display='none';
}

function togglemenu(id)
{
	id_nm = document.getElementById(id);
	if (id_nm.style.display == 'none')
	{
		id_nm.style.display='';
	}
	else
	{
		id_nm.style.display='none';
	}
	
}

var message="(C) Stekels & Staartjes";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")
