function getTheBrowser() {

	this.ver		= navigator.appVersion;
	this.dom		= document.getElementById?1:0;
	this.ie6		= (this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie5		= (this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4		= (document.all && !this.dom)?1:0;
	this.ns5		= (this.dom && parseInt(this.ver) >= 5)?1:0;
	this.ns4		= (document.layers && !this.dom)?1:0;
	this.browservers	= (this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns5);

	return this;
}

function construct(name,nest) {

	nest				= (!nest) ? '':nest+'.document.'
	this.el				= browservers.dom?document.getElementById(name):browservers.ie4?document.all[name]:browservers.ns4?eval('document.'+nest+name):0;
	this.css			= browservers.dom?document.getElementById(name).style:browservers.ie4?document.all[name].style:browservers.ns4?eval('document.'+nest+name):0;
	this.obj 			= name + "Object";
	eval(this.obj + "= this");

	return this;
}

function initializeLayerObjects(){
	
	for(i=0;i<12;i++) {
	
		this.divPictureObjects[i] = new construct(eval("'block"+i+"'"));
	}
		
}

function initializeSubmenuObjects(){
	
	for(i=0;i<7;i++) {
	
		this.submenuObjects[i] = new construct(eval("'menu"+i+"'"));
	}
		
}

function changeSubmenu(objNr,state) {

	if(state == 'on'){
		
		this.submenuObjects[objNr].css.color = '#919904';
	}
	else{
		this.submenuObjects[objNr].css.color = '#707173';
	}	
}


function changeGallery(objNr) {
	
	for(i=0;i<this.divPictureObjects.length;i++) {
		
		if(i != objNr){
		
			this.divPictureObjects[i].css.display = 'none';
		}
	}
	
	this.divPictureObjects[objNr].css.display=='block'?this.divPictureObjects[objNr].css.display='none':this.divPictureObjects[objNr].css.display='block';
}

function openWindow() {
  popupWin = window.open('news.html', 'remote', 'toolbar=0, location=0, directories=0, menubar=0, scrollbars=0, scrollbar=no, resizeable=no,fullscreen=0, width=385, height=358');
}

function change(name,quelle){
  	
  	window.status = "";
  	document.images[name].src = quelle;
}

function changeByID(id,quelle){
  	
  	window.status = "";
  	document.getElementById(id).src = quelle.src;
}





var divPictureObjects		= new Array();
var submenuObjects		= new Array();
var browservers			= new getTheBrowser();






		
		