/**
* @author Oven
*/
<!--
var initbox = false;
var initdef = false;
var initmf = false;
var rechtl = false;

$(document).ready(function(){ 
	$("#myTable") 
		.tablesorter({
            sortList: [[2,1],[1,0]],
            widthFixed: true,
            widgets: ['zebra']
        })
		.tablesorterPager({container: $("#pager")});
	$("#landTable") 
		.tablesorter({
            widgets: ['zebra']
        });
	$("#sensiblewertebox").hide();
	$("#edaDefinition").hide();
	$("#rechtliches").hide();
});
/*
* Funktionen für Sensible Werte Liste
*/
function loadSensibleWerte(wpid) {
	if (initbox == false) {
		$("#sensiblewertebox").slideUp("slow", function(){
			$("#sensiblewertebox").load("function.getSensibleWerte.php?wpid=" + wpid, null, function(){
				$(this).slideDown("slow");
			});
		});
		initbox = true;
	} else {
		$("#sensiblewertebox").fadeTo("slow", 0.33, function(){
			$("#sensiblewertebox").load("function.getSensibleWerte.php?wpid=" + wpid, null, function(){
				$(this).fadeTo("slow", 1.00);
			});
		});
	}
}
function closeSensibleWerte() {
	$("#sensiblewertebox").slideUp("slow");
	initbox = false;
};
/*
 * Funktionen für Standard EDA Definitionen
 */
function openDefinition() {
	if (initdef == false) {
		$("#edaDefinition").load("eda_definition.php", null, function() {
			$(this).slideDown("slow");
		});
		initdef = true;
	} else {
		$("#edaDefinition").slideUp("slow");
		initdef = false;
	}
}
function openDefinitionOegutNormal() {
	if (initdef == false) {
		$("#edaDefinition").load("eda_definition_oegut_normal.php", null, function() {
			$(this).slideDown("slow");
		});
		initdef = true;
	} else {
		$("#edaDefinition").slideUp("slow");
		initdef = false;
	}
}
function closeDefinition() {
	$("#edaDefinition").slideUp("slow");
	initdef = false;
}
/*
 * Rechtlicher Hinweis - Funktionen
 */
function showRechtliches() {
	if (rechtl == false) {
		$("#rechtliches").load("rechtliches.php", null, function() {
			$(this).slideDown("slow");
		});
		rechtl = true;
	} else {
		$("#rechtliches").slideUp("slow");
		rechtl = false;
	}
}
function hideRechtliches() {
	$("#rechtliches").slideUp("slow");
	rechtl = false;
}
function openMicroFinance() {
	if (initmf == false) {
		$("#microfinance").load("microfinance_fonds.php", null, function() {
			$(this).slideDown("slow");
		});
		initmf = true;
	} else {
		$("#microfinance").slideUp("slow");
		initmf = false;
	}
}
function closeMicrofinance() {
	$("#microfinance").slideUp("slow");
	initmf = false;
}
function popAET(wpid) {
    var link = "function.getSensibleWerte.php?wpid=" + wpid;
    AETwindow = window.open(link, "aETwindow", toolbar=no, top=100, left=100);
    AETwindow.focus();
}
// -->
