function initTabs(){
	var i, tabs = id2object('tabs').getElementsByTagName('li');

	for(i=0; i < tabs.length; i++){
		tabHover(tabs[i]);
	}
}

function tabHover(span){
	//Set properties
	var url = span.getElementsByTagName('a')[0].href;

	if (document.location.href.indexOf(url) > -1){
		span.className = 'tab-active';
	}
	else{
		span.className = 'tab-passive';
		span.onmouseover = function() {this.className = 'tab-hover';}
		span.onmouseout  = function() {this.className = 'tab-passive';}
		span.onclick     = function() {this.className = 'tab-active';}
	}
}

addLoadFunction("initTabs();");

