﻿var imgRotCounter = 1;
var imgRotImages = new Array(
	"img/homepage/img_one.jpg",
	"img/homepage/img_two.jpg",
	"img/homepage/img_three.jpg",
	"img/homepage/img_four.jpg");

$(function() {
    $('#introImage').innerfade({
        speed: 1000,
        timeout: 3000,
        type: 'sequence',
        containerheight: '230px'
    });
    $('#introImage').show();
});
/*
$(function() {
    $.timer(3000, function(timer) {
        $.cacheImage(imgRotImages[imgRotCounter], {
            load: function() {
                $("#introImage").fadeOut("slow", function() {
                    $("#introImage").attr("src", imgRotImages[imgRotCounter]);
                    $("#introImage").fadeIn("slow");
                    imgRotCounter++;
                    if (imgRotCounter == imgRotImages.length) {
                        imgRotCounter = 0;
                    }
                });
            } 
        });
    });
});


*/