function clickRedir(a,b){b="http://click.tdc.dk/go/?u="+escape(a.href)+"&s="+escape(b).replace(/\+/g,"%2B");if(a.target=="_blank")window.open(b);else if(a.target=="_top")top.location=b;else document.location=b;return false}function highlightDiv(a){if(typeof a!="undefined"){$j("a[name="+a+"]").closest(".g_news_item").addClass("g_block_highlight");$j.scrollTo("a[name="+a+"]",{offset:-60})}}tdc.Grd.Event.Pool.bind({init:getArticleByFragment});
function insertNewArticle(a){return typeof a=="object"?'<div class="g_news_item g_news_item_'+a.media+a.id+'">\t<span class="g_news_logo g_news_'+a.mediaNiceName+'"></span>\t<div class="g_news_time">'+a.time+'</div>\t<div class="g_news_txt"><h4><a name="'+a.media+a.id+'" rel="nofollow" target="_blank" href="'+a.link+'">'+a.headline+"</a> <span>("+a.mediaNiceName+")</span></h4>\t\t<p>"+a.summary+"</p>\t</div></div>":""}
function getArticleByFragment(){if(document.location.hash.length>0){var a=document.location.hash.substring(1);if(a.indexOf("&")>-1)a=a.substring(0,a.indexOf("&"));var b=$j.getUrlVars().id;$j("a[name="+a+"]").length!=1?$j.ajax({url:"/ajax/index.php",type:"GET",data:{category:b,articleId:a},success:function(d){if(typeof d.id!="undefined"&&typeof d.media!="undefined"){var c=new Date(d.time*1E3),e=(c.getHours()<10?"0":"")+c.getHours();c=(c.getMinutes()<10?"0":"")+c.getMinutes();d.time=e+":"+c;html=insertNewArticle(d);
$j("#g_main_content .g_news_list_detail").append(html);highlightDiv(a)}}}):highlightDiv(a)}};

