$(function() {
	$('body').addClass('fx');
	
	$('a.zoom').colorbox({
		current: '',
		close: '',
		previous: '',
		next: '',
		slideshowStart: '',
		slideshowStop: '',
		maxWidth:"90%",
		maxHeight:"90%"
	});
	
	$('ul.documents-list:not(.two-level) li').each(function() {
		$(this).addClass('clickable');
		$(this).click(function() {
			var url = $(this).find('h2 a').attr('href');
			window.location.href = url;
			return false;
		});
	});
	
	$('a.hinweis-auf-plz-abfrage').each(function() {
		$(this).attr('href', $(this).attr('href') + '&renderFragment=true&height=320&width=460');
		tb_init($(this));
		
		if ($(this).is('.open-popup')) $(this).click();
	});
});

var mininavifunction = function() {
	window.location.href = 'http://energiewelt.stadtwerke-troisdorf.de/';
};
