$(document).ready(function()
{ 
bindevents();
t=setTimeout(function() {
swapdpt();
}, 10000);
});
function swapdpt()
{
var l =  window.location['pathname']+'?';
$(".featured").slideUp(2000, function () {
$(".featured").load(l+'&ajax=true', function ()
{

	var images = $('.featured img');
	var nsimages = images.length;
	images.load(function() { 
   	nsimages--;
	if(nsimages == 0) {
	$('.featured').slideDown(2000);
	bindevents();
	t=setTimeout(function() {
	swapdpt();
	}, 10000);

	}});




});
});
}
function bindevents()
{
$('.featured').children().hover(function() { 
clearTimeout(t);
$(this).siblings().stop().fadeTo(300,0.5); 
},function(){ 
$(this).siblings().stop().fadeTo(300,1); 
t=setTimeout(function() {
swapdpt();
}, 10000);
}); 
}

