	function loadScript(scriptPath, typeName) {
		if(typeName == "undefined") {
			var script = document.createElement('script');  
			script.src = scriptPath;  
			script.type = 'text/javascript';  
			var head = document.getElementsByTagName('head')[0];  
			if (!head) {  
				head = document.body.parentNode.appendChild(document.createElement('head'));  
			}  
			head.appendChild(script);  
		}
	}

	// Load Javascript libraries (if needed):
	loadScript("/Web/Core/UI/Scripts/jQuery/jquery.cycle.min.js", typeof(jQuery.cycle));
	loadScript("/Web/Core/UI/Scripts/jQuery/cycle.js", typeof(aaCycle));

	jQuery(window).load(function() {
		loadItemBackground(2, "custom123-image4");
		loadItemBackground(3, "custom123-image3");
		aaCycle.autoCycle.init("0123456789", 5000);
	});

	function loadItemBackground(child, className) {
		jQuery(".custom-slideshow li:nth-child("+ child +")").addClass(className);
	}

