function cu_jump2url( jurl ) {
	document.location.href = jurl;
}

/* Hier kommen Funktionen & Funktionalitäten, die ausgeführt werden, sobald DOM geladen ist */
$(document).ready(function() {
	
	if ( $('.extcontent').length > 0 )
	{
		var contnt_height;
		if ( $("#col2_content").height() > $("#col3_content").height() ) 
			content_height = $("#col2_content").height() + $("#col4_content").height();
		else 
			content_height = $("#col3_content").height() + $("#col4_content").height();

		if ( ($("#col1_content").height() > content_height) && ($("#col1_content").height() > 630) ) {
			$("#main").css("min-height",($("#col1_content").height()+5)+"px");
		}
	}
	
	/* für den IE6 */
	if ( $.browser.msie && (parseInt($.browser.version) < 7) )
	{
		$('#llanguage').mouseover(function () {
			$(this).addClass('sfhover');
		});
		$('#llanguage').mouseout(function () {
			$(this).removeClass('sfhover');
		});
	}
	
	$('.cilink img.icon1').css("display","block");
	$('.contactitem .cidata').css("display","none");
	$('.contactitem .cilink').css("cursor","pointer");
	$('.cilink').click(function () {
		if ( $("div#" + $(this).attr('rel')).css("display") == "none" ) {
			$( "div#" + $(this).attr('rel') ).slideDown("slow");
			$( "#" + $(this).attr('rel') + "_icon img.icon1" ).css("display","none");
			$( "#" + $(this).attr('rel') + "_icon img.icon2" ).css("display","block");
		}
		else {
			$( "div#" + $(this).attr('rel') ).slideUp("slow");
			$( "#" + $(this).attr('rel') + "_icon img.icon1" ).css("display","block");
			$( "#" + $(this).attr('rel') + "_icon img.icon2" ).css("display","none");
		}
	})
	
	$('.scroll_x table').map(function () {
		if ( $(this).width() <= $(this).parent().width() ) $(this).parent().removeClass('scroll_x');
	})

	if ( $('table.hover_table').length > 0 )
	{
		$.ajax({
			type: "GET",
			url: "/js/jquery.tablehover.min.js",
			success: function(){
				$('table.hover_table').tableHover({rowClass: 'rowhover', colClass: 'colhover', cellClass: 'cellhover', clickClass: 'cellclick'}); 
			},
			dataType: "script",
			cache: true
		});
	}
	if ( $('table.sort_table').length > 0 )
	{
		$.ajax({
			type: "GET",
			url: "/js/jquery.tablesorter.min.js",
			success: function(){
				$(".sort_table").tablesorter(); 
			},
			dataType: "script",
			cache: true
		});
	}
	
	$( "div[id*='hideme_']" ).css("display","none");
	$( "[id*='showme_']" ).click(function () {
		
		if ( $("#hideme_" + $(this).attr('id').substring(7)).css("display") == "none" ) {
			$( "#hideme_" + $(this).attr('id').substring(7)).slideDown("slow");
		}
		else {
			$( "#hideme_" + $(this).attr('id').substring(7)).css("display","none");
		}
	})

	
});

