// JavaScript Document

	if (navigator.appVersion.substring(0,1) > 3) {
		strBreite = screen.width;}
	if (strBreite>=1280) {
		document.write('<link rel=stylesheet type="text/css" href="css/design.css" />');
		document.write('<link rel=stylesheet type="text/css" href="css/design.css" />')}
	if (strBreite<1280) {
		document.write('<link rel=stylesheet type="text/css" href="css/design_1024.css" />');
		document.write('<link rel=stylesheet type="text/css" href="css/design_1024.css" />')}
	if (strBreite<1024) {
		document.write('<link rel=stylesheet type="text/css" href="css/design_800.css" />');
		document.write('<link rel=stylesheet type="text/css" href="css/design_800.css" />')}

function jpgein(i) {
        if (document.images) {
             var src = document.images[i].src;
             var aus = src.lastIndexOf("aus");
             if (aus != -1) {
                var newsrc = src.substring(0,aus) + "ein";
                document.images[i].src = newsrc + ".jpg";
               }
         }
     }

function jpgaus(i) {
         if (document.images) {
              var src = document.images[i].src;
              var ein = src.lastIndexOf("ein");
              if (ein != -1) {
                 var newsrc = src.substring(0,ein) + "aus";
                 document.images[i].src = newsrc + ".jpg";
             }
        }
     }

function ein(i) {
        if (document.images) {
             var src = document.images[i].src;
             var aus = src.lastIndexOf("aus");
             if (aus != -1) {
                var newsrc = src.substring(0,aus) + "ein";
                document.images[i].src = newsrc + ".gif";
               }
         }
     }

function aus(i) {
         if (document.images) {
              var src = document.images[i].src;
              var ein = src.lastIndexOf("ein");
              if (ein != -1) {
                 var newsrc = src.substring(0,ein) + "aus";
                 document.images[i].src = newsrc + ".gif";
             }
        }
     }

function GetURL(){
			var selindex=document.form1.URL.selectedIndex;
			var seltext=document.form1.URL.options[selindex].text;
			var selurl=document.form1.URL.options[selindex].value;
			
							
			if ( document.form1.URL.options[selindex].value = "" ) {
				location="jb2001_2.htm";
				} else { location=selurl; }
			}

function openNewPictureWindow(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) { 
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');
	if (imageType == "swf"){
	newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"../download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
	newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"../www.macromedia.com/shockwave/download/index.cgi@P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('</embed></object>');	}else{
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	}
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}
function windowload() {
		 if (navigator.userAgent.indexOf("MSIE")!=-1) {	
			if (strBreite<1024) {
				document.all.menutab.width="772";/// 42
				document.all.archtop.width="772";
				document.all.menutab.cellpading="2";
				document.all.tab2.width="772";
				document.all.tab2.cellpading="2";
				document.all.mitteltab.width="772";
				document.all.mitteltab.cellpading="2";
				document.all.untentab.width="772";
				document.all.untentab.cellpading="2";
				document.all.fusstab.width="772";
				document.all.fusstab.cellpading="2";
				document.all.menutab.height="40";
				document.all.archtop.height="14";
				document.all.tab2.height="120";
				document.all.mitteltab.height="158";
				document.all.untentab.height="250";
				document.all.odh.height="35";
				document.all.odh.width="35";
				document.all.img_men_rechts.height="15";
				document.all.img_men_rechts.width="2";
			} else {
				if (strBreite<1280) {
					document.all.menutab.width="996";/// 40
					document.all.archtop.width="996";
					document.all.menutab.cellpading="5";
					document.all.tab2.width="996";
					document.all.tab2.cellpading="5";
					document.all.mitteltab.width="996";
					document.all.mitteltab.cellpading="5";
					document.all.untentab.width="996";
					document.all.untentab.cellpading="5";
					document.all.fusstab.width="996";
					document.all.fusstab.cellpading="5";
					document.all.menutab.height="60";
					document.all.archtop.height="20";
					document.all.tab2.height="127";
					document.all.mitteltab.height="158";
					document.all.untentab.height="250";
					document.all.odh.height="40";
					document.all.odh.width="40";
					document.all.img_men_rechts.height="15";
					document.all.img_men_rechts.width="10";
				} else {
					if (strBreite<1600) {
						document.all.menutab.width="1260";/// 42
						document.all.archtop.width="1260";
						document.all.menutab.cellpading="8";
						document.all.tab2.width="1260";
						document.all.tab2.cellpading="8";
						document.all.mitteltab.width="1260";
						document.all.mitteltab.cellpading="8";
						document.all.untentab.width="1260";
						document.all.untentab.cellpading="8";
						document.all.fusstab.width="1260";
						document.all.fusstab.cellpading="8";
						document.all.menutab.height="60";
						document.all.archtop.height="20";
						document.all.tab2.height="127";
						document.all.mitteltab.height="158";
						document.all.untentab.height="250";
						document.all.odh.height="47";
						document.all.odh.width="47";
						document.all.img_men_rechts.height="47";
						document.all.img_men_rechts.width="47";
					} else{ 
						if (strBreite=1600) {
						document.all.menutab.width="1580";/// 42
						document.all.archtop.width="1580";
						document.all.menutab.cellpading="8";
						document.all.tab2.width="1580";
						document.all.tab2.cellpading="8";
						document.all.mitteltab.width="1580";
						document.all.mitteltab.cellpading="8";
						document.all.untentab.width="1580";
						document.all.untentab.cellpading="8";
						document.all.fusstab.width="1580";
						document.all.fusstab.cellpading="8";
						document.all.menutab.height="60";
						document.all.archtop.height="20";
						document.all.tab2.height="127";
						document.all.mitteltab.height="158";
						document.all.untentab.height="250";
						document.all.odh.height="47";
						document.all.odh.width="47";
						document.all.img_men_rechts.height="47";
						document.all.img_men_rechts.width="47";
						}
					}
				}
			}
		 }
		}

function openNewDoc(docName,winWidth,winHeight,posLeft,posTop,bars) {
	newDoc = window.open(docName,"","width="+winWidth+",height="+winHeight+",left="+posLeft+",top="+posTop+",scrollbars="+bars);
	newDoc.focus();
	}
	
function PictureWindowResize() {
		 if (navigator.userAgent.indexOf("MSIE")!=-1) {	
		 var truewidth = document.all.Bild.width;
		 var trueheight = document.all.Bild.height;
			if (strBreite<1025) {
				var picwidth=600;
				var picheight=trueheight*picwidth/truewidth;
			} else {
				if (strBreite>1024) {
					var picwidth=900;
					var picheight=trueheight*picwidth/truewidth;
				} 
			}
		 }
		 document.all.Bild.width=picwidth;
		 document.all.Bild.height=picheight;
		 window.resizeTo(picwidth+100,picheight+150);
		}
		
