function winny(arg1,arg2,arg3,arg4){
switch(arg1){
	case 'auf' :
		window.open(arg2,'my' + Math.round(1000 * Math.random()),'top=12,left=12,width=' + arg3 + ',height=' + arg4 + ',status=1,scrollbars=1,scroll=1,menuebar=0,toolbar=0,resizable=0');
	break;
	case 'baum' :
		grashalm = '';
		if(arg2.nodeName == 'A' && arg2.className == 'newwin'){
			arg2.removeAttribute('target');
			dim = arg2.getAttribute('title').substring(arg2.getAttribute('title').lastIndexOf(' - ') + 3,arg2.getAttribute('title').length - 2).replace('px','').replace(/ /g,'').split('x');
			grashalm = 'javascript:winny(\'auf\',\'' + arg2.getAttribute('href') + '\',' + dim[0] + ',' + dim[1] + ')';
			arg2.setAttribute('href',grashalm);
			}
		if(grashalm == ''){
			var wiese = arg2.childNodes;
			for(var i = 0 ; i < wiese.length ; i++){
				winny('baum',(wiese[i]));
				}
			}
	break;	
	}
}


startLoop = function(){
if(document.getElementById)winny('baum',document.getElementsByTagName('body')[0]);
}

window.onload = startLoop;
