$(document).ready(function() {

$('div.navLinks span.navSpan').each(function(){
$(this).click(function(ev){
top.location.href = $(this).prev().find('a').attr('href');
});
});
$('dl.nav > dd').each(function(){
$(this).click(function(ev){
top.location.href = $(this).prev().find('a').attr('href');
});
});

$accDC([
{
id: 'search',
role: 'Search',
trigger: '#searchLink',
source: '/extra/search.txt',
binders: 'click',
mode: 1,
className: 'dialog searchOverlay',
autoFix: 1,
closeClassName: 'closeLink',
runBefore: function(dc){
dc.targetObj = $(dc.triggerObj).parent().parent();
},
runAfter: function(dc){
dc.containerDiv.find('[name=q]').attr('title', 'Search').focus();
}
}
]);

$('a#topLink').data('h1', $('div.hd > h1').first()).click(function(ev){
$accDC.fn.setFocus($(this).data('h1'));
ev.preventDefault();
});

var hitCounter = setInterval(function(){
$.getScript('/cl/hit_counter.js.php');
}, 30000);

});
