function highlight_portret(i){
	document.getElementById('portret'+i).src = 'images/portret/portret'+i+'_thumb.jpg';
}
function highlight_atletiek(i){
	document.getElementById('atletiek'+i).src = 'images/sport/atletiek/atletiek'+i+'_thumb.jpg';
}
function highlight_landschap(i){
	document.getElementById('landschap'+i).src = 'images/landschap/landschap'+i+'_thumb.jpg';
}

function highlight_out_portret(i){
	document.getElementById('portret'+i).src = 'images/portret/portret'+i+'_zw.jpg';
}
function highlight_out_atletiek(i){
	document.getElementById('atletiek'+i).src = 'images/sport/atletiek/atletiek'+i+'_zw.jpg';
}
function highlight_out_landschap(i){
	document.getElementById('landschap'+i).src = 'images/landschap/landschap'+i+'_zw.jpg';
}

function portret_next_page(i){
	document.getElementById('portret-div1').className = 'div_hidden';
	document.getElementById('portret-div2').className = 'div_hidden';
	document.getElementById('portret-div'+i).className = 'div_show';
}

function portret_prev_page(i){
	
	document.getElementById('portret-div1').className = 'div_hidden';
	document.getElementById('portret-div2').className = 'div_hidden';
	document.getElementById('portret-div'+i).className = 'div_show';
	
}

function show_picture(i, p){
	
	document.getElementById('thumb_holder').style.display = 'none';
	if (p == 'ver')
	{
	document.getElementById('image_div_vert').style.display = 'block';
	document.getElementById('image_div_hor').style.display = 'none';
	document.getElementById('image_holder').src = 'images/portret/portret'+i+'.jpg';
	document.getElementById('close_button').className = 'show';
	document.getElementById('info_button').className = 'show';
	}
	else
	{
	document.getElementById('image_div_vert').style.display = 'none';
	document.getElementById('image_div_hor').style.display = 'block';
	document.getElementById('image_holder_hor').src = 'images/portret/portret'+i+'.jpg';
	document.getElementById('close_button2').className = 'show';
	document.getElementById('info_button2').className = 'show';
	}
	
	x=document.getElementById("portret_desc_"+i);
	//document.write(x.firstChild.nodeValue);
	//alert(x.firstChild.nodeValue);
	p=document.getElementById("foto_info");
	//alert(p.firstChild.nodeValue);
	p.firstChild.nodeValue = x.firstChild.nodeValue;
	t=document.getElementById("foto_info_hor");
	//alert(p.firstChild.nodeValue);
	t.firstChild.nodeValue = x.firstChild.nodeValue;
}

function show_picture_atletiek(i, p){
	
	document.getElementById('thumb_holder').style.display = 'none';
	if (p == 'ver')
	{
	document.getElementById('image_div_vert').style.display = 'block';
	document.getElementById('image_div_hor').style.display = 'none';
	
	document.getElementById('image_holder').src = 'images/sport/atletiek/atletiek'+i+'.jpg';
	document.getElementById('close_button').className = 'show';
	document.getElementById('info_button').className = 'show';
	}
	else
	{
	document.getElementById('image_div_vert').style.display = 'none';
	document.getElementById('image_div_hor').style.display = 'block';
	document.getElementById('image_holder_hor').src = 'images/sport/atletiek/atletiek'+i+'.jpg';
	document.getElementById('close_button2').className = 'show';
	document.getElementById('info_button2').className = 'show';
	}
	
	x=document.getElementById("portret_desc_"+i);
	//document.write(x.firstChild.nodeValue);
	//alert(x.firstChild.nodeValue);
	p=document.getElementById("foto_info");
	//alert(p.firstChild.nodeValue);
	p.firstChild.nodeValue = x.firstChild.nodeValue;
	t=document.getElementById("foto_info_hor");
	//alert(p.firstChild.nodeValue);
	t.firstChild.nodeValue = x.firstChild.nodeValue;
}

function show_picture_landschap(i, p){
	
	document.getElementById('thumb_holder').style.display = 'none';
	if (p == 'ver')
	{
	document.getElementById('image_div_vert').style.display = 'block';
	document.getElementById('image_div_hor').style.display = 'none';
	
	document.getElementById('image_holder').src = 'images/landschap/landschap'+i+'.jpg';
	document.getElementById('close_button').className = 'show';
	document.getElementById('info_button').className = 'show';
	}
	else
	{
	document.getElementById('image_div_vert').style.display = 'none';
	document.getElementById('image_div_hor').style.display = 'block';
	document.getElementById('image_holder_hor').src = 'images/landschap/landschap'+i+'.jpg';
	document.getElementById('close_button2').className = 'show';
	document.getElementById('info_button2').className = 'show';
	}
	
	x=document.getElementById("portret_desc_"+i);
	//document.write(x.firstChild.nodeValue);
	//alert(x.firstChild.nodeValue);
	p=document.getElementById("foto_info");
	//alert(p.firstChild.nodeValue);
	p.firstChild.nodeValue = x.firstChild.nodeValue;
	t=document.getElementById("foto_info_hor");
	//alert(p.firstChild.nodeValue);
	t.firstChild.nodeValue = x.firstChild.nodeValue;
}

function closing_image(){
onClick=history.go(0);
}

