function directedit() {
	if(document.getElementById("de") != null && document.getElementById("directedit")) {
		var link = document.getElementById("de").parentNode.innerHTML;
		document.getElementById("de").parentNode.innerHTML = "";
		document.getElementById("directedit").innerHTML = link;
	}
}
window.onload = function() {
	directedit()
};


$(document).ready(function () {
	var url = /path=([^&]+\.pcf)/.test(window.location.href) ? unescape(window.location.href.match(/path=([^&]+)/)[1]).replace(/\.pcf$/, '.php') : window.location.pathname;
	$("#subnavigation a[href = \"" + url + "\"]").attr("id", "current-page-item");
});
