function directedit() {
	var link = document.getElementById("de").parentNode.innerHTML;
	document.getElementById("de").parentNode.innerHTML = null;
	document.getElementById("directedit").innerHTML = link;
}


if (document.location.protocol === 'https') {
    $('a').each(function() {
        var href = $(this).attr('href');
        if (href.indexOf('http:') > -1) {
            href = href.replace('http:', 'https:');
            $(this).attr('href', href);
        }
    });
}


