var index = 2;
var headPromotion;
var effect;

function initializePromotion() {
	headPromotion = document.getElementById("head_promotion");
	setInterval("reflesh()", 10000);
}

function reflesh() {
	headPromotion.style.backgroundImage = "url(img/common/head_promotion/promotion_"
			+ index + ".jpg)";

	effect = new Spry.Effect.Fade("head_promotion", {
		duration : 4000,
		from : 0,
		to : 100
	});
	effect.start();

	if (index >= 2) {
		index = 1;
	} else {
		index++;
	}
}

