image1 = new Image();
image1.src = "img/menu/home.gif";
image2 = new Image();
image2.src = "img/menu/home-2.gif";

image3 = new Image();
image3.src = "img/menu/nieuws.gif";
image4 = new Image();
image4.src = "img/menu/nieuws-2.gif";

image5 = new Image();
image5.src = "img/menu/about.gif";
image6 = new Image();
image6.src = "img/menu/about-2.gif";

image7 = new Image();
image7.src = "img/menu/kerkenorgels.gif";
image8 = new Image();
image8.src = "img/menu/kerkenorgels-2.gif";

image9 = new Image();
image9.src = "img/menu/links.gif";
image10 = new Image();
image10.src = "img/menu/links-2.gif";


image11 = new Image();
image11.src = "img/menu/contact.gif";
image12 = new Image();
image12.src = "img/menu/contact-2.gif";

var cur_gal_image = 0;
function show_next_gal_image()
{
	if(gal_images.length==0)
		return;
	var img = document.getElementById('gal_image');
	img.src = gal_images[cur_gal_image][0];
	img.alt = gal_images[cur_gal_image][1];
	document.getElementById('gal_image_label').innerHTML = gal_images[cur_gal_image][1];
	cur_gal_image++;
	if(cur_gal_image >= gal_images.length)
		cur_gal_image = 0;
}

function showme(objectid,showing)
{
  var object = document.getElementById(objectid);
  if (showing)
  {
    object.style.visibility = 'visible';
  }
  else
  {
    object.style.visibility = 'hidden';
  }
}
function externalLinks() {
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
for (var i=0; i<anchors.length; i++) {
var anchor = anchors[i];
if (anchor.getAttribute("href") &&
anchor.getAttribute("rel") == "external")
anchor.target = "_blank";
}
}
window.onload = externalLinks;


	var popupWindow = null;

	

	function closePopupWindow() {

	if (popupWindow && (typeof(popupWindow.closed) != 'undefined') &&

	!popupWindow.closed) popupWindow.close();

	popupWindow = null;

	}

	

	window.onunload = function() {

	closePopupWindow();

	}

	

	function openWindow(url, width, height) {

	if (!window.open) return true;

	var x = (screen.width -width) >> 1;

	var y = (screen.height-height) >> 1;

	closePopupWindow();

	popupWindow = window.open(url, 'windownaam',

	'width=' + width +

	',height=' + height +

	',left=' + x +

	',top=' + y +

	',screenX=' + x +

	',screenY=' + y +

	',scrollbars=no');

	if (!popupWindow) return true;

	popupWindow.focus();

	return false;

	}
