var win=null;
function NewWindow(mypic,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=0}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypic,myname,settings);
/*win.focus(); window.opener = top; window.self.close();*/

win.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">')
win.document.write('<html>')
win.document.write('<head>')
win.document.write('  <title>haller interior architect</title>')
win.document.write('  <link rel="stylesheet" type="text/css" href="scbh.css">')
win.document.write('  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">')
win.document.write('  <meta http-equiv="Page-Enter" content="blendTrans(Duration=2.0)">')
win.document.write('</head>')
win.document.write('<body bgcolor="#333333" text="#cccccc" link="#cccccc" vlink="#cccccc" alink="#FF9900">')
win.document.write('<a href="#" onClick="javascript:self.close();" title="click to close - zum schliessen anklicken">')
win.document.write('<img src="'+mypic+'" border="0"></a>')
win.document.write('</body>')
win.document.write('</html>')
}

function blinker(myvalue) {
  for(i=0; i<document.getElementsByTagName("span").length; i++) {
    if(myvalue == 0) {
      if(document.getElementsByTagName("span")[i].className.substr(0, 5) == "blink") {
	document.getElementsByTagName("span")[i].style.color = "#FF9900";
	}
    } else {
      if(document.getElementsByTagName("span")[i].className.substr(0, 5) == "blink") {
	document.getElementsByTagName("span")[i].style.color = "#666666";
	}
    }
  }
  var zeit = 750;
  if (myvalue == 0) {
    window.setTimeout("blinker(1)", zeit);
  } else {
    window.setTimeout("blinker(0)", zeit);
  }
}