
var win = null;
function open_Popup(mypage, myname, w, h, scroll) {
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
  win = window.open(mypage,myname,settings)
}

var atk="'";

function click() 
{
if (event.button==2) 
{
 alert('Ahoy - www.ahoy.nl');
}
}
document.onmousedown=click


function blockError(){return true;}

window.onerror = blockError;

function fade(id, fadestart, fadeend, speed) {
	var timer = 0;
	var speed = Math.round(speed / 100);

	if(fadestart > fadeend) {
		for(i = fadestart; i >= fadeend; i--) {
			setTimeout("fadeobject(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	} else if(fadestart < fadeend) {
		for(i = fadestart; i <= fadeend; i++)
			{
			setTimeout("fadeobject(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	}
}

function fadeobject(opacity, id) {
	var object = document.getElementById(id).style; 
	object.opacity = (opacity / 100);
	object.MozOpacity = (opacity / 100);
	object.KhtmlOpacity = (opacity / 100);
	object.filter = "alpha(opacity=" + opacity + ")";
}

function slide(){
if (c==1){
fade('i1', 0, 100, 1000);
document.getElementById('i1').src=imgn+t+imge;
c=0;
}
else{
fade('i1', 100, 0, 1000);
document.getElementById('tds').style.backgroundImage='url('+imgn+t+imge+')';
c=1;
}
t=t+1;
if (t>tt) {t=1}
}

function mover(im){
document.getElementById(im).style.backgroundImage="url('gfx/bg-menuitem-o.jpg')";
}
function mout(im){
document.getElementById(im).style.backgroundImage="url('gfx/bg-menuitem.jpg')";
}