function switchnav(url) {
  this.location.href=url;
}

function zoomImage(image,width,height) {
  width += 15;
  height += 20;
	window.open(image,"busakshambanzoompopup",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=' + width + ',height=' + height);
}

function internationalPopup(url) {
	height=669;
	width=560;


	window.open(url, "internationalpopup",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=' + width + ',height=' + height);
}

function loadLocalSite(url) {
/*
		var time = new Date();
		var ablauf = time.getTime() + (365 * 24 * 60 * 60 * 1000);
		time.setTime(ablauf);*/
		opener.location.href=url;
	/*	document.cookie = "bsCookie=" + url + "; expires=" + time.toGMTString();*/
		self.close();

}

function noPopup() {
		if (document.getElementById("show").checked) {
		var time = new Date();
		var ablauf = time.getTime() + (365 * 24 * 60 * 60 * 1000);
		time.setTime(ablauf);
		document.cookie = "bsCookie=nopopup; expires=" + time.toGMTString();
		}
		self.close();

}


// von torr21

function getScreen() {
	h=screen.availHeight;
	w=screen.availWidth;
}

function fenster(ort,namewin,winw,winh)
{
  getScreen();
  if(winh!='') {
  winw=winw;
  winh=winh;
  }
  else {
  winh=h-30;
  }
  fromleft=((w-winw)/2);
  fromtop=((h-winh)/2);
  win = window.open(ort, namewin, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+winw+',height='+winh+',screenX='+fromleft+',screenY='+fromtop+',left='+fromleft+',top='+fromtop+'');
}


// decode function; 080530 foofoojess_5
function decodeString(src){
		dest			= new String();
		src			= src.split('.');
		for(var i=0;i<src.length;i++){
			dest		+= String.fromCharCode((src[i] ^ 2));
		}
	return dest;
}
