if(self!=top)top.location.href=self.location.href;var timer;function suggestTown(input)
{if(timer)clearTimeout(timer);if(encodeURIComponent){var req=new AjaxRequest();req.loadXMLDoc("/scripts/suggestTown.php","q="+encodeURIComponent(input));}
timer=setTimeout("document.getElementById('suggest').style['display'] = 'none'",5000);}
function record_outbound(target)
{if(encodeURIComponent){var req=new AjaxRequest();var params="src="+encodeURIComponent(location.href)+"&target="+encodeURIComponent(target);req.setMethod("POST");req.loadXMLDoc('/scripts/record_outbound.php',params);}
return true;}
function add_record_event()
{if(self.location.href.match(/\/admin\//))return;var links=document.getElementsByTagName('a');for(var i=0;i<links.length;i++){if(!links[i].href.match(/newspapers\.com\.au/)){links[i].onclick=function(){return record_outbound(this.href);}}}}
window.onload=add_record_event;function showDetails(newspaperid)
{if(encodeURIComponent){var req=new AjaxRequest();req.setMethod("POST");req.loadXMLDoc('/scripts/fetchDetails.php',"newspaperid="+encodeURIComponent(newspaperid));return false;}
return true;}
