try {
  document.execCommand('BackgroundImageCache', false, true);
}
catch(e) {}

var i;
 
$(document).ready(function() {
    if (home_images > 0)
    {
        i = 1;
        changeBackground();
    };
});


function changeBackground(){
    if (i > home_images){i = 1;};
    document.getElementById("left").className = "left" + i;
    i = i+1;
    setTimeout(changeBackground,4000);
}

/*$(document).ready(function(){ 
        $(".small").hover(function(){ 
                var hoverObj = this; 
                $("#big").fadeOut("fast", function(){ 
                        $(this).css("backgroundImage", "url(" + $(hoverObj).attr("big") + 
")"); 
                        $(this).fadeIn("fast"); 
                }); 
        }); 
}); */