var arrPics = new Array();

//Zwangerschap & Baby's
var arrPics1 = new Array();
arrPics1.push(new Array("gallery1/pic1icon.jpg","gallery1/pic1.jpg"))
arrPics1.push(new Array("gallery1/pic2icon.jpg","gallery1/pic2.jpg"))
arrPics1.push(new Array("gallery1/pic3icon.jpg","gallery1/pic3.jpg"))
arrPics1.push(new Array("gallery1/pic4icon.jpg","gallery1/pic4.jpg"))
arrPics1.push(new Array("gallery1/pic5icon.jpg","gallery1/pic5.jpg"))
arrPics1.push(new Array("gallery1/pic6icon.jpg","gallery1/pic6.jpg"))
arrPics1.push(new Array("gallery1/pic7icon.jpg","gallery1/pic7.jpg"))
arrPics1.push(new Array("gallery1/pic8icon.jpg","gallery1/pic8.jpg"))
arrPics1.push(new Array("gallery1/pic9icon.jpg","gallery1/pic9.jpg"))

//Kinderen
var arrPics2 = new Array();
arrPics2.push(new Array("gallery2/pic1icon.jpg","gallery2/pic1.jpg"))
arrPics2.push(new Array("gallery2/pic2icon.jpg","gallery2/pic2.jpg"))
arrPics2.push(new Array("gallery2/pic3icon.jpg","gallery2/pic3.jpg"))
arrPics2.push(new Array("gallery2/pic4icon.jpg","gallery2/pic4.jpg"))
arrPics2.push(new Array("gallery2/pic5icon.jpg","gallery2/pic5.jpg"))
arrPics2.push(new Array("gallery2/pic6icon.jpg","gallery2/pic6.jpg"))
arrPics2.push(new Array("gallery2/pic7icon.jpg","gallery2/pic7.jpg"))
arrPics2.push(new Array("gallery2/pic8icon.jpg","gallery2/pic8.jpg"))
arrPics2.push(new Array("gallery2/pic9icon.jpg","gallery2/pic9.jpg"))
arrPics2.push(new Array("gallery2/pic10icon.jpg","gallery2/pic10.jpg"))

//Communie
var arrPics3 = new Array();
arrPics3.push(new Array("gallery3/pic1icon.jpg","gallery3/pic1.jpg"))
arrPics3.push(new Array("gallery3/pic2icon.jpg","gallery3/pic2.jpg"))
arrPics3.push(new Array("gallery3/pic3icon.jpg","gallery3/pic3.jpg"))
arrPics3.push(new Array("gallery3/pic4icon.jpg","gallery3/pic4.jpg"))
arrPics3.push(new Array("gallery3/pic5icon.jpg","gallery3/pic5.jpg"))
arrPics3.push(new Array("gallery3/pic6icon.jpg","gallery3/pic6.jpg"))
arrPics3.push(new Array("gallery3/pic7icon.jpg","gallery3/pic7.jpg"))
arrPics3.push(new Array("gallery3/pic8icon.jpg","gallery3/pic8.jpg"))
arrPics3.push(new Array("gallery3/pic9icon.jpg","gallery3/pic9.jpg"))
arrPics3.push(new Array("gallery3/pic10icon.jpg","gallery3/pic10.jpg"))

//Trouwreportages
var arrPics4 = new Array();
arrPics4.push(new Array("gallery4/pic1icon.jpg","gallery4/pic1.jpg"))
arrPics4.push(new Array("gallery4/pic2icon.jpg","gallery4/pic2.jpg"))
arrPics4.push(new Array("gallery4/pic3icon.jpg","gallery4/pic3.jpg"))
arrPics4.push(new Array("gallery4/pic4icon.jpg","gallery4/pic4.jpg"))
arrPics4.push(new Array("gallery4/pic5icon.jpg","gallery4/pic5.jpg"))
arrPics4.push(new Array("gallery4/pic6icon.jpg","gallery4/pic6.jpg"))
arrPics4.push(new Array("gallery4/pic7icon.jpg","gallery4/pic7.jpg"))
arrPics4.push(new Array("gallery4/pic8icon.jpg","gallery4/pic8.jpg"))
arrPics4.push(new Array("gallery4/pic9icon.jpg","gallery4/pic9.jpg"))
arrPics4.push(new Array("gallery4/pic10icon.jpg","gallery4/pic10.jpg"))

//Glamourportret
var arrPics5 = new Array();
arrPics5.push(new Array("gallery5/pic1icon.jpg","gallery5/pic1.jpg"))
arrPics5.push(new Array("gallery5/pic2icon.jpg","gallery5/pic2.jpg"))
arrPics5.push(new Array("gallery5/pic3icon.jpg","gallery5/pic3.jpg"))
arrPics5.push(new Array("gallery5/pic4icon.jpg","gallery5/pic4.jpg"))
arrPics5.push(new Array("gallery5/pic5icon.jpg","gallery5/pic5.jpg"))
arrPics5.push(new Array("gallery5/pic6icon.jpg","gallery5/pic6.jpg"))
arrPics5.push(new Array("gallery5/pic7icon.jpg","gallery5/pic7.jpg"))
arrPics5.push(new Array("gallery5/pic8icon.jpg","gallery5/pic8.jpg"))
arrPics5.push(new Array("gallery5/pic9icon.jpg","gallery5/pic9.jpg"))
arrPics5.push(new Array("gallery5/pic10icon.jpg","gallery5/pic10.jpg"))

//Portretten
var arrPics6 = new Array();
arrPics6.push(new Array("gallery6/pic1icon.jpg","gallery6/pic1.jpg"))
arrPics6.push(new Array("gallery6/pic2icon.jpg","gallery6/pic2.jpg"))
arrPics6.push(new Array("gallery6/pic3icon.jpg","gallery6/pic3.jpg"))
arrPics6.push(new Array("gallery6/pic4icon.jpg","gallery6/pic4.jpg"))
arrPics6.push(new Array("gallery6/pic5icon.jpg","gallery6/pic5.jpg"))
arrPics6.push(new Array("gallery6/pic6icon.jpg","gallery6/pic6.jpg"))
arrPics6.push(new Array("gallery6/pic7icon.jpg","gallery6/pic7.jpg"))
arrPics6.push(new Array("gallery6/pic8icon.jpg","gallery6/pic8.jpg"))
arrPics6.push(new Array("gallery6/pic9icon.jpg","gallery6/pic9.jpg"))
arrPics6.push(new Array("gallery6/pic10icon.jpg","gallery6/pic10.jpg"))

//Geboortekaartjes
var arrPics7 = new Array();
arrPics7.push(new Array("gallery7/pic1icon.jpg","gallery7/pic1.jpg"))
arrPics7.push(new Array("gallery7/pic2icon.jpg","gallery7/pic2.jpg"))
arrPics7.push(new Array("gallery7/pic3icon.jpg","gallery7/pic3.jpg"))
arrPics7.push(new Array("gallery7/pic4icon.jpg","gallery7/pic4.jpg"))
arrPics7.push(new Array("gallery7/pic5icon.jpg","gallery7/pic5.jpg"))
arrPics7.push(new Array("gallery7/pic6icon.jpg","gallery7/pic6.jpg"))
arrPics7.push(new Array("gallery7/pic7icon.jpg","gallery7/pic7.jpg"))
arrPics7.push(new Array("gallery7/pic8icon.jpg","gallery7/pic8.jpg"))
arrPics7.push(new Array("gallery7/pic9icon.jpg","gallery7/pic9.jpg"))
arrPics7.push(new Array("gallery7/pic10icon.jpg","gallery7/pic10.jpg"))

function writeReclame(){
	//var text = "<A href='fotoboek/default.asp' target='_blanc'>&nbsp;</A>"
	var text = "<A href='fotoboek/default.asp' target='_blanc'>De Communiefoto's staan online... Klik hier, kijk snel in ons fotoboek en bestel uw kwaliteitsafdrukken!</A>"
	if (document.getElementById){
		x = document.getElementById("reclame");
		x.innerHTML = '';
		x.innerHTML = text;
	}else if (document.all){
		x = document.all[menu];
		x.innerHTML = text;
	}else if (document.layers){
		x = document.layers[menu];
		text2 = '<P CLASS="testclass">' + text + '</P>;';
		x.document.open();
		x.document.write(text2);
		x.document.close();
	}
}
function writeMain(){
	var text;
	text = "<table width='100%' border='0' cellspacing='0' cellpadding='0'>"
		text = text +  "<tr>"
			text = text +  "<td width='125' height='207' style='border-left:0px solid #FFFFFF;border-top:0px solid #FFFFFF;border-right:1px solid #FFFFFF;border-bottom:1px solid #FFFFFF;' colspan='2' rowspan='2'><A href='print.html'><img src='promo.jpg' alt='' border='0'></A></td>"
			//text = text +  "<td width='125' height='207' style='border-left:1px solid #FFFFFF;border-top:0px solid #FFFFFF;border-right:1px solid #FFFFFF;border-bottom:1px solid #FFFFFF;'>&nbsp;</td>"
			text = text +  "<td width='125' height='207' style='border-left:1px solid #FFFFFF;border-top:0px solid #FFFFFF;border-right:1px solid #FFFFFF;border-bottom:1px solid #FFFFFF;'><A href=\"Javascript:writeMenu(1);\"><img src='gallery1/gallery1.jpg' height='207' width='127' border='0' class='hideAlpha' onmouseover=\"this.className='showAlpha'\" onmouseout=\"this.className='hideAlpha'\"></A></td>"
			text = text +  "<td width='125' height='207' style='border-left:1px solid #FFFFFF;border-top:0px solid #FFFFFF;border-right:1px solid #FFFFFF;border-bottom:1px solid #FFFFFF;'><A href=\"Javascript:writeMenu(2);\"><img src='gallery2/gallery2.jpg' height='207' width='127' border='0' class='hideAlpha' onmouseover=\"this.className='showAlpha'\" onmouseout=\"this.className='hideAlpha'\"></A></td>"
			text = text +  "<td width='125' height='207' style='border-left:1px solid #FFFFFF;border-top:0px solid #FFFFFF;border-right:1px solid #FFFFFF;border-bottom:1px solid #FFFFFF;'><A href=\"Javascript:writeMenu(3);\"><img src='gallery3/gallery3.jpg' height='207' width='127' border='0' class='hideAlpha' onmouseover=\"this.className='showAlpha'\" onmouseout=\"this.className='hideAlpha'\"></A></td>"
			text = text +  "<td width='125' height='207' style='border-left:1px solid #FFFFFF;border-top:0px solid #FFFFFF;border-right:0px solid #FFFFFF;border-bottom:1px solid #FFFFFF;'><A href=\"Javascript:writeMenu(7);\"><img src='gallery7/gallery7.jpg' height='207' width='127' border='0' class='hideAlpha' onmouseover=\"this.className='showAlpha'\" onmouseout=\"this.className='hideAlpha'\"></A></td>"
		text = text +  "</tr>"
		text = text +  "<tr>"
			//text = text +  "<td width='125' height='207' style='border-left:0px solid #FFFFFF;border-top:1px solid #FFFFFF;border-right:1px solid #FFFFFF;border-bottom:0px solid #FFFFFF;'>&nbsp;</td>"
			//text = text +  "<td width='125' height='207' style='border-left:1px solid #FFFFFF;border-top:1px solid #FFFFFF;border-right:1px solid #FFFFFF;border-bottom:0px solid #FFFFFF;'>&nbsp;</td>"
			text = text +  "<td width='125' height='207' style='border-left:1px solid #FFFFFF;border-top:1px solid #FFFFFF;border-right:1px solid #FFFFFF;border-bottom:0px solid #FFFFFF;'><A href=\"Javascript:writeMenu(4);\"><img src='gallery4/gallery4.jpg' height='207' width='127' border='0' class='hideAlpha' onmouseover=\"this.className='showAlpha'\" onmouseout=\"this.className='hideAlpha'\"></A></td>"
			text = text +  "<td width='125' height='207' style='border-left:1px solid #FFFFFF;border-top:1px solid #FFFFFF;border-right:1px solid #FFFFFF;border-bottom:0px solid #FFFFFF;'><A href=\"Javascript:writeMenu(5);\"><img src='gallery5/gallery5.jpg' height='207' width='127' border='0' class='hideAlpha' onmouseover=\"this.className='showAlpha'\" onmouseout=\"this.className='hideAlpha'\"></A></td>"
			text = text +  "<td width='125' height='207' style='border-left:1px solid #FFFFFF;border-top:1px solid #FFFFFF;border-right:1px solid #FFFFFF;border-bottom:0px solid #FFFFFF;'><A href=\"Javascript:writeMenu(6);\"><img src='gallery6/gallery6.jpg' height='207' width='127' border='0' class='hideAlpha' onmouseover=\"this.className='showAlpha'\" onmouseout=\"this.className='hideAlpha'\"></A></td>"
			text = text +  "<td width='125' height='207' style='border-left:1px solid #FFFFFF;border-top:1px solid #FFFFFF;border-right:0px solid #FFFFFF;border-bottom:0px solid #FFFFFF;'>&nbsp;</td>"
		text = text +  "</tr>"
	text = text +  "</table>"
	
	if (document.getElementById){
		x = document.getElementById("content");
		x.innerHTML = '';
		x.innerHTML = text;
	}else if (document.all){
		x = document.all[content];
		x.innerHTML = text;
	}else if (document.layers){
		x = document.layers[content];
		text2 = '<P CLASS="testclass">' + text + '</P>;';
		x.document.open();
		x.document.write(text2);
		x.document.close();
	}
}

function writeMenu(galleryNr){
	var text;
	switch (galleryNr){
		case 1:
			arrPics = arrPics1;
		break
		case 2:
			arrPics = arrPics2;
		break
		case 3:
			arrPics = arrPics3;
		break
		case 4:
			arrPics = arrPics4;
		break
		case 5:
			arrPics = arrPics5;
		break
		case 6:
			arrPics = arrPics6;
		break
		case 7:
			arrPics = arrPics7;
		break
		default:
			arrPics = arrPics1;
	}

	text = "<table class='menu' style='width:773px;height:50px;' border='0' cellspacing='1' cellpadding='0'>"
		text = text + "<tr><td style='text-align:left;'><img src='direction2.jpg' alt='Terug naar overzicht' height='40' width='120' onMouseOver=\"this.className='showHand'\" onMouseOut=\"this.className='hideHand'\" onClick=\"writeMenu(0);writeMain();\"></td><td style='text-align:right;'>"
		text = text +  "<img src='direction1.jpg' alt='Kies een afbeelding' height='40' width='120'>"
			for (i=0; i<arrPics.length; i++){
				text = text +  "<img src='"+arrPics[i][0]+"' alt='Afbeelding groot weergeven' style='border:solid 1px #333333;' height='40' width='40' onMouseOver=\"this.className='showHand'\" onMouseOut=\"this.className='hideHand'\" onClick=\"writeImage('"+arrPics[i][1]+"')\">"
			}
		text = text +  "</td></tr>"
	text = text +  "</table>"

	if (galleryNr == 0) text = ""
	
	if (document.getElementById){
		x = document.getElementById("menu");
		x.innerHTML = '';
		x.innerHTML = text;
	}else if (document.all){
		x = document.all[menu];
		x.innerHTML = text;
	}else if (document.layers){
		x = document.layers[menu];
		text2 = '<P CLASS="testclass">' + text + '</P>;';
		x.document.open();
		x.document.write(text2);
		x.document.close();
	}
	
	writeImage(arrPics[0][1])
}

function writeImage(pad){
	var text;
	text = "<table style='width:100%;height:100%;text-align:center;'><tr><td><img src='"+pad+"' alt=''></td></tr></table>"
	
	if (document.getElementById){
		x = document.getElementById("content");
		x.innerHTML = '';
		x.innerHTML = text;
	}else if (document.all){
		x = document.all[content];
		x.innerHTML = text;
	}else if (document.layers){
		x = document.layers[content];
		text2 = '<P CLASS="testclass">' + text + '</P>;';
		x.document.open();
		x.document.write(text2);
		x.document.close();
	}
}

function showUploadDialog(){

}
			
function cursor(){
	var yPos = event.clientY
	if (yPos < 424 && yPos > 55){
		document.getElementById('menu').style.top=event.clientY - 22
	}
}

ns = (document.layers)? true:false
ie = (document.all)? true:false

if (ns) document.captureEvents(Event.MOUSEMOVE | Event.MOUSEDOWN)

document.onmousedown = mouseDown;
document.oncontextmenu = mouseDown;

function mouseDown(ev) {
  if (ie) {
	if (event.button != 1) {
	  return false;
	}
  }
  if (ns) {
	if (ev.which == 3) {
	  return false;
	}
  }
}

//<A href="javascript:openElka()"><IMG src='upload.jpg' alt='' border='0'></A>
function openElka(){
	var winl = ((screen.width) / 2) - 320;
	var wint = ((screen.height) / 2) - 215;

	windowName = "pictureWindow";
	windowURL = "elka.html";
	myWindow = window.open(windowURL, windowName,'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=640, height=430,top='+wint+',left='+winl+'');
	myWindow.focus();
}

function closeElka(){
	window.close();
}
