var play = true;
var objIndex=0;
function Step(){
objects=jQuery('.popular-item');
if(play) {
	if(objIndex==(objects.length-1)) objIndex=0; else objIndex++;
	var obj=objects[objIndex];
	select_item(obj);
	setTimeout('Step()',5000);
}

}


function select_item(obj)
{	
	var f = jQuery(obj).attr('class');
	jQuery('.popular-item').removeClass('sel_span');
	jQuery('#img_doors').fadeOut('fast',function()
	{
		jQuery('#img_doors').attr('src',jQuery(obj).attr('rel')).load(function(){
			jQuery(this).fadeIn('slow');
	
		});
		jQuery('#img_a').attr('href',jQuery(obj).attr('id')).load(function(){
			jQuery(this).fadeIn('slow');
	
		});
		
		
	});
	
	
	jQuery('.hint').fadeOut('slow');
	jQuery('.hint').hide();
	jQuery(obj).fadeIn('slow').addClass('sel_span');
	jQuery(jQuery(obj).children('.hint')[0]).fadeIn('slow');
	//alert(f);
	return false;
}

