// JQUERY FUNCTIONS:function showhide(layer_ref, animation) {	if(animation == "true"){		$('#'+layer_ref).toggle('blind', 'slow');	}else if(animation == "false"){		//$('#'+layer_ref).toggle();		showhide_oldstyle(layer_ref);					}else {		if(checkifantinymceeditorisinthediv(layer_ref)){			$('#'+layer_ref).toggle();		}else{			if($('#'+layer_ref).is(":visible")){				// ZICHTBAAR: INKLAPPEN				$ua = navigator.appName;						if ($ua=="Microsoft Internet Explorer" && ($('#'+layer_ref).is(":visible"))){					// VOOR IE: ALTIJD DIRECT VERWIJDEREN!					showhide_oldstyle(layer_ref);				}else{					$('#'+layer_ref).hide('blind', 'slow');				}							}else{				// NIET ZICHTBAAR UITKLAPPEN				$('#'+layer_ref).show('blind', 'slow');			}		}	}}function show(layer_ref, animation) {	if(animation == "true"){		$('#'+layer_ref).show('blind', 'slow');	}else if(animation == "false"){		//$('#'+layer_ref).show();		show_oldstyle(layer_ref);			}else {			if(! $('#'+layer_ref).is(":visible")){			// ONLY HIDE WHEN NOT ALREADY SHOWN! prevents flashy-unwanted effects...			if(checkifantinymceeditorisinthediv(layer_ref)){				$('#'+layer_ref).show();			}else{				$('#'+layer_ref).show('blind', 'slow');			}					}	}}function hide(layer_ref, animation) {	if(animation == "true"){		$('#'+layer_ref).hide('blind', 'slow');	}else if(animation == "false"){		//$('#'+layer_ref).hide();		hide_oldstyle(layer_ref);	}else {			if($('#'+layer_ref).is(":visible")){			// ONLY HIDE WHEN NOT ALREADY HIDDEN! prevents flashy-unwanted effects...						if(checkifantinymceeditorisinthediv(layer_ref)){				hide_oldstyle(layer_ref);			}else{				$ua = navigator.appName;						if ($ua=="Microsoft Internet Explorer"){					// VOOR IE: ALTIJD DIRECT VERWIJDEREN!					hide_oldstyle(layer_ref);				}else{					$('#'+layer_ref).hide('blind', 'slow');				}			}		}	}}function checkifantinymceeditorisinthediv(layer_ref) {	if (!document.getElementById( layer_ref ) || typeof(document.getElementById( layer_ref ).innerHTML) == "undefined") {		return false;	}	var bodyText = document.getElementById( layer_ref ).innerHTML;	i = bodyText.indexOf('<textarea', 0); // zoeken naar een textarea ivm de TINYMCE EDITOR	if (i < 0) {		// niet gevonden		//alert('geen textarea, wel animatie....');		return false;	} else {		// wel gevonden:		//alert('TEXTAREA GEVONDEN: GEEN ANIMATIE!');		return true;	}}var state = 'none';function showhide_oldstyle(layer_ref) {if (document.all) { //IS IE 4 or 5 (or 6 beta)eval( "state = document.all." + layer_ref + ".style.display");}if (document.layers) { //IS NETSCAPE 4 or belowstate = document.layers[layer_ref].display;}if (document.getElementById &&!document.all) {hza = document.getElementById(layer_ref);state = hza.style.display;}if (state == 'block') {state = 'none';}else {state = 'block';}if (document.all) { //IS IE 4 or 5 (or 6 beta)eval( "document.all." + layer_ref + ".style.display = state");}if (document.layers) { //IS NETSCAPE 4 or belowdocument.layers[layer_ref].display = state;}if (document.getElementById &&!document.all) {hza = document.getElementById(layer_ref);hza.style.display = state;}}function show_oldstyle(layer_ref) {state = 'block';if (document.all) { //IS IE 4 or 5 (or 6 beta)eval( "document.all." + layer_ref + ".style.display = state");}if (document.layers) { //IS NETSCAPE 4 or belowdocument.layers[layer_ref].display = state;}if (document.getElementById &&!document.all) {hza = document.getElementById(layer_ref);hza.style.display = state;}}function hide_oldstyle(layer_ref) {state = 'none';if (document.all) { //IS IE 4 or 5 (or 6 beta)eval( "document.all." + layer_ref + ".style.display = state");}if (document.layers) { //IS NETSCAPE 4 or belowdocument.layers[layer_ref].display = state;}if (document.getElementById &&!document.all) {hza = document.getElementById(layer_ref);hza.style.display = state;}}
