jQuery(document).ready(function($) {
	// remove unwanted borders on menu items
	$('#wrapper .menu ul li:last-child').css('border-right', 'none')
	$('#wrapper .menu ul li:first-child').css('border-left', 'none')
	$('#wrapper .menu ul li ul li:last-child').css('border-bottom', 'none')
	// fix menu rollover for IE6
	$('#wrapper .menu ul li').hover(
		function() {
			$(this).children('ul').css('display', 'block')
		},
		function() {
			$(this).children('ul').css('display', 'none')		
		}
	)
	// clear the top search field on click
	$('#wrapper .masthead input#q').click(function() {
		$(this).val('')
	})
	// remove unwanted backgrounds on box ul li tags on homepage
	$('.box ul li:last-child').css('background-image', 'none')
	// init tenders news ticker
	$().newsTicker({
		newsList: "#wrapper .box#latestTenders .boxContent ul",
		startDelay: 10,
		placeHolder1: " |",
		placeHolder2: "_"		
	});
	// init colorbox
	$('a[rel=colorbox]').colorbox()
	// table row striping
	$('#wrapper .content table tr:odd').addClass('odd')
	$('#wrapper .content table tr:even').addClass('even')
	// autosize height of content column if fastIndex is taller
	if($('#wrapper .fastIndex').height() > $('#wrapper .content').height()) {
		$('#wrapper .content').height($('#wrapper .fastIndex').height())
	}
})
// font replacement for Heading 1 tags
Cufon.replace('#wrapper .content h1[class!=lozenge]')