jQuery.noConflict();

jQuery(function($) {
	// home box link
	var homeboxheight = $('.homeBox').height();
	var homeleftcolumn = $('#homePage #leftColumn').height();
	$('a.homeBoxLink').css({"height": homeboxheight + 8});
	$('#latestNews').css({"min-height": homeleftcolumn - homeboxheight - 22 });
	
	// project list hovers
	$('.projectListItem').hover(
		function () {
			$(this).addClass("hover");
		},
		function () {
			$(this).removeClass("hover");
		}
	);
	
});

function searchCat() {
	var cat1 = document.getElementById('cat1').options[document.getElementById('cat1').selectedIndex].value;
	var cat2 = document.getElementById('cat2').options[document.getElementById('cat2').selectedIndex].value;
	var newCat = '';
	
	if (cat1>0) newCat = cat1;
	if (cat2>0) {
		if (newCat=='') newCat = cat2;
		else newCat = newCat + ',' + cat2;
	}
	
	document.getElementById('ttnewsCat').value = newCat;
}
