/*##############	d.vinci JS  -- (c) delphi-HR Systems GmbH, Hamburg, Germany   ##################################

	Deichmann Scripts

#########################################################################################*/

////////////////////////////////////////////////////////////
function prio_a(){
////////////////////////////////////////////////////////////
	//alert($('input[id=appr_prio_a_yes]').attr("checked"));
	if ( $('input[id=appr_prio_a_no]').attr("checked") == true ) {
		$("div.prio_a_inputs").show();	
	} else {
		$("div.prio_a_inputs").hide();	
	}
}

////////////////////////////////////////////////////////////
function prio_b(){
////////////////////////////////////////////////////////////
	if ( $('input[id=appr_prio_b_yes]').attr("checked") == true ) {
		$("div.prio_b_inputs").show();	
	} else {
		$("div.prio_b_inputs").hide();	
	}
}

////////////////////////////////////////////////////////////
function prio_c(){
////////////////////////////////////////////////////////////
	if ( $('input[id=appr_prio_c_yes]').attr("checked") == true ) {
		$("div.prio_c_inputs").show();	
	} else {
		$("div.prio_c_inputs").hide();	
	}
}

////////////////////////////////////////////////////////////
function parents_deichmann_toggle(){
////////////////////////////////////////////////////////////
	//alert($('input[name=scoring_parents_retail]').attr("checked"));
	if ( $('input[name=scoring_parents_retail]').attr("checked") == true ) {
		$("div.parents_deichmann").show();	
	} else {
		$("div.parents_deichmann").hide();	
	}
}

////////////////////////////////////////////////////////////
function parents_vkst_toggle(){
////////////////////////////////////////////////////////////
	if ( $('input[name=parents_deichmann]').attr("checked") == true ) {
		$("div.parents_vkst").show();	
	} else {
		$("div.parents_vkst").hide();	
	}
}

////////////////////////////////////////////////////////////
function scoring_prakt_deichmann_toggle(){
////////////////////////////////////////////////////////////
	//alert($('input[name=scoring_parents_retail]').attr("checked"));
	if ( $('input[name=scoring_prakt_branch]').attr("checked") == true ) {
		$("div.scoring_prakt_deichmann").show();	
	} else {
		$("div.scoring_prakt_deichmann").hide();	
	}
}

////////////////////////////////////////////////////////////
function prakt_location_toggle(){
////////////////////////////////////////////////////////////
	if ( $('input[name=scoring_prakt_deichmann]').attr("checked") == true ) {
		$("div.prakt_location").show();	
	} else {
		$("div.prakt_location").hide();	
	}
}

////////////////////////////////////////////////////////////
function sport_intensity_toggle(){
////////////////////////////////////////////////////////////
	if ( $('input[name=scoring_sport]').attr("checked") == true ) {
		$("div.sport_intensity").show();	
	} else {
		$("div.sport_intensity").hide();	
	}
}

//////////////////////////////////////////////////////////////////////////////////////////////////
jQuery(document).ready(function() { // nach dem vollstaendigen laden der Seite
//////////////////////////////////////////////////////////////////////////////////////////////////	
	
	// CLICK FUNKTIONEN	
	$("input[name=appr_prio_a]").click(function () {
		prio_a();
	});	
	$("input[name=appr_prio_b]").click(function () {
		prio_b();
	});	
	$("input[name=appr_prio_c]").click(function () {
		prio_c();
	});		
	
	$("input[name=scoring_parents_retail]").click(function () {
		parents_deichmann_toggle();
	});	
	$("input[name=parents_deichmann]").click(function () {
		parents_vkst_toggle();
	});	

	$("input[name=scoring_prakt_branch]").click(function () {
		scoring_prakt_deichmann_toggle();
	});	
	$("input[name=scoring_prakt_deichmann]").click(function () {
		prakt_location_toggle();
	});
	
	$("input[name=scoring_sport]").click(function () {
		sport_intensity_toggle();
	});			
	
	/// INIT FUNKTIONEN
	if ($("input[name=appr_prio_a]").length > 0) { // hidden input wird im Container 01b_edu_data.html gesetzt.
		prio_a();
		prio_b();
		prio_c();
	}
	
	if ($("input[name=scoring_parents_retail]").length > 0) { 
		parents_deichmann_toggle();
	}	
	if ($("input[name=parents_deichmann]").length > 0) { 
		parents_vkst_toggle();
	}	
	
	if ($("input[name=scoring_prakt_branch]").length > 0) { 
		scoring_prakt_deichmann_toggle();
	}	
	if ($("input[name=scoring_prakt_deichmann]").length > 0) { 
		prakt_location_toggle();
	}	
	
	if ($("input[name=scoring_sport]").length > 0) { 
		sport_intensity_toggle();
	}	
});


