$(document).ready(
	function()
	{
	   imageRotator(-1);
	}
);


function imageRotator(iIndex)
{
    if (iIndex >= 0)
    {
        $(".content-image:nth-child(" + iIndex +")").fadeOut(1500);
        iIndex++;
        if (iIndex >= ($(".content-image").size() + 1))
        {
            iIndex = 1;
        }
    }else{
        iIndex = 1;
        
    }
        
    $(".content-image:nth-child(" + iIndex +")").fadeIn(750);
    $(".content-image:nth-child(" + iIndex +")").css("display","block");
    
    //console.log($(".content-image").size());
    if ($(".content-image").size() != 1)
    {
        setTimeout("imageRotator("+iIndex+")", 5000);    
    }
    
}

