var xid = '';
var t = 0;
$(document).ready(function(){
	$(".tnavitem").hover(
    function () {
			var id = $(this).attr("id");
			xid = id.replace(/tnavitem/,"");
			$("#tnav"+xid).css("color","#000000");
			$("#img_lo_"+xid).css("border","1px solid #000000");
		}, 
    function () {
			$("#tnav"+xid).css("color","#9C9C9C");
			$("#img_lo_"+xid).css("border","1px solid #949494");
		}
	);
	
	$(".tnavitem").click(
		function() {
			var id = $(this).attr("id");
			xid = id.replace(/tnavitem/,"");
			var thislink = $("#link"+xid).attr("name");
			location.href = "http://www.franziska-schemel.de/"+thislink;
		}
	);
	
	$(".tnavitem_active").click(
		function() {
			var id = $(this).attr("id");
			xid = id.replace(/navact/,"");
			var thislink = $("#link"+xid).attr("name");
			location.href = "http://www.franziska-schemel.de/"+thislink;
		}
	);
	
	rescontent();
});
window.onresize = rescontent;
function rescontent() {
	var wheight = $(window).height()-199-($("#footer").outerHeight());
	var wwidth = $(window).width()-325;
	$("#content").css("height",wheight+"px");
	$("#content").css("width",wwidth+"px");
	$("#langswitch").css("top",$(window).height()-45);
	$("#contact").css("top",$(window).height()-70);
}

function showEnlargehint() {
  $('#enlarge').show();
}
