var areaindexBehaviours = {
	'#promotion' : function(el){
		if (getFirstElementHref(el) != "") {
			el.setAttribute("title", getFirstElementHref(el).getAttribute("title"));
			el.onclick = function(){
				location.href = getFirstElementHref(el).href;
			}
		}
	},
	
	'#hero' : function(el){
		if (getFirstElementHref(el) != "") {
			el.setAttribute("title", getFirstElementHref(el).getAttribute("title"));
			el.onclick = function(){
				location.href = getFirstElementHref(el).href;
			}
		}
	},

	'#hero_btm': function(el) {
	    if (getFirstElementHref(el) != "") {
	        el.setAttribute("title", getFirstElementHref(el).getAttribute("title"));
	        el.onclick = function() {
	            location.href = getFirstElementHref(el).href;
	        }
	    }
	},

	'#hero_home': function(el) {
	    if (getFirstElementHref(el) != "") {
	        el.setAttribute("title", getFirstElementHref(el).getAttribute("title"));
	        el.onclick = function() {
	            location.href = getFirstElementHref(el).href;
	        }
	    }
	},

	'#tasks li': function(el) {
		if (getFirstElementHref(el) != "") {
			el.setAttribute("title", getFirstElementHref(el).getAttribute("title"));
			el.onclick = function(){
				location.href = getFirstElementHref(el).href;
			}
			el.onmouseover = function(){
				el.style.backgroundPosition = "5px -107px";
			}
			el.onmouseout = function(){
				el.style.backgroundPosition = "5px 0px";
			}
		}
	},
	
	'#features div.feature' : function(el){
//		el.attributes.title = document.getElementById(el.id + "_href").attributes.title;
		if (getFirstElementHref(el) != "") {
			el.setAttribute("title", getFirstElementHref(el).getAttribute("title"));
			el.onclick = function(){
				location.href = getFirstElementHref(el).href;
			}
			el.onmouseover = function(){
				el.style.backgroundPosition = "0px -189px";
			}
			el.onmouseout = function(){
				el.style.backgroundPosition = "0px 0px";
			}
		}
	}
};

if (readCookie("style") != "textonly") Behaviour.register(areaindexBehaviours);
