jQuery(document).ready(function(){

	// news rss box
	
	if (jQuery("#news-rss-box").length)
	{
		jQuery("#news-rss-box").rssInclude(
		
		{ contentType: "xml", rssURL: "/newsrss.aspx", ellipsis: "&hellip;", itemTag: "div", title: 0}, 
		{ description: 80 }, 
		{ opacity: 1 }, 
		{ duration: 300, easing: "swing", complete: function(){ 
		
			jQuery("#news-rss-box").rssScroller({
	
				direction: "top", 
				speed: 700, 
				pause: 4000, 
				fps: 25
		
			}); 
			if (jQuery("#news-rss-box .rss-item-pubDate").length)
			{
				jQuery("#news-rss-box .rss-item-pubDate").html(
			
					jQuery("#news-rss-box .rss-item-pubDate").html().substr(0, 16)
			
				);
			}

		}}
		
		);
	}
	
	// jobs rss box
	if (jQuery("#jobs-rss-box").length)
	{
		jQuery("#jobs-rss-box").rssInclude(
		
		{ contentType: "xml", rssURL: "/job/rss.aspx?search=1", ellipsis: "&hellip;", itemTag: "div", title: 40}, 
		{ description: 80 }, 
		{ opacity: 1 }, 
		{ duration: 300, easing: "swing", complete: function(){ 
		
			jQuery("#jobs-rss-box").rssScroller({
	
				direction: "top", 
				speed: 500, 
				pause: 4000, 
				fps: 25
		
			}); 

		}}
		
		);
	}
	
	// client logo rotation
	if ($(".ac_clients_logo").length)
	{
		$(".ac_clients_logo").jCarouselLite({
			auto: 3000,
			speed: 1000, 
			vertical: true, 
			visible: 1
		});
	}

});
