if (typeof Aberdean === 'undefined' || !Aberdean) {
	var Aberdean = {};
}
if (!Aberdean.home) {
	Aberdean.home = (function() {
		var views = [], prevIndex = 0, curIndex = 0, opacity = 0, pause = false,
		add = (function() {
			if (window.addEventListener) { return function(o, t, f) { o.addEventListener(t, f, false); }; }
			else if (window.attachEvent) { return function(o, t, f) { o.attachEvent('on' + t, f); }; }
			else { return function() { }; }
		} ()),
		remove = (function() {
			if (window.removeEventListener) { return function(o, t, f) { o.removeEventListener(t, f, false); }; }
			else if (window.detachEvent) { return function(o, t, f) { o.detachEvent('on' + t, f); }; }
			else { return function() { }; }
		} ());
		function updateAlpha() {
			if (opacity < 100) {
				opacity += 10;
				views[curIndex].style.filter = "alpha(opacity=" + opacity + ")";
				setTimeout(updateAlpha, 100);
			}
			else {
				views[curIndex].style.filter = "alpha(opacity=100)";
				finishTransition();
			}
		}
		function updateOpacity() {
			if (opacity < 1) {
				opacity += 0.1;
				views[curIndex].style.opacity = opacity;
				setTimeout(updateOpacity, 100);
			}
			else {
				views[curIndex].style.opacity = 1;
				finishTransition();
			}
		}
		function startTransition() {
			if (!pause) {
				opacity = 0;
				prevIndex = curIndex;
				curIndex = (curIndex + 1) % views.length;
				views[prevIndex].style.zIndex = '1';
				if (views[curIndex].filters) {
					updateAlpha();
				}
				else {
					updateOpacity();
				}
				views[curIndex].style.display = 'block';
				views[curIndex].style.zIndex = '2';
			}
			else {
				setTimeout(startTransition, 100);
			}
		}
		function finishTransition() {
			views[prevIndex].style.display = 'none';
			views[prevIndex].style.zIndex = '0';
			setTimeout(startTransition, 3000);
		}
		function load() {
			var vp, children, i, l;
			remove(window, 'load', load);
			vp = document.getElementById("col1Awards");
			if (vp && (children = vp.childNodes)) {
				for (i = 0, l = children.length; i < l; i++) {
					if (1 === children[i].nodeType) {
						views.push(children[i]);
					}
				}
				if (views.length > 0) {
					vp.onmouseout = function() {
						pause = false;
					};
					vp.onmouseover = function() {
						pause = true;
					};
					setTimeout(startTransition, 3000);
				}
			}
		}
		add(window, 'load', load);
		return true;
	} ());
}
