window.onload = function () { 
	if ( navigator.userAgent.toLowerCase().indexOf('safari') < 0) {	
		var searchfield = document.getElementById("ctl00_sfield");
		searchfield.style.paddingTop = '3px';
	}
}
$(function(){
	$('.results:gt(0)').css('display','none');
	$('.tab:gt('+$('.results').length-1+')').css('display','none');
	$('.tab a').click(function(){
		if($(this).parent().hasClass('newsresults')) ShowResults('news');
		if($(this).parent().hasClass('mediaresults')) ShowResults('media');
	});
});

function ShowResults(section){
	$('div.results:not(.'+section+')').css('display','none');
	$('.'+section).css('display','block');
	$('li.tab:not(.'+section+'results)').removeClass("current").addClass('other');
	$('li.'+section+'results').addClass('current').removeClass('other');
}