jQuery.SlideImage = function(select, options) {		var $select = select;	var $index = 0;	var $nextindex = 1;	var $maxImages = jQuery('img', $select).length;	jQuery('img', $select).eq(0).animate({opacity: 'show'}, 1000);	var link = jQuery('a', $select).attr('href');	var anidID = jQuery('a', $select).attr('id');	var editID = anidID.slice(5);		$('.front-edit').hide();	$('#front-edit-' + editID).show();		jQuery('#frontimagelink').attr('href', link);				jQuery('img', $select).slice(1).each(function(){		jQuery(this).hide();	});		if($maxImages > 1){		startAnimation();	}		function startAnimation(){		t = setTimeout(function(){			jQuery('img', $select).eq($index).animate({opacity: 'hide'}, 5000, nextImage);			jQuery('img', $select).eq($nextindex).animate({opacity: 'show'}, 5000);						var link = jQuery('a', $select).eq($nextindex).attr('href');			var anidID = jQuery('a', $select).eq($nextindex).attr('id');			var editID = anidID.slice(5);			jQuery('#frontimagelink').attr('href', link);								$('.front-edit').hide();			$('#front-edit-' + editID).show();		 },10000);	}	function nextImage(){		$index++;		$nextindex++;		if($index == $maxImages){			$index = 0;			}		if($nextindex == $maxImages){			$nextindex = 0;		}		startAnimation();	}};jQuery.fn.SlideImage = function(options) {		options = options || {};	var select = this;	new jQuery.SlideImage(select, options);};jQuery(document).ready(function() {	jQuery(".view-content").SlideImage( {});});
