$(document).ready(function(){
	initHovers();
	getBorderHeight();
	
	$.fn.ezpz_tooltip.positions.rightTop = function(contentInfo, mouseX, mouseY, offset, targetInfo) {
		contentInfo['top'] = targetInfo['top'];
		contentInfo['left'] = 85;

		return contentInfo;
	};
	$(".info-target").ezpz_tooltip({
		contentPosition: 'rightTop',
		stayOnContent:true
	});

});

function print_popup(url) {
  ok = window.open(url, 'print_popup', 'toolbar=0,width=640,height=600')
  if (ok) return false;
  else return true;
}

function initHovers()
{
	$("#topNavi ul > li:not(.active)").hover(
		function(){
			$(this).addClass('active');
		 },
		function(){ 
			 $(this).removeClass('active');
		}
	);
}

function getBorderHeight()
{
	var height = $("#centerCol > #content > table").height();
	if(height == null)
	{
		height = $("#centerCol > #content > div.boxright").height();
	}
	$("#centerCol > .rahmen").height(height);
	
}

