/*############## PAGELOAD FUNC ################## # # # Loads main content, withhout the rest of the # # page refreshes. # # # # # # Added by: asn @ 22/09/2008 # # Edited by: jln @ 22/09/2008 # ###############################################*/ function reloadAds() { var ad1 = document.getElementById('afd197ee'); ad1.src = ad1.src; var ad2 = document.getElementById('a3974f5c'); ad2.src = ad2.src; } var ajaxSend = false; function changePage(site,id) { if (ajaxSend === false){ ajaxSend = true; if (site == '' || site==undefined || site.length == 0){ site = "forside"; } if (id == '' || id==undefined || id.length == 0){ id = ""; } new Ajax.Request('/content_fetch.php', { method:'get', parameters:{site: site, AjaxRequestUniqueId: 1,id: id }, 'onSuccess':function(req){ document.getElementById("contentContainer").innerHTML = req.responseText;ajaxSend=false; onAjaxLoad(site,id);reloadAds();}, 'onLoading':function(req){ document.getElementById("contentContainer").innerHTML = '
';}, 'onFailure':function(req){document.getElementById("contentContainer").innerHTML = '';ajaxSend = false;} }); if (site.length > 0){ location.hash = 'site='+site; } if (id.length > 0){ location.hash = 'site='+site+'?id='+id; } } } function checkAjaxAnchor() { var thisLocation = location.hash.substr(1); var variables = thisLocation.split("?"); // anchor var seperator var param = new Array(); for(i=0;i