function blinkIt() {
 if (!document.all) return;
 else {
   for(i=0;i<document.all.tags('blink').length;i++){
      s=document.all.tags('blink')[i];
      s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
   }
 }
}

function newpic(pic){
	var ii = 0;
	var search_str = "klein/";
	var replace_str = "";
	var temp = new Image();
	var head = "<html><head>\n<script type=\"text/javascript\">\nfunction resizeWin() {\nwindow.resizeTo(self.document.images[0].width + 30, self.document.images[0].height + 50);\ndocument.title = unescape(self.location.search.substr(1));\nwindow.focus();\n}\n<\/script>\n</head>\n<body onload=\"resizeWin()\">\n";
	var foot = "</body></html>\n";
	var tempvar = "";

	pic = str_replace(search_str, replace_str, pic);
	temp.src = pic;

	var newWindow = window.open('#','headline','height='+(temp.height)+'px, width='+(temp.width)+'px');

	with(newWindow.document){
	  open();
	  write(head+'<img src="'+pic+'">\n'+foot);
	  close();
	}
}

function str_replace(search, replace, subject) {
    return subject.split(search).join(replace);
}

function sleep(ms){
	var zeit=(new Date()).getTime();
	var stoppZeit=zeit+ms;
	while((new Date()).getTime()<stoppZeit){};
}

setInterval('blinkIt()',500);
