jQuery(function($) {
	
	// Initiate news ticker
	try
	{
		var ticker_holder = $('.stories-holder').get(0);
		var ticker_text = $('.stories').get(0);
		var ticker_pos = ticker_text.parentNode.offsetWidth;

		var ticker_data = $(ticker_holder).html();
		$(ticker_text).parent().html('<marquee scrollamount="3" scrolldelay="0">' + ticker_data + '</marquee>');
		$('#plm-news-ticker').css("visibility", "visible");
		$('#plm-news').hover
		(
			function() { $('marquee', this).get(0).stop();  },
			function() { $('marquee', this).get(0).start(); }
		);

		
	}
	catch (o) {}
	
	// Preload images
	$.preloadImages(
		"/images/icons/quote-request-rgb.png",
		"/images/icons/quote-request-grey.png",
		"/images/icons/dl-rgb.png",
		"/images/icons/dl-grey.png"
	);
	
	// set up hover icons
	$("a.downloadable").each(function(){
		$(this).hover(function(){
			$(this).toggleClass("rgb");
			},function(){
			$(this).toggleClass("rgb");
		});
		
	});
	
});
