
startList = function() {
	
	
	//ajaxInit();
	//renderSwfs();
	if (document.getElementById("newsScroller")) {
		slideInit("u", 5000, 10, 20, "newsScroller", "slide_"); //direction, delay, pixelsToSlide, speed, id_main_box, id_prefix
	}
	
	//if (document.getElementById("newsScroller")) {
		//Effect.BlindDown("newsScroller", { duration: 1.0 });	
	//}	
	
	
	if (document.getElementById("menu")) {
		var tags = document.getElementById("menu").getElementsByTagName("img");
		for (var i = 0; i <  tags.length  ; i++) {
			var tag = tags[i];
			if (tag.className != "current") {
				tag.onmouseover = function() {
					var thisId = this.id;
					//alert(thisId);
					document.getElementById(thisId).src = "img/" + thisId + "_on.gif";
				}
				tag.onmouseout = function() {
					var thisId = this.id;
					//alert(thisId);
					document.getElementById(thisId).src = "img/" + thisId + ".gif";
				}
			}
		}
		
		var tag = document.getElementById("prodottiButton");
			tag.onmouseover = function() {
			this.className += "over";
		}
			tag.onmouseout = function() {
			this.className = this.className.replace("over", "");
		}
	}
	
	if (document.getElementById("left")) {
		var tags = document.getElementById("left").getElementsByTagName("div");
		for (var i = 0; i <  tags.length  ; i++) {
			var tag = tags[i];
			if (tag.className == "subCatText") {
				tag.onclick = function() {
					for (var n = 0; n <  tags.length  ; n++) {
						var tag = tags[n];
						if (tag.className == "subCatText") {
							var thisIdAlt = tag.id;	
							//alert(thisIdAlt);
							document.getElementById("sub_" + thisIdAlt).style.display = "none";
						}
					}
					var thisId = this.id;
					//alert(thisId);
					document.getElementById("sub_" + thisId).style.display = "block";
				}
			}
		}
	}
	
	if (document.getElementById("regione")) {
		var regione = document.getElementById("regione").value;
		if (regione != "") {
			document.getElementById('provincia_' + regione).style.display = "block";
			document.getElementById('provincia_' + regione).disabled = false;
		}
	}
	
}
window.onload = startList;