function showMenu(obj){
 $(obj.id+'Menu').style.display='block';   
}

function hideMenu(obj){
 $(obj.id+'Menu').style.display='none';  
}

function swap(b,c){
    if(c == 0){
        b.src = "images/minus.gif";
    }
    else{
        b.src = "images/plus.gif";
    }
}

function Hide(Cell){
            Cell.style.display = "none"
}

function Show(Cell){
            Cell.style.display = "inline"
}

function Swap(Cell){
            switch (Cell.style.color){
                    case "":
                            {
                                Cell.style.color="white";
                                Cell.style.background="#2a2868";
								Cell.style.cursor="pointer";
                            }
                            break
                    case "white":
                            {
                                Cell.style.color=""
                                Cell.style.background="#fafafa"
                            }
                            break
                    default:
                            Cell.style.display = "none"
                }
}

        

function NavTo(Loc){
            window.location = Loc
}

       

function back(){
            history.back();
}
		
function mail(){
            var loc = location.href;
            var string = "Please visit this link:"
            var ref = "mailto:?subject=Mass Technologies Web Link&body="+string+"\n"+loc;
            window.location = ref;
}

function bookmark(){ 
 if (window.sidebar) { // Mozilla Firefox Bookmark
 		window.sidebar.addPanel(window.document.title, window.location,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( window.location,window.document.title); 
	} 
}
