function thumbWindow(mypage, myname, w, h,fit_to_screen, imgtoolbar, onclick, onblur, copyprotect, mosConfig_live_site) {
	var orig_w = w;
	var orig_h = h;
	var scroll = '0';
	var winl = (screen.availWidth - w) / 2;
	var wint = (screen.availHeight - h) / 2;
	//Browser-detection
	var agt=navigator.userAgent.toLowerCase();
	var ie  = (agt.indexOf("msie") != -1);
	var ns  = (navigator.appName.indexOf("Netscape") != -1);
	
	if(ns) {
		sbreite = screen.availWidth - 21;
	}
	else {
		sbreite = screen.availWidth - 25;
	}
	if ( fit_to_screen && (orig_w>sbreite) ) {
		sheight = Math.round (sbreite * (orig_h / orig_w ));
		rw = 'width="'+sbreite+'" height="'+sheight+'"';		
	} else {
		rw = 'width="'+orig_w+'" height="'+orig_h+'"';
	}
	if (winl < 0) { winl = 0; w = screen.availWidth -6; scroll = 1;}
	if (wint < 0) { wint = 0; h = screen.availHeight - 32; scroll = 1;}
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
	
	win = window.open('', 'myThumb', winprops)
	win.document.open();
							win.document.write('\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n');
							win.document.write('<html><head>');
	if (imgtoolbar==0) { 	win.document.write('\n<meta http-equiv="imagetoolbar" content="false" />'); }
							win.document.write('\n<scr' + 'ipt type="text/javascr' + 'ipt" language="JavaScr' + 'ipt">');
							win.document.write("\nfunction click() { window.close(); } ");  // bei click  schliessen
  	if (onclick==1) {		win.document.write("\ndocument.onmousedown=click "); }
  							win.document.write('\n</scr' + 'ipt>');
							win.document.write('\n<title>'+myname+'</title></head>');
							win.document.write('\n<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"');
	if (onblur==1){			win.document.write(' onBlur="window.close()">'); }
	else {					win.document.write('>'); }
	if (copyprotect==1 && !fit_to_screen) {	
							win.document.write('\n<table border="0" cellpadding="0" cellspacing="0" background="'+mypage+'"><tr><td>');
							win.document.write('\n<img src="'+mosConfig_live_site+'/mambots/content/mosthumbpro/image_copy_protected!.gif" alt="'+myname+'" title="'+myname+'" border="0" '+rw+' />');
							win.document.write('\n</td></tr></table>');  }
	else if (copyprotect==1) {
							win.document.write('\n<span style="position: absolute; visibility: visible; top: 0px;">');
							win.document.write('\n<img src="'+mosConfig_live_site+'/mambots/content/mosthumbpro/image_copy_protected!.gif" alt="'+myname+'" title="'+myname+'" border="0" '+rw+' />');
							win.document.write('\n</span>');
							win.document.write('\n<img src="'+mypage+'" alt="'+myname+'" title="'+myname+'" border="0" '+rw+' />'); 
							
							}
	else {					win.document.write('\n<img src="'+mypage+'" alt="'+myname+'" title="'+myname+'" border="0" '+rw+' />'); }
							win.document.write('\n</body></html>');
	win.document.close();
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }

}
	
