$(document).ready(function() {
	// show menu item texts
	$('#main_linklist li a:not(.sel)').mouseover(function() {
		$(this).next().css('visibility', 'visible');
	}).mouseout(function() {
		$(this).next().css('visibility', 'hidden');
	});
	// handling page farbwechsel.html with JS active
	// use static pages, if js activ
	$('#main_linklist li a[href~=farbwechsel]').click(function() {
		var path = $(this).attr('href');
		var backPath = path.substring(0, path.indexOf('farbwechsel'));
		document.location.href = backPath+'farbwechsel.html';
		return false;
	});
	// for link on first page (separated selector needed for some reason) 
	$('a:contains("Farbwechsel")').click(function() {
		var path = $(this).attr('href');
		var backPath = path.substring(0, path.indexOf('farbwechsel'));
		document.location.href = backPath+'farbwechsel.html';
		return false;
	});
	// handling request for page fotografie
	$('#fotografie').click(function() {
		var path = $(this).attr('href');
		var backPath = path.substring(0, path.indexOf('fotografie'));
		document.location.href = backPath+'fotografie.html';
		return false;
	});
});
