jQuery.noConflict();
jQuery(document).ready(function($){
	
		
		$(".eepos-frame .csc-textpic-imagewrap").width("auto");
		$(".eepos-frame .csc-textpic-image").width("auto");
		
		$(".eepos-frame .csc-textpic-image").each(function(i, element){
			var frame = $(element).html();
			$(element).html('<div class="frame">'+frame+"</div>");
		});
	
		var row = 0
		var tallest = 0
		var caption = 0;
		
				$(".eepos-frame .csc-textpic-image").each(function() {
				var thisHeight = $(this).height();
					if(thisHeight > tallest) {
						tallest = thisHeight;
						
					}
				});
				$(".eepos-frame .csc-caption").each(function() {
				var thisHeight = $(this).height();
					if(thisHeight > caption) {
						caption = thisHeight;
						
					}
				});
				
			$(".eepos-frame .csc-textpic-image").height(tallest+caption);
			$(".eepos-frame .csc-textpic-image").children(".frame").height(tallest+caption-20);;
	
		$("#login-bt").toggle(function(){
			$("#login").stop().animate({top:"40"}, 800);
		},
		function(){
			$("#login").stop().animate({top:"258"}, 700);
		});
		
		$("#language .INACT").hide();
	
		$(".tx-srlanguagemenu-pi1").replaceWith( "<ul>" + $(".tx-srlanguagemenu-pi1").html() + "</ul>" );
	
		$("#language").mouseover(
		function(){
			$(this).addClass("hover");
			$("#language .INACT").show();
		});
		$("#language").mouseout(
		function(){
			$(this).delay(800).removeClass("hover");
			$("#language .INACT").hide();
		});
		
		var rootItem = $("#nav .active a span").html();
		$("#subnav h3").html("|" + rootItem + "|");	
		
		
	
		/*$("body").mousemove(function(){
			$("#content tr:odd").css("background","#f5f5f5");
		});*/
		/*$("#table-kranprofil").css("background","#f5f5f5");
		$("#content tr:even").css("background","#f5f5f5");
		*/
		$("#content .tx-indexedsearch tr:even").css("background","none");
		$(".subcr .filelinks p.citation:odd").css("background-color","#fff");
		
		
		
	});

