var current = null;

function setMainmenu(obj, arg) {
	if(obj == current) { return; }

	//obj.className = "menuSelected";
	obj.className = arg;
	obj.firstChild.className = "textSelected";
	
	if(current) {
		current.className = "";
		current.firstChild.className = "";
	}
	current = obj;
}

function setSubmenu(sub_menu) {
	getObj(sub_menu).style.color = "#9B2424";
}

// Not in use (yeat)
/* function setMenuColor(obj, arg) { */
/* 	getObj(obj).style.backgroundColor = "rgb(" + arg + ")"; */
/* } */

/* function setPosition() { */
/* 		var width = 1024, height = 768; */
/* 		 */
/* 		if(parseInt(navigator.appVersion) > 3) { */
/* 			if(navigator.appName == "Netscape") { */
/* 				width = window.innerWidth; */
/* 				height = window.innerHeight; */
/* 			} */
/* 			if(navigator.appName.indexOf("Microsoft") !=- 1) { */
/* 				width = document.body.offsetWidth; */
/* 				height = document.body.offsetHeight; */
/* 			} */
/* 		} */
/* 		var w = (width-900)/2; */
/* 		getObj('main_canvas').style.left = w + "px";//alert(getObj('main_canvas').offsetLeft); */
/* 	} */
	
/* function setDivs(left, right) { */
/* 	getObj('left_canvas').style.width = left + "%"; */
/* 	getObj('right_canvas').style.width = right + "%"; */
/* } */

// Test rounded corners
/* function rounded(bg_color, text_color, in_text) { */
/* 	var result = "<div>"; */
/* 	result += "<span style='display: block; background: " + bg_color + "; height: 1px; margin: 0 5px 0 5px;'>&nbsp;<\/span>"; */
/* 	result += "<span style='display: block; background: " + bg_color + "; height: 1px; margin: 0 3px 0 3px;'>&nbsp;<\/span>"; */
/* 	result += "<span style='display: block; background: " + bg_color + "; height: 1px; margin: 0 2px 0 2px;'>&nbsp;<\/span>"; */
/* 	result += "<span style='display: block; background: " + bg_color + "; height: 1px; margin: 0 1px 0 1px;'>&nbsp;<\/span>"; */
/* 	result += "<span style='display: block; background: " + bg_color + "; height: 1px; margin: 0 1px 0 1px;'>&nbsp;<\/span>"; */
/* 	result += "<span  style='display: block; background: " + bg_color + "; text-align: center; padding: 10px; color: " + text_color + ";'>" + in_text + "<\/span>"; */
/* 	result += "<span style='display: block; background: " + bg_color + "; height: 1px; margin: 0 1px 0 1px;'>&nbsp;<\/span>"; */
/* 	result += "<span style='display: block; background: " + bg_color + "; height: 1px; margin: 0 1px 0 1px;'>&nbsp;<\/span>"; */
/* 	result += "<span style='display: block; background: " + bg_color + "; height: 1px; margin: 0 2px 0 2px;'>&nbsp;<\/span>"; */
/* 	result += "<span style='display: block; background: " + bg_color + "; height: 1px; margin: 0 3px 0 3px;'>&nbsp;<\/span>"; */
/* 	result += "<span style='display: block; background: " + bg_color + "; height: 1px; margin: 0 5px 0 5px;'>&nbsp;<\/span>"; */
/* 	result += "<\/div>"; */
/*  */
/* 	return result; */
/* } */