$(window).load(function() {
	$('#slider').nivoSlider();
});

$(document).ready(function() {
	$('#page').fadeIn(900);
	
	$('a.pfade').click(function(){
		$('#page').fadeOut();
		setTimeout("nav('"+this.href+"')",900);
		return false;
	});
	
	$('.accordionContent').hide();
	$('.accordionButton').click(function() {
		var checkElement = $(this).next();
		if((checkElement.is('.accordionContent')) && (checkElement.is(':visible'))) {
			checkElement.slideUp('normal');
		}
		if((checkElement.is('.accordionContent')) && (!checkElement.is(':visible'))) {
			$('.accordionContent:visible').slideUp('normal');
			checkElement.slideDown('normal');
			return false;
		}
	});
});

function nav(href){
	location.href=href;
}

$('.s5').cycle({
	fx: 'fade',
	speed: 1000,
	timeout: 2500,
	next: '.s5',
	pause: 1
});

<!--
//retrieve the State (Progress) ID to be passed to progressbar.asp
// and process.asp
//ProgressID=;

function Uploadfile() {
	//var validentry;
	//var HasPic;
	//if (document.sendimg.fname.value != '') {
	//  HasPic = true;
	//}
	// else {
	//  HasPic = false;
	//}
	//if (HasPic) {
	//this javascript function runs when the user clicks on the form's button.
	//it opens the progressbar.asp window and then submits the form data to process.asp
	//if (ProgressID != -1){
	//only open progressbar.asp window if there is a valid id. We will center this progress bar as well.
	//Param = "SCROLLBARS=no,RESIZABLE=no, TOOLBAR=no,STATUS=no,MENUBAR=no,WIDTH=400,HEIGHT=100";
	//Param += ",TOP=" + String(window.screen.Height/2 - 50);
	//Param += ",LEFT=" + String(window.screen.Width/2 - 200);
	//note that we pass the Progress ID to progressbar.asp
	//window.open("ProgressBar.asp?ProgressID=", null, Param);
	//}

	//now that progress bar window is open submit the form data to Process.asp, passing
	// the ProgressID as a querystring parameter
	document.sendimg.action = 'x_subfile.asp?ProgressID=';
	//document.sendimg.submit();
	//}
}
//-->
