function GetBaseName(file){
	var Parts = file.split('\\');
	if( Parts.length < 2 )
	Parts = file.split('/');
	return Parts[ Parts.length -1 ].replace('.pdf','');
}
Event.observe(window, 'load', function(evnt)
{	
		if($("c179") != null) {
			for(i = 0; i< $("c179").childElements().length-1; i++) {
				if($("c179").childElements()[i].childElements()[0] != null && 
				   $("c179").childElements()[i].childElements()[0].href != null) {
					//alert(GetBaseName($("c179").childElements()[i].childElements()[0].href) + " - " + $("c179").childElements()[i].childElements()[0].innerHTML);
					$("downloads").innerHTML += '<a href="' + $("c179").childElements()[i].childElements()[0].href + '" target="_blank"><img src="fileadmin/fev/downloads/vorschau/' + (GetBaseName($("c179").childElements()[i].childElements()[0].href)) + '.png" alt="' + $("c179").childElements()[i].childElements()[0].innerHTML + '" /></a>';
				}
			}
			var ProtFlowExample = new ProtoFlow($("downloads"), {
					startIndex: 2,  //which image do you want the flow
													//to focus on by default
					slider: true,   //show or hide slider?
					captions: true, //show or hide captions, by default we hide it. 
									//So YOU MUST turn it on here
					useReflection: true,   //Add reflection to your images. Please 
									//note that this will slow down rendering.
					enableOnClickScroll: false //add NEW! if you wish to keep scrolling 
									//on click just set this to be true 
			});
		}
});
