window.onload = doen;

function doen(){
	
	if (document.getElementsByTagName){
		var anchors = document.getElementById('rechts').getElementsByTagName('a');
		var prevanchor = anchors[0];
		for (var i=0; i<anchors.length; i++){
			var anchor = anchors[i];
			if (anchor.getAttribute('href')){
				loc = location.href.split('?')[0]; anch = anchor.href.split('?')[0];
				if (loc.indexOf(anch) == 0)
				{prevanchor.className='';anchor.className='sel';prevanchor=anchor;}
			}
		}
	}	
	if (document.getElementsByTagName){
		var imgs = document.getElementsByTagName('img');
		for (var i=0; i<imgs.length; i++){
			var img = imgs[i];
			if (img.getAttribute('alt')){
				img.title = '' + img.alt;
			}
			}
		}

	if (document.getElementById('pano')){
		document.getElementById('pano').innerHTML = '<embed src="/pano/PurePlayer.swf" width="650" height="500" allowFullScreen="true" type="application/x-shockwave-flash" flashvars="panorama=/pano/' + document.getElementById('pano').innerHTML  +'" />';
	}

}

function zz(pad, w, h, w2, h2){
	
	if (document.body.offsetWidth - 450 > w2) {w = w2; h = h2}
	document.getElementById('img').innerHTML = '<embed width="' + w + '" height="' + (h+20) + '" bgcolor="#002649" src="/_zoom/zoom.swf" flashvars="zoomifyNavigatorVisible=0&zoomifyImagePath=/_zoom/' + pad + '"/>';

}

function go(sr){
	sr = sr.replace(/%20/g,' ');
	for (var i=0; i < imgs.length; i++) {if (sr.indexOf(imgs[i]) > -1) location.href = urls[i]; }
}

function preload(im){
	 for (var i=0; i < im.length; i++) {var pic1= new Image(); pic1.src=im[i] }
}

 