﻿// navi

pic1 = new Image();
pic1.src = "images/nav_1b.gif";

pic2 = new Image();
pic2.src = "images/nav_2b.gif";

pic3 = new Image();
pic3.src = "images/nav_3b.gif";

pic4 = new Image();
pic4.src = "images/nav_4b.gif";	
		
function over(punkt) {
	eval("document.nav_"+punkt+".src='images/nav_"+punkt+"b.gif'");
}

function out(punkt) {
	present=document.menu.punkt.value;
	if (present != punkt) {
		eval("document.nav_"+punkt+".src='images/nav_"+punkt+"a.gif'");
	}
}

// browser-specific stylesheets

if (navigator.appName.indexOf("Microsoft") != -1 && navigator.appVersion.indexOf("5.") != -1 && navigator.platform.indexOf("Mac") != -1) { 
		document.write('<link rel="stylesheet" type="text/css" media="screen" href="css/style_iemac.css">');
	}

if (navigator.appName.indexOf("Microsoft") != -1 && navigator.appVersion.indexOf("5.5") != -1) { 
		document.write('<link rel="stylesheet" type="text/css" media="screen" href="css/style_ie55.css">');
	}

if (navigator.appName.indexOf("Microsoft") != -1 && navigator.appVersion.indexOf("6.") != -1) { 
		document.write('<link rel="stylesheet" type="text/css" media="screen" href="css/style_ie6.css">');
	}


// open window

function enlarge(thelink){
	window.open('enlargement/pic_'+thelink+'.html','','top=90,left=550,width=346,height=600,location=no,status=yes,directories=no,toolbar=no,scrollbars=no,menubar=no,resizable=no');
}

function enlargenews(thelink){  // hochformat
	window.open('enlargement/pic_news_'+thelink+'.html','','top=90,left=481,width=415,height=610,location=no,status=yes,directories=no,toolbar=no,scrollbars=no,menubar=no,resizable=no');
}

function enlargenews2(thelink){  // querformat
	window.open('enlargement/pic_news_'+thelink+'.html','','top=90,left=333,width=540,height=490,location=no,status=yes,directories=no,toolbar=no,scrollbars=no,menubar=no,resizable=no');
}

function enlarge2(thelink){
	window.open('enlargement/inst_'+thelink+'.html','','top=90,left=333,width=540,height=490,location=no,status=yes,directories=no,toolbar=no,scrollbars=no,menubar=no,resizable=no');
}

function enlargefairs(thelink){  // hochformat
	window.open('enlargement/'+thelink+'.html','','top=90,left=481,width=415,height=610,location=no,status=yes,directories=no,toolbar=no,scrollbars=no,menubar=no,resizable=no');
}
		
function changeit() {
	if (document.getElementById("unav").style.display != "block") {
		document.getElementById("unav").style.display = "block";
		document.getElementById("unavpic").style.display = "none";
	}
 }		
