function initMenu(){
	var _menu = document.getElementById("menu");
	if(_menu){
		var nodes = _menu.getElementsByTagName("li");
		var _a = -1;
		for (var i=0; i<nodes.length; i++){
			if(nodes[i].parentNode == _menu && nodes[i].className.indexOf('active') != -1) _a = nodes[i];
			nodes[i].onmouseover = function(){
				if(this != _a && _a != -1) _a.className = _a.className.replace('active', '');
				this.className += ' drop';
			}
			nodes[i].onmouseout = function(){
				this.className = this.className.replace('drop', '');
				if(_a != -1 && _a.className.indexOf('active') == -1) _a.className += ' active';
			}
		}
	}
}

if (window.addEventListener) window.addEventListener("load", initMenu, false);
else if (window.attachEvent) window.attachEvent("onload", initMenu);


function initAddclass(){
	var _sidebar = document.getElementById("sidebar");
	var _box = document.getElementsByTagName("div");
	for (var i = 0; i < _box.length-1; i++)
	{
		if (_box[i].className.indexOf("columns-holder") != -1)
		var col = _box[i];
	}
	if(_sidebar){
		col.className += ' '
	}
	else{
		col.className += ' wt-bg'
	}
}
if (window.addEventListener) window.addEventListener("load", initAddclass, false);
else if (window.attachEvent) window.attachEvent("onload", initAddclass);
