 var b = new Array();

 
 var title = new Array();
 	
 	

	
 function bikePop(k,w,h){ 
 	var w = w;
 	htm_strktr="<html><head><title id='t1'>" +title[k]+ "</title></head>";
	htm_strktr+="<body scroll='no' style='margin:0px; background-color:#FFFFFF'><a href='javascript:window.close();'><img src='./images/spacer.gif' width='"+w+"' height='"+h+"' name='bikebig' border='0'></a></body></html>";
 	curpic = b[k].src;
	var grBike;//
	if(grBike==undefined){
		if (w == undefined || w == ""){
			grBike = window.open("","fenster","height=420,width=675,left=5,top=220,scrollbars=no,status=no,resizeable=no");
		} else if  (w == 940 || w == "940") {			
			grBike = window.open("","fenster","height=600,width=940,left=5,top=220,scrollbars=no,status=no,resizeable=no");		
		} else if  (w == 850) {			
			grBike = window.open("","fenster","height=565,width=850,left=5,top=220,scrollbars=no,status=no,resizeable=no");		
		} else {			
			grBike = window.open("","fenster","height=452,width=675,left=5,top=220,scrollbars=no,status=no,resizeable=no");
		}
		if(grBike.document.getElementById('t1')!=true){			
			grBike.document.write(htm_strktr);
			grBike.document.bikebig.src = curpic;
			grBike.document.title=title[k];
			grBike.document.close();
			grBike.focus();
			return;
			} 
	}
		
	if(grBike.closed == true){
		alert("Hallo2")
		if(w ==""){
			grBike = window.open("","fenster","height=420,width=675,left=5,top=220,scrollbars=no,status=no,resizeable=no");
		}else{
			grBike = window.open("","fenster","height=600,width=940,left=5,top=220,scrollbars=no,status=no,resizeable=no");
		}
			grBike.focus();
		}								
	if(grBike.closed == false){			
		alert("Hallo3");//
		grBike.close();
			if(w ==""){
				grBike = window.open("","fenster","height=420,width=675,left=5,top=220,scrollbars=no,status=no,resizeable=no");
			}else{
				grBike = window.open("","fenster","height=600,width=940,left=5,top=220,scrollbars=no,status=no,resizeable=no");
			}
				grBike.focus();
			}					
		grBike.document.bikebig.src = curpic;
		grBike.document.title=title[k];
		grBike.focus();
		return void grBike;
	}
		/*if(grBike.closed==true){
				alert("letzte");
				grBike = window.open("","fenster","height=250,width=300,left=5,top=220,scrollbars=no,status=no,resizeable=no");
				grBike.focus();
				//				
				grBike.document.write(htm_strktr);
				grBike.document.bikebig.src = curpic;
				grBike.document.title=title[k];				
				return void grBike;
			}else{
			alert("allerletzte");				
				grBike = window.open("","fenster","height=250,width=300,left=5,top=220,scrollbars=no,status=no,resizeable=no");	
				grBike.focus();
				//grBike.document.write(htm_strktr);
				grBike.document.bikebig.src = curpic;
				grBike.document.title=title[k];				
				return void grBike;
			
		}
 	}*/
//}
