var xSlides = 7;
var currentSlide = 2;
//var currentSlide = Math.round(Math.random() * (9)) + 1;
var pauseDuration = 3;
var sh_timer;
var img_path = "/site-tic/images/";
var img_prefix = "hp-slide-";
var img_type = ".gif";

function ss_playSlide() {
	if(document.getElementById("home_slideshow")) {
		document.getElementById("home_slideshow").style.backgroundImage = "url("+ img_path + img_prefix + currentSlide + img_type +")";
		if (currentSlide == xSlides) {
			currentSlide = 1;
		} else {
			currentSlide++;	
		}
	}
	setTimeout("ss_playSlide()", pauseDuration*1000);
}

window.onload=ss_playSlide();
