function initMenu(){
	var nodes = document.getElementById("menu").getElementsByTagName("li");
	for (var i=0; i<nodes.length; i++){
		nodes[i].onmouseover = function(){
			this.className += " hover";
			if (this.getElementsByTagName('div')[0]) {this.getElementsByTagName('div')[0].style.width = this.offsetWidth + 'px';}
			if (this.getElementsByTagName('ul')[0] && this.getElementsByTagName('div')[0] && this.getElementsByTagName('ul')[0].offsetWidth > this.getElementsByTagName('div')[0].offsetWidth){
				this.getElementsByTagName('div')[0].style.width = this.getElementsByTagName('ul')[0].offsetWidth + 'px';
			}
		}
		nodes[i].onmouseout = function(){
			this.className = this.className.replace(" hover", "");
		}
	}
}
function initArticles(){
	var holder = document.getElementsByTagName('div');
	for ( i = 0; i < holder.length; i++){
		if (holder[i].className.indexOf('not-hover') != -1){
			holder[i].onmouseover = function(){
				this.className += " hover";
			}
			holder[i].onmouseout = function(){
				this.className = this.className.replace(" hover", "");
			}
		}
	}
}
function initComentarios(){
	var holder = document.getElementsByTagName('p');
	for ( i = 0; i < holder.length; i++){
		if (holder[i].className.indexOf('not-hover') != -1){
			holder[i].onmouseover = function(){
				this.className += " hover";
			}
			holder[i].onmouseout = function(){
				this.className = this.className.replace(" hover", "");
			}
		}
	}
}
function initTabs(){
	var holder = document.getElementsByTagName('ul');
	for ( i = 0; i < holder.length; i++){
		if (holder[i].className.indexOf('tabs') != -1){
			var tabs = holder[i].getElementsByTagName('li');
			for (j = 0; j < tabs.length; j++){
				tabs[j].onmouseover = function(){
					this.className += " hover";
				}
				tabs[j].onmouseout = function(){
					this.className = this.className.replace(" hover", "");
				}
			}
		}
	}
}
if (window.attachEvent){
	window.attachEvent("onload", initMenu);
	window.attachEvent("onload", initArticles);
	window.attachEvent("onload", initComentarios);
	window.attachEvent("onload", initTabs);
}