jQuery.noConflict();
(function($) {
$(function() {
	$('.recentNews li, #right li, #homeBoxes li, #news #gallery li').hover(function() {  $(this).addClass('over'); }, function() { $(this).removeClass('over'); });
	var def=$('#header input').val();
	$('#header input').focus(function() { $(this).val()==def? $(this).val('') : void(0); }).blur(function() { $(this).val()==''? $(this).val(def): void(0); });
	$('#calendar table').find('td:first-child').addClass('tdFirst');
	$('#calendar table').find('tr').hover(function() { $(this).find('td').addClass('overTd'); }, function()  { $(this).find('td').removeClass('overTd'); })
	$('#calendar table td').click(function() { window.location.href=$(this).parent().find('a').attr('href'); });
	$('.calender li:last').addClass('lastli');
	$('#survey').parent().parent().parent().find('h1').css('line-height', '100%');
	var location = document.location.href;
	var temp = location.split('multiple');
	
	if(temp.length > 1){
		if(temp[1]){
			var temp2 = temp[1].split("=");
			var page = temp2[1].substr(0,1);
			if(page>1){
				$('.csc-firstHeader').hide();
			}
			else { $('#right').addClass('firstPage'); }
		}
	}
	else { $('#right').addClass('firstPage');  }
	if(page==undefined) $('#pages li:first-child').addClass('active');
	else {
		$('#pages li').each(function() { 
			if($(this).text()==page) $(this).addClass('active'); 
		})
	}
	$('#pages li:last').addClass('lastli');

})
})(jQuery);

sfHover = function() {
	var sfEls = document.getElementById("menu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function formshowhide(id) {
	if(id == "f1") {
		document.getElementById('indexedsearchbox_box').style.display = "block";
		document.getElementById('tx-searchbox-pi1_box').style.display = "none";
		document.getElementById('tx-searchboxdutchlife-pi1_box').style.display = "none";
	}
	else if (id == "f2") {
		document.getElementById('indexedsearchbox_box').style.display = "none";
		document.getElementById('tx-searchbox-pi1_box').style.display = "block";
		document.getElementById('tx-searchboxdutchlife-pi1_box').style.display = "none";
	}
	else if (id == "f3") {
		document.getElementById('indexedsearchbox_box').style.display = "none";
		document.getElementById('tx-searchbox-pi1_box').style.display = "none";
		document.getElementById('tx-searchboxdutchlife-pi1_box').style.display = "block";
	}
}
