function setClickable(obj) {
	var anchor = obj.getElementsByTagName("a")[0];
	if (!anchor) return;
	obj.anchor = anchor;
	var span = obj.getElementsByTagName("span")[0];
	if (span && span.className && span.className == "frame") {
		obj.frame = span;
	}
	else {
		if (span && span.className) alert(span.className);
	}
	obj.onclick = function() {window.location.href=this.anchor.href}
	obj.onmouseover = function() {
		if (this.anchor.className && this.anchor.className != "") {
			this.anchor.className = this.anchor.className + " hover";
		}
		else {
			this.anchor.className = "hover";
		}
		if (this.frame) {
			if (this.frame.className && this.frame.className != "") {
				this.frame.className = this.frame.className + " hover";
			}
			else {
				this.frame.className = "hover";
			}
			//alert(this.frame.className);			
		}
	}
	obj.onmouseout = function() {
		if (this.anchor.className.indexOf("hover") != -1) {
			this.anchor.className = this.anchor.className.substring(0,this.anchor.className.indexOf("hover"));
		}
		if (this.frame && this.frame.className.indexOf("hover") != -1) {
			this.frame.className = this.frame.className.substring(0,this.frame.className.indexOf("hover"));
		}
	}
}
function initClickables(target) {
	var clickables = document.getElementById(target).getElementsByTagName("li");
	for (var i=0;i<clickables.length;i++){
		setClickable(clickables[i]);
	}
}