
metworks = {
	
	init : function(){
		
		 metworks.addRollListeners();
	},
	
	addRollListeners : function(){
		
		var list			= document.getElementById('entrance');
		
		var items 			= list.getElementsByTagName('li');
		for(i=0; i < items.length; i++) {
			items[i].onmouseover = function() {
				this.className = this.className.replace('off','');
				this.style.cursor = 'pointer';
			}
			
			items[i].onmouseout = function() {
				this.className = this.className + 'off';
			}
			
			items[i].onclick = function() {
				a = this.getElementsByTagName('a');
				url = a[0].href;
				window.location.href = url;
			}
			
		}
		
		
	},
	
	
	
	addLoadEvent : function(func){
		// thanks simon.
		var oldonload = window.onload;
		if (typeof window.onload != 'function') {
			window.onload = func;
		} else {
			window.onload = function() {
				if (oldonload) {
					oldonload();
				}
				func();
			}
		}
	}
	
	
}


metworks.addLoadEvent(metworks.init);