$(window).load(function(){
	imageRotator();
	$('div.slider-loading').remove();
	setInterval("imageRotator()",7000);	
});
function imageRotator(){
	var currentPhoto = $("#myslider div.slider-current");
	var nextPhoto = currentPhoto.next();
	if (nextPhoto.length == 0){
		nextPhoto = $("#myslider div:first")
	}
	currentPhoto.removeClass('slider-current').addClass('slider-previous');
	curWidth = currentPhoto.children("p:first").width();

	nextPhoto.css({opacity:0.0}).delay(5000).addClass('slider-current').animate({opacity:1.0}, 1000,function(){
	currentPhoto.removeClass('slider-previous');

	});
	
}
	


