/* ow [start] */
var dimx=800; var dimy=600; var xEcran=640; var yEcran=420;
if (top.screen) {if(screen.width && screen.height){xEcran = screen.width; yEcran = screen.height;}}	
function ow(url){		
dimx = xEcran; xPos=0; dimy = yEcran; yPos=(yEcran - dimy)/2;
featur = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,screenX="+xPos+",left="+xPos+",screenY="+yPos+",top="+yPos+",width="+ dimx + ",height=" + dimy + "";
      zoomJuttaVirus = window.open(url,'RemoteJuttaVirus',featur);
	  if (window.focus && zoomJuttaVirus) {zoomJuttaVirus.focus();}
	  return false;  
}
function owKontakt(url){		
dimx = 400; xPos=(xEcran - dimx)-10; dimy = 290; yPos=0;
featur = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,screenX="+xPos+",left="+xPos+",screenY="+yPos+",top="+yPos+",width="+ dimx + ",height=" + dimy + "";
      zoomKontakt = window.open(url,'RemoteKontakt',featur);
	  if (window.focus && zoomKontakt) {zoomKontakt.focus();}
	  return false;  
}
function owObjekt(url){			
dimx = 775; xPos=(xEcran - dimx)-10; dimy = 550; yPos=0;
featur = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,screenX="+xPos+",left="+xPos+",screenY="+yPos+",top="+yPos+",width="+ dimx + ",height=" + dimy + "";
      zoomObjekt = window.open(url,'RemoteObjekt',featur);
	  if (window.focus && zoomObjekt) {zoomObjekt.focus();}
	  return false;  
}
function closeOw(){
	window.close();
}
/* ow [end] */

/* set links [start] */
function setLinks() {
	var x = document.getElementsByTagName('a');
	for (var i=0;i<x.length;i++) {
		x[i].onfocus = function () {if(this.blur)this.blur();}		
		if (x[i].getAttribute('target') == 'project'){
			x[i].onclick = function () {
				return ow(this.href)
			}			
		}
		if (x[i].getAttribute('target') == 'kontakt'){
			x[i].onclick = function () {
				return owKontakt(this.href)
			}			
		}
		if (x[i].className == 'close'){
			x[i].onclick = function () {
				return closeOw()
			}			
		}
		if (x[i].parentNode.id == "objektkunstImgs") {
			x[i].onclick = function () {
				return owObjekt(this.href)
			}
		}
	}	
}
/* set links [stop] */

/* init */
function init(){
setLinks();
}