function onClickSwitchStyle() {
	if (getElementsByClass) {
		if (getElementsByClass('styleSwitcherLink')) {			
			thumbsLink = getElementsByClass('styleSwitcherLink');			
			for (i = 0; i < thumbsLink.length; i++) {
				thumbsLink[i].onclick = function() {
					setActiveStyleSheet(this.title);
					return false;
				}
			}
		}
	}
}

/* styleSwitcher */

function onOverShadow() {
	if (getElementsByClass) {
		if (getElementsByClass('styleSwitcherLink')) {			
			thumbsLink = getElementsByClass('styleSwitcherLink');			
			for (i = 0; i < thumbsLink.length; i++) {
				thumbsLink[i].onmouseover = function() {
					document.getElementById('shadow').className = 'show';
					document.getElementById('styleSwitcher').className = 'show';
					return false;
				}
			}
		}
	}
}



function onOutShadow() {
	if (getElementsByClass) {
		if (getElementsByClass('styleSwitcherLink')) {			
			thumbsLink = getElementsByClass('styleSwitcherLink');			
			for (i = 0; i < thumbsLink.length; i++) {
					thumbsLink[i].onmouseout = function() {
					document.getElementById('shadow').className = '';
					document.getElementById('styleSwitcher').className = '';
					return false;
				}
			}
		}
	}
}

/* Backlink */

function onOverBLshadow() {
	if (document.getElementById) {
		if (document.getElementById('backLink')) {	
			document.getElementById('backLink').onmouseover = function() {
				document.getElementById('shadow').className = 'show';
				document.getElementById('backLink').className = 'show';
				return false;
			}
		}
	}
}

function onOutBLshadow() {
	if (document.getElementById) {
		if (document.getElementById('backLink')) {			
			document.getElementById('backLink').onmouseout = function() {
				document.getElementById('shadow').className = '';
				document.getElementById('backLink').className = '';
				return false;
			}
		}
	}
}


addLoadEvent(onClickSwitchStyle);

addLoadEvent(onOutShadow);
addLoadEvent(onOverShadow);

addLoadEvent(onOutBLshadow);
addLoadEvent(onOverBLshadow);