/***** My Functions *****/
function $showMenu(id){
	for (var menu in menus){
		if(menus[menu] != id){
			if(act_height(menus[menu])!=0){
				$blindup(menus[menu]);
			}
		} else {
			$blinddown(id);
		}
	}
}
function $hideMenus(){
	for (var menu in menus){
		if(act_height(menus[menu])!=0){
			$blindup(menus[menu]);
		}
	}
}
function addEvent(obj, evType, fn){
	if (obj.addEventListener){
		obj.addEventListener(evType, fn, false);
		return true;
	} else if (obj.attachEvent){
		var r = obj.attachEvent("on"+evType, fn);
		return r;
	} else {
		return false;
	}
}
function getClientHeight() {
	if (window.innerHeight!=window.undefined) return window.innerHeight;
	if (document.compatMode=='CSS1Compat') return document.documentElement.clientHeight;
	if (document.body) return document.body.clientHeight; 
	return window.undefined; 
}

function getClientWidth() {
	if (window.innerWidth!=window.undefined) return window.innerWidth; 
	if (document.compatMode=='CSS1Compat') return document.documentElement.clientWidth; 
	if (document.body) return document.body.clientWidth; 
	return window.undefined; 
}
function show(id){
	$(id).style.display="block";
}
function hide(id){
	$(id).style.display="none";
}
function popup(url, name, left, top, width1, height1, toolbar, menubar, statusbar, scrollbar, resizable) {
	var screens;
	var popup;
	if (left == 1 && top == 1) {
	  iMyWidth = (window.screen.width/2) - (width1/2);
	  iMyHeight = (window.screen.height/2) - (height1/2);
	  screens = 'left='+iMyWidth+', top='+iMyHeight+', screenX='+iMyWidth+', screenY='+iMyHeight+'';
	}else{
	  screens = 'left='+left+', top='+top+''; 
	}
	toolbar_str = toolbar ? 'yes' : 'no';
	menubar_str = menubar ? 'yes' : 'no';
	statusbar_str = statusbar ? 'yes' : 'no';
	scrollbar_str = scrollbar ? 'yes' : 'no';
	resizable_str = resizable ? 'yes' : 'no';
	popup=window.open(url, name, 'width='+width1+', height='+height1+', '+screens+', toolbar='+toolbar_str+', menubar='+menubar_str+', status='+statusbar_str+', scrollbars='+scrollbar_str+', resizable='+resizable_str);
	popup.focus();
}
function highlightName(id){
	$textColor(id,'#0066FF','#000000',1200);
	$(id).style.fontWeight="bold";
	$(id).style.fontSize="11pt";
}
function hideHighlight(id){
	$(id).style.fontWeight="normal";
	$(id).style.fontSize="10pt";
}
