focusedNewsIndex=0;
function changeFocusedNews(){
	$("#top-four-news li").removeClass("focused");
	$("#top-four-news li:eq("+focusedNewsIndex+")").addClass("focused");
	var imgSrc = $("#top-four-news li:eq("+focusedNewsIndex+") a.thumb").attr("rel");
	$("#top-four-news").css("background-image", "url("+imgSrc+")");
	
	// preload next
	var preloadSrc = $("#top-four-news li:eq("+((focusedNewsIndex+1)%4)+") a.thumb").attr("rel");
	jQuery("<img>").attr("src", preloadSrc);
	
	
	
	focusedNewsIndex++;
	focusedNewsIndex=focusedNewsIndex%4;
}
$(function(){
	setInterval(function(){changeFocusedNews();}, 5000);
	changeFocusedNews();	
});

$(document).ready(function(){
    $(".albumUserThumb").mouseover(function() {
       $(this).css("cursor", "pointer");
       $(this).children("i").css("border-color", "#F28F34");
    });

    $(".albumUserThumb").mouseout(function() {
       $(this).css("cursor", "pointer");
       $(this).children("i").css("border-color", "#3B5998");
    });

});


