var NAVIGATION = new Class({
	initialize: function(page) {
		var _self = this;
		this.imageDir = './images/navigation/';
		this.wrapperID = 'navigation';
		this.wrapper = $(this.wrapperID.toString());

		this.pages = new Object();
		switch(page.toString()) {
			case 'foreword':
				this.pages.foreword = '{name:"foreword", title:"Vorwort", link:"etelligence.php", size:"active", pos:{x:74, y:24}}';
				this.pages.project = '{name:"project", title:"Das Projekt", link:"projekt.php", size:"big", pos:{x:807, y:167}}';
				this.pages.events = '{name:"events", title:"Events", link:"events.php", size:"small", pos:{x:914, y:74}}';
				this.pages.news = '{name:"news", title:"News", link:"news.php", size:"small", pos:{x:859, y:62}}';
				this.pages.press = '{name:"press", title:"Presse", link:"presse.php", size:"small", pos:{x:933, y:163}}';
				this.pages.fotos = '{name:"fotos", title:"Fotos", link:"fotos.php", size:"small", pos:{x:933, y:112}}';
				this.pages.consortium = '{name:"consortium", title:"Das Konsortium", link:"konsortium.php", size:"big", pos:{x:870, y:335}}';
				break;
			case 'project':
				this.pages.foreword = '{name:"foreword", title:"Vorwort", link:"etelligence.php", size:"medium", pos:{x:39, y:201}}';
				this.pages.project = '{name:"project", title:"Das Projekt", link:"projekt.php", size:"active", pos:{x:264, y:23}}';
				this.pages.events = '{name:"events", title:"Events", link:"events.php", size:"small", pos:{x:96, y:33}}';
				this.pages.news = '{name:"news", title:"News", link:"news.php", size:"small", pos:{x:112, y:0}}';
				this.pages.press = '{name:"press", title:"Presse", link:"presse.php", size:"small", pos:{x:117, y:103}}';
				this.pages.fotos = '{name:"fotos", title:"Fotos", link:"fotos.php", size:"small", pos:{x:95, y:68}}';
				this.pages.consortium = '{name:"consortium", title:"Das Konsortium", link:"konsortium.php", size:"big", pos:{x:141, y:288}}';
				break;
			case 'events':
				this.pages.foreword = '{name:"foreword", title:"Vorwort", link:"etelligence.php", size:"small", pos:{x:28, y:244}}';
				this.pages.project = '{name:"project", title:"Das Projekt", link:"projekt.php", size:"big", pos:{x:165, y:146}}';
				this.pages.events = '{name:"events", title:"Events", link:"events.php", size:"active", pos:{x:264, y:23}}';
				this.pages.news = '{name:"news", title:"News", link:"news.php", size:"small", pos:{x:105, y:4}}';
				this.pages.press = '{name:"press", title:"Presse", link:"presse.php", size:"small", pos:{x:133, y:114}}';
				this.pages.fotos = '{name:"fotos", title:"Fotos", link:"fotos.php", size:"small", pos:{x:119, y:78}}';
				this.pages.consortium = '{name:"consortium", title:"Das Konsortium", link:"konsortium.php", size:"big", pos:{x:141, y:307}}';
				break;
			case 'fotos':
				this.pages.foreword = '{name:"foreword", title:"Vorwort", link:"etelligence.php", size:"small", pos:{x:28, y:244}}';
				this.pages.project = '{name:"project", title:"Das Projekt", link:"projekt.php", size:"big", pos:{x:165, y:146}}';
				this.pages.events = '{name:"events", title:"Events", link:"events.php", size:"small", pos:{x:110, y:42}}';
				this.pages.news = '{name:"news", title:"News", link:"news.php", size:"small", pos:{x:105, y:4}}';
				this.pages.press = '{name:"press", title:"Presse", link:"presse.php", size:"small", pos:{x:133, y:114}}';
				this.pages.fotos = '{name:"fotos", title:"Fotos", link:"fotos.php", size:"active", pos:{x:264, y:23}}';
				this.pages.consortium = '{name:"consortium", title:"Das Konsortium", link:"konsortium.php", size:"big", pos:{x:141, y:307}}';
				break;
			case 'news':
				this.pages.foreword = '{name:"foreword", title:"Vorwort", link:"etelligence.php", size:"small", pos:{x:28, y:244}}';
				this.pages.project = '{name:"project", title:"Das Projekt", link:"projekt.php", size:"big", pos:{x:165, y:146}}';
				this.pages.events = '{name:"events", title:"Events", link:"events.php", size:"small", pos:{x:110, y:42}}';
				this.pages.news = '{name:"news", title:"News", link:"news.php", size:"active", pos:{x:264, y:23}}';
				this.pages.press = '{name:"press", title:"Presse", link:"presse.php", size:"small", pos:{x:133, y:114}}';
				this.pages.fotos = '{name:"fotos", title:"Fotos", link:"fotos.php", size:"small", pos:{x:119, y:78}}';
				this.pages.consortium = '{name:"consortium", title:"Das Konsortium", link:"konsortium.php", size:"big", pos:{x:141, y:307}}';
				break;
			case 'press':
				this.pages.foreword = '{name:"foreword", title:"Vorwort", link:"etelligence.php", size:"small", pos:{x:28, y:244}}';
				this.pages.project = '{name:"project", title:"Das Projekt", link:"projekt.php", size:"big", pos:{x:165, y:146}}';
				this.pages.events = '{name:"events", title:"Events", link:"events.php", size:"small", pos:{x:110, y:42}}';
				this.pages.news = '{name:"news", title:"News", link:"news.php", size:"small", pos:{x:105, y:4}}';
				this.pages.press = '{name:"press", title:"Presse", link:"presse.php", size:"active", pos:{x:264, y:23}}';
				this.pages.fotos = '{name:"fotos", title:"Fotos", link:"fotos.php", size:"small", pos:{x:119, y:78}}';
				this.pages.consortium = '{name:"consortium", title:"Das Konsortium", link:"konsortium.php", size:"big", pos:{x:141, y:307}}';
				break;
			case 'consortium':
				this.pages.foreword = '{name:"foreword", title:"Vorwort", link:"etelligence.php", size:"medium", pos:{x:179, y:346}}';
				this.pages.project = '{name:"project", title:"Das Projekt", link:"projekt.php", size:"big", pos:{x:76, y:210}}';
				this.pages.events = '{name:"events", title:"Events", link:"events.php", size:"small", pos:{x:82, y:79}}';
				this.pages.news = '{name:"news", title:"News", link:"news.php", size:"small", pos:{x:133, y:33}}';
				this.pages.press = '{name:"press", title:"Presse", link:"presse.php", size:"small", pos:{x:124, y:123}}';
				this.pages.fotos = '{name:"fotos", title:"Fotos", link:"fotos.php", size:"small", pos:{x:57, y:122}}';
				this.pages.consortium = '{name:"consortium", title:"Das Konsortium", link:"konsortium.php", size:"active", pos:{x:264, y:23}}';
				break;
			case 'contact':
				this.pages.foreword = '{name:"foreword", title:"Vorwort", link:"etelligence.php", size:"small", pos:{x:28, y:244}}';
				this.pages.project = '{name:"project", title:"Das Projekt", link:"projekt.php", size:"big", pos:{x:165, y:146}}';
				this.pages.events = '{name:"events", title:"Events", link:"events.php", size:"small", pos:{x:110, y:42}}';
				this.pages.news = '{name:"news", title:"News", link:"news.php", size:"small", pos:{x:105, y:4}}';
				this.pages.press = '{name:"press", title:"Presse", link:"presse.php", size:"small", pos:{x:133, y:114}}';
				this.pages.fotos = '{name:"fotos", title:"Fotos", link:"fotos.php", size:"small", pos:{x:119, y:78}}';
				this.pages.consortium = '{name:"consortium", title:"Das Konsortium", link:"konsortium.php", size:"big", pos:{x:141, y:307}}';
				this.pages.contact = '{name:"contact", title:"Kontakt", link:"kontakt.php", size:"active", pos:{x:264, y:23}}';
				break;
			case 'imprint':
				this.pages.foreword = '{name:"foreword", title:"Vorwort", link:"etelligence.php", size:"small", pos:{x:28, y:244}}';
				this.pages.project = '{name:"project", title:"Das Projekt", link:"projekt.php", size:"big", pos:{x:165, y:146}}';
				this.pages.events = '{name:"events", title:"Events", link:"events.php", size:"small", pos:{x:110, y:42}}';
				this.pages.news = '{name:"news", title:"News", link:"news.php", size:"small", pos:{x:105, y:4}}';
				this.pages.press = '{name:"press", title:"Presse", link:"presse.php", size:"small", pos:{x:133, y:114}}';
				this.pages.fotos = '{name:"fotos", title:"Fotos", link:"fotos.php", size:"small", pos:{x:119, y:78}}';
				this.pages.consortium = '{name:"consortium", title:"Das Konsortium", link:"konsortium.php", size:"big", pos:{x:141, y:307}}';
				this.pages.imprint = '{name:"imprint", title:"Impressum", link:"impressum.php", size:"active", pos:{x:264, y:23}}';
				break;
			case 'sitemap':
				this.pages.foreword = '{name:"foreword", title:"Vorwort", link:"etelligence.php", size:"small", pos:{x:28, y:244}}';
				this.pages.project = '{name:"project", title:"Das Projekt", link:"projekt.php", size:"big", pos:{x:165, y:146}}';
				this.pages.events = '{name:"events", title:"Events", link:"events.php", size:"small", pos:{x:110, y:42}}';
				this.pages.news = '{name:"news", title:"News", link:"news.php", size:"small", pos:{x:105, y:4}}';
				this.pages.press = '{name:"press", title:"Presse", link:"presse.php", size:"small", pos:{x:133, y:114}}';
				this.pages.fotos = '{name:"fotos", title:"Fotos", link:"fotos.php", size:"small", pos:{x:119, y:78}}';
				this.pages.consortium = '{name:"consortium", title:"Das Konsortium", link:"konsortium.php", size:"big", pos:{x:141, y:307}}';
				this.pages.sitemap = '{name:"sitemap", title:"Sitemap", link:"sitemap.php", size:"active", pos:{x:264, y:23}}';
				break;
			case 'search':
				this.pages.foreword = '{name:"foreword", title:"Vorwort", link:"etelligence.php", size:"small", pos:{x:28, y:244}}';
				this.pages.project = '{name:"project", title:"Das Projekt", link:"projekt.php", size:"big", pos:{x:165, y:146}}';
				this.pages.events = '{name:"events", title:"Events", link:"events.php", size:"small", pos:{x:110, y:42}}';
				this.pages.news = '{name:"news", title:"News", link:"news.php", size:"small", pos:{x:105, y:4}}';
				this.pages.press = '{name:"press", title:"Presse", link:"presse.php", size:"small", pos:{x:133, y:114}}';
				this.pages.fotos = '{name:"fotos", title:"Fotos", link:"fotos.php", size:"small", pos:{x:119, y:78}}';
				this.pages.consortium = '{name:"consortium", title:"Das Konsortium", link:"konsortium.php", size:"big", pos:{x:141, y:307}}';
				this.pages.search = '{name:"search", title:"Suche", link:"suche.php", size:"active", pos:{x:264, y:23}}';
				break;
			default:
				this.pages.foreword = '{name:"foreword", title:"Vorwort", link:"etelligence.php", size:"active", pos:{x:74, y:24}}';
				this.pages.project = '{name:"project", title:"Das Projekt", link:"projekt.php", size:"big", pos:{x:807, y:167}}';
				this.pages.events = '{name:"events", title:"Events", link:"events.php", size:"small", pos:{x:914, y:74}}';
				this.pages.news = '{name:"news", title:"News", link:"news.php", size:"small", pos:{x:859, y:62}}';
				this.pages.press = '{name:"press", title:"Presse", link:"presse.php", size:"small", pos:{x:933, y:163}}';
				this.pages.fotos = '{name:"fotos", title:"Fotos", link:"fotos.php", size:"small", pos:{x:933, y:112}}';
				this.pages.consortium = '{name:"consortium", title:"Das Konsortium", link:"konsortium.php", size:"big", pos:{x:870, y:335}}';
				break;
		}

		this.synapses = new Array();
		for(attr in this.pages) this.synapses.push(new SYNAPSE(this.pages[attr]));

		var backgroundImage = Element('img');
		backgroundImage.addEvent('load', function() {
			_self.wrapper.setStyles({
				'background-image':'url(\'' + this.src + '\')',
				'background-position':'top left',
				'background-repeat':'no-repeat'
			});
			_self.show();
		});
		backgroundImage.src = this.imageDir + 'navigation-' + page + '.gif';
	},

	show: function() {
		for(var i = 0; i < this.synapses.length; i++) this.synapses[i].show();
	}
});