		function onSinglePhotoClick(e){
	
	var table= document.getElementById("columnsTable");
	var as = table.getElementsByTagName("a");
	
	for(var n=0; n<as.length; n++) {
		if (as[n].getAttribute("name")=="photoLink"){
		as[n].setAttribute("class","unclicked")
		} 
		
	}
	var fotoNr = e.getAttribute("photoId");
	var fotoPrefix = e.getAttribute("photoPrefix");
	e.setAttribute("class", "clicked")
	var imageSrc = "photos/"+fotoPrefix+fotoNr+".jpg";
	document.getElementById("photo").setAttribute("src",imageSrc);
	
}


function onPhotosClick(e){
	
	var table= document.getElementById("columnsTable");
	var tds = table.getElementsByTagName("td");
	
	
	for(var n=0; n<tds.length; n++) {
		if (tds[n].getAttribute("name")=="tdForPhotoVideo"){
		tds[n].setAttribute("class","inactiveList")
		tds[n].setAttribute("onclick","javascript:onPhotosClick(this)")
		} 
		
	}
	
	var titlesTextAll = table.getElementsByTagName("div");
	
		for(var n=0; n<titlesTextAll.length; n++) {
			if (titlesTextAll[n].getAttribute("name")=="textTitel"){
			titlesTextAll[n].setAttribute("class","titlePhotoVideoInactive")
		}else if (titlesTextAll[n].getAttribute("name")=="textInfo"){
		titlesTextAll[n].setAttribute("class","infoPhotoVideoInactive")
	}else if (titlesTextAll[n].getAttribute("name")=="photosNumbers"){
		titlesTextAll[n].setAttribute("class","numbersPhotoVideoInactive")
	}
	
	}
	
	
	e.setAttribute("class","activeList")
	
	e.removeAttribute("onclick");
	
	var as = e.getElementsByTagName("a");
	for(var n=0; n<as.length; n++) {
		if ((as[n].getAttribute("name")=="photoLink")&&as[n].getAttribute("photoId")=="1"){
		as[n].setAttribute("class","clicked")
		} 
		
	}
	
	
	var titles = e.getElementsByTagName("div")
	
	for(var m=0; m<titles.length; m++) {
		if (titles[m].getAttribute("name")=="textTitel"){
			titles[m].setAttribute("class","titlePhotoVideoActive")
		}else if (titles[m].getAttribute("name")=="textInfo"){
		titles[m].setAttribute("class","infoPhotoVideoActive")
	}else if (titles[m].getAttribute("name")=="photosNumbers"){
		titles[m].setAttribute("class","numbersPhotoVideoActive")
	}
	}
	
	var photosArrayNr = e.getAttribute("photoId");
	var imageSrc = "photos/"+photosArray[photosArrayNr];
	document.getElementById("photo").setAttribute("src",imageSrc);

}



function onVideosClick(e){
	
	var table= document.getElementById("columnsTable");
	var tds = table.getElementsByTagName("td");
	
	
	for(var n=0; n<tds.length; n++) {
		if (tds[n].getAttribute("name")=="tdForPhotoVideo"){
		tds[n].setAttribute("class","inactiveList")
		} 
		
	}
	
	var titlesTextAll = table.getElementsByTagName("div");
	
		for(var n=0; n<titlesTextAll.length; n++) {
			if (titlesTextAll[n].getAttribute("name")=="textTitel"){
			titlesTextAll[n].setAttribute("class","titlePhotoVideoInactive")
		}else if (titlesTextAll[n].getAttribute("name")=="textInfo"){
		titlesTextAll[n].setAttribute("class","infoPhotoVideoInactive")
	}}
	
	
	e.setAttribute("class","activeList")
	
	
	var titles = e.getElementsByTagName("div")
	
	for(var m=0; m<titles.length; m++) {
		if (titles[m].getAttribute("name")=="textTitel"){
			titles[m].setAttribute("class","titlePhotoVideoActive")
		}else if (titles[m].getAttribute("name")=="textInfo"){
		titles[m].setAttribute("class","infoPhotoVideoActive")
	}
	}
	
	var videoArrayNr = e.getAttribute("videoId");
	var movieParam = videosArray[videoArrayNr][0];
	var videoEmbed = videosArray[videoArrayNr][1];
	
	document.getElementById("movieParam").value=movieParam;
	document.getElementById("videoEmbed").setAttribute("src",videoEmbed);
	

}


function linkOver(img){
	var oldName = img.getAttribute("src").split("/");
	var counter=oldName.length-1
	var newName = "http://michelleyjoachim.com/b_h/"+oldName[counter]
	img.setAttribute("src",newName)
}

function linkOut(img){
	var oldName = img.getAttribute("src").split("/");
	var counter=oldName.length-1
	var newName = "http://michelleyjoachim.com/b/"+oldName[counter]
	img.setAttribute("src",newName)
	
}

function linkOverRolfing(img){
	var oldName = img.getAttribute("src").split("/");
	var counter=oldName.length-1
	var newName = "http://michelleyjoachim.com/rolfing/b_h/"+oldName[counter]
	img.setAttribute("src",newName)
}

function linkOutRolfing(img){
	var oldName = img.getAttribute("src").split("/");
	var counter=oldName.length-1
	var newName = "http://michelleyjoachim.com/rolfing/b/"+oldName[counter]
	img.setAttribute("src",newName)
	
}


function linkOverRolfingDE(img){
	var oldName = img.getAttribute("src").split("/");
	var counter=oldName.length-1
	var newName = "http://michelleyjoachim.com/rolfing/de/b_h/"+oldName[counter]
	img.setAttribute("src",newName)
}

function linkOutRolfingDE(img){
	var oldName = img.getAttribute("src").split("/");
	var counter=oldName.length-1
	var newName = "http://michelleyjoachim.com/rolfing/de/b/"+oldName[counter]
	img.setAttribute("src",newName)
	
}