function initModals() {
	if (!document.getElementsByTagName) { return; }	var mod_anchors = document.getElementsByTagName("a");	// loop through all anchor tags	for (var i=0; i<mod_anchors.length; i++){		var mod_anchor = mod_anchors[i];		if (mod_anchor.getAttribute("href") && (mod_anchor.getAttribute("rel") == "info_form")){			mod_anchor.onclick = function () {
                showEnquire(this);                return false;            }		} else if (mod_anchor.getAttribute("href") && (mod_anchor.getAttribute("rel") == "news_letter")){			mod_anchor.onclick = function () {                showEnquire(this);                return false;            }		} else if (mod_anchor.getAttribute("href") && (mod_anchor.getAttribute("rel") == "send_friend")){			mod_anchor.onclick = function () {                showSendFriend(this);                return false;            }		}	}
	// BIJ ARCHIEF PAGINA CLOSE FUNCTIE 
	if(document.getElementById('archive_pic')) {
        var archive_pic = document.getElementById('archive_pic');
        var focusDiv = document.getElementById('archive_focus');
        archive_pic.onclick=function() {
            focusDiv.style.display="none";
        }
	}}function closeEnq_Overlay() {    if (document.getElementById) {        // this is the way the standards work        var targetDiv = document.getElementById('modal_inq').style;        targetDiv.display = "none";    }}function closeSendFriend_Overlay() {    if (document.getElementById) {        // this is the way the standards work        var targetDiv = document.getElementById('modal_send_friend').style;        targetDiv.display = "none";    }}function html_entity_decode(str) {  var ta=document.createElement("textarea");  ta.innerHTML=str.replace(/</g,"&lt;").replace(/>/g,"&gt;");  return ta.value;}function showSendFriend(enq_link) {            // this is the way the standards work    var targetDiv = document.getElementById('modal_send_friend');    targetDiv.style.display = "block";    var quickEditBoxH = targetDiv.offsetHeight;    var quickEditBoxW = targetDiv.offsetWidth;        var close_button = document.getElementById('close_send');	close_button.onclick=function() {	   closeSendFriend_Overlay();	   return false;	}	    return false;}function showEnquire(enq_link) {            // this is the way the standards work    var targetDiv = document.getElementById('modal_inq');    targetDiv.style.display = "block";    var quickEditBoxH = targetDiv.offsetHeight;    var quickEditBoxW = targetDiv.offsetWidth;        var close_button = document.getElementById('close_inq');	close_button.onclick=function() {	   closeEnq_Overlay();	   return false;	}	    return false;}/* ADD LOAD EVENT */    
function addLoadEvent(func) {	
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
    	window.onload = func;
	} else {
		window.onload = function() {
    		oldonload();
    		func();
		}
	}
}
addLoadEvent(initModals);	// run shizzle onLoad    
