$(function(){
/* Home Page Functiona */
	
	if (html.length > 0) {
		for (var n=0;n<html.length;n++) {
			html[n] = '<li>' + $.trim(html[n]) + '</li>';
		}
		html = html.join('');
		html = '<ul id="animatedbanner_ul">' + html + '</ul>';
	}
	
	$('#animatedbanner').html(html);
	
	if(typeof $.innerfade == 'function') {
		$('#animatedbanner_ul').innerfade({ 
			animationtype: 'fade',
			containerheight: '260px',
			type: 'sequence',
			speed: 4000, 
			timeout: 5000 
		});    
	}
	
	if(typeof $.fn.cycle == 'function') {
		$('#news-content').cycle({ 
			fx: 'scrollUp', 
			timeout: 8000, 
			delay: -4000, 
			speed:1000, 
			pause: 1 
		});
	}
	
/* Search Functions */

	$('#cntnt01searchinput').focus(function(){
		if($(this).val() == 'Enter Search...') {
			$(this).val('');
		}
	});
	
/* FAQ Functions */

	$('.answer').hide();

	$('.question').click(function(event){
		$(this).next('.answer').slideToggle();
		event.preventDefault();
	});
	
/* Menu Functions */

//	$('#menuwrapper>#primary-nav>li>a').next('ul').hide();
//
//	$('#menuwrapper>#primary-nav>li>a').click(function(event){
//		if ($(this).next('ul').length > 0) {
//			$(this).next('ul').stop().slideToggle();
//		}
//		event.preventDefault();
//	});
	
});
