  function removeFocusOnAllLinks(){
  for(var i=0; i<document.links.length; i++) { document.links[i].onfocus = function()   {this.blur();}; }
  }

 function Preload() {
 	var args = Preload.arguments;
	document.imageArray = new Array(args.length);
	for(var i=0; i<args.length; i++) {
		document.imageArray[i] = new Image;
		document.imageArray[i].src = args[i];
	}
   }

function tcr(u) {this.u=u;}

var iL=new Array() 
iL[iL.length]=new tcr("img/vm-gaestehaus-01.jpg");
iL[iL.length]=new tcr("img/vm-gaestehaus-02.jpg");
iL[iL.length]=new tcr("img/vm-gaestehaus-03.jpg");
iL[iL.length]=new tcr("img/vm-gaestehaus-04.jpg");
iL[iL.length]=new tcr("img/vm-gaestehaus-05.jpg");

iLP=0;

function kw_swapImage(p) { // Pop-n-Slide Gallery by Kaosweaver, (c) 2005.
	d=document;nP=Number(iLP)+Number(p);
	if (nP<0 || nP==iL.length) return;iLP=nP;
	d.getElementById('galleryImage').style.backgroundImage="url("+iL[nP].u+")";
	d.getElementById('imgPos').innerHTML=++nP;	
}

function changeImage_v (image) {

	d=document;nP=Number(iLP);
	if (nP==iL.length-1) return;iLP=nP;
var element = document.getElementById("right"); element.style.backgroundImage = "url("+image+")"; }

function changeImage_z (image,p) {

	d=document;nP=Number(iLP)+Number(p);
	if (nP<1) return;iLP=nP;  
var element = document.getElementById("left"); element.style.backgroundImage = "url("+image+")"; }


function restoreBgImage (image, id) 
{ var element = document.getElementById(id); element.style.backgroundImage = "url("+image+")"; } 


function Scrollin(elmID)
{document.getElementById('elmID').scrollIntoView(false); }

