function getElementsByClass(searchClass,node,tag) {
				var i,j;
				var classElements = new Array();
				if ( node == null )
					node = document;
				if ( tag == null )
					tag = '*';
				var els = node.getElementsByTagName(tag);
				var elsLen = els.length;
				var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
				for (i = 0, j = 0; i < elsLen; i++) {
					if ( pattern.test(els[i].className) ) {
						classElements[j] = els[i];
						j++;
					}
				}
				return classElements;
			}

function HomeSpotLightHover (section) {
	var i;
	if (!document.getElementsByTagName) return false;
	var tags = getElementsByClass(section);
        for (i=0;i<tags.length;i++) {
	       tags[i].onmouseover=function() {this.className+=" HomeSpotLightHover";}
		tags[i].onmouseout=function()
{this.className=this.className.replace(new RegExp(" HomeSpotLightHover\\b"), "")}
		tags[i].onclick = function () {location.href = this.getElementsByTagName("a")[0].href}
	}		
}

function LevelSpotLightHover (section) {
	var i;
	if (!document.getElementsByTagName) return false;
	var tags = getElementsByClass(section);
        for (i=0;i<tags.length;i++) {
	       tags[i].onmouseover=function() {this.className+=" LevelSpotLightHover";}
		tags[i].onmouseout=function()
{this.className=this.className.replace(new RegExp(" LevelSpotLightHover\\b"), "")}
		tags[i].onclick = function () {location.href = this.getElementsByTagName("a")[0].href}
	}		
}

function LevelSpotLightBlockHover (section) {
	var i;
	if (!document.getElementsByTagName) return false;
	var tags = getElementsByClass(section);
        for (i=0;i<tags.length;i++) {
	       tags[i].onmouseover=function() {this.className+=" LevelSpotLightBlockHover";}
		tags[i].onmouseout=function()
{this.className=this.className.replace(new RegExp(" LevelSpotLightBlockHover\\b"), "")}
		tags[i].onclick = function () {location.href = this.getElementsByTagName("a")[0].href}
	}		
}

function XHomeSpotLightHover (section) {
	var i;
	if (!document.getElementsByTagName) return false;
	var tags = getElementsByClass(section);
        for (i=0;i<tags.length;i++) {
	       tags[i].onmouseover=function() {this.className+=" XHomeSpotLightHover";}
		tags[i].onmouseout=function()
{this.className=this.className.replace(new RegExp(" XHomeSpotLightHover\\b"), "")}
		tags[i].onclick = function () {location.href = this.getElementsByTagName("a")[0].href}
	}		
}

function XLevelSpotLightHover (section) {
	var i;
	if (!document.getElementsByTagName) return false;
	var tags = getElementsByClass(section);
        for (i=0;i<tags.length;i++) {
	       tags[i].onmouseover=function() {this.className+=" XLevelSpotLightHover";}
		tags[i].onmouseout=function()
{this.className=this.className.replace(new RegExp(" XLevelSpotLightHover\\b"), "")}
		tags[i].onclick = function () {location.href = this.getElementsByTagName("a")[0].href}
	}		
}

function XLevelSpotLightBlockHover (section) {
	var i;
	if (!document.getElementsByTagName) return false;
	var tags = getElementsByClass(section);
        for (i=0;i<tags.length;i++) {
	       tags[i].onmouseover=function() {this.className+=" XLevelSpotLightBlockHover";}
		tags[i].onmouseout=function()
{this.className=this.className.replace(new RegExp(" XLevelSpotLightBlockHover\\b"), "")}
		tags[i].onclick = function () {location.href = this.getElementsByTagName("a")[0].href}
	}		
}

window.onload=function() {HomeSpotLightHover('HomeSpotLight'); XHomeSpotLightHover('XHomeSpotLight'); LevelSpotLightHover('LevelSpotLight'); XLevelSpotLightHover('XLevelSpotLight'); LevelSpotLightBlockHover('LevelSpotLightBlock'); XLevelSpotLightBlockHover('XLevelSpotLightBlock')};


