// JavaScript Document

<!-- JQUERY Functions -->

$(document).ready(function() {
	  
	$('.rollingpic').cycle({				// cycle homepage images using jquery.cycle
		timeout:	8000,
		speed:  	1000,
		pager:		"#picnav"
	});
	
	// setup rollover actions - the 'data-rel' attr is the rollover image
	
	var $originalimage;
	
	$('.rollover').bind("mouseover",function(){
		$originalimage = $(this).attr('src');									 
		$(this).attr("src",$(this).attr('data-rel'));
	});
	
	$('.rollover').bind("mouseout",function(){
		$(this).attr("src",$originalimage);
	});
	
	// RSS Parser
	
	$('#newsitems').simplerss({
                url: 'http://www.coleman-milne.co.uk/category/coleman-milne/feed/',
				html: '<a href="{link}">{title}</a>',
				wrapper: 'p',
				display: 4
            }).show();
	
});
