// clearText
/* ------------------------------------------------------------------------------ */

function clearText(thefield){
	if (thefield.defaultValue==thefield.value){
	thefield.value = "" }
}

function replaceText(thefield){
	if (thefield.value==""){
	thefield.value = thefield.defaultValue}
}

// Início de menu
/* ------------------------------------------------------------------------------ */

function show(id) {
	document.getElementById(id).style.display='block';
}

function hide(id) {
	document.getElementById(id).style.display='none';
}

function subMenu(id){
	if(id=='1'){
		show('subMenuColegio');
		hide('subMenuCursos');
		hide('subMenuCursosExtras');		
		hide('subMenuNoticias');			
		hide('subMenuEventos');
		hide('subMenuServicos');
		hide('subMenuProjetos');
	
	} else if(id=='2'){
		hide('subMenuColegio');
		show('subMenuCursos');
		hide('subMenuCursosExtras');		
		hide('subMenuNoticias');			
		hide('subMenuEventos');
		hide('subMenuServicos');
		hide('subMenuProjetos');
		
	} else if(id=='3'){
		hide('subMenuColegio');
		hide('subMenuCursos');
		show('subMenuCursosExtras');		
		hide('subMenuNoticias');			
		hide('subMenuEventos');
		hide('subMenuServicos');
		hide('subMenuProjetos');
		
	} else if(id=='4'){
		hide('subMenuColegio');
		hide('subMenuCursos');
		hide('subMenuCursosExtras');		
		show('subMenuNoticias');			
		hide('subMenuEventos');
		hide('subMenuServicos');
		hide('subMenuProjetos');
		
	} else if(id=='5'){
		hide('subMenuColegio');
		hide('subMenuCursos');
		hide('subMenuCursosExtras');		
		hide('subMenuNoticias');			
		show('subMenuEventos');
		hide('subMenuServicos');
		hide('subMenuProjetos');
		
	} else if(id=='6'){
		hide('subMenuColegio');
		hide('subMenuCursos');
		hide('subMenuCursosExtras');		
		hide('subMenuNoticias');			
		hide('subMenuEventos');
		show('subMenuServicos');
		hide('subMenuProjetos');
		
	} else if(id=='7'){
		hide('subMenuColegio');
		hide('subMenuCursos');
		hide('subMenuCursosExtras');		
		hide('subMenuNoticias');			
		hide('subMenuEventos');
		hide('subMenuServicos');
		show('subMenuProjetos');
		
	}
}

// Início de jumpGeneral
/* ------------------------------------------------------------------------------ */

function jumpGeneral(targ, selObj, restore) {
    eval(targ + ".location='" + selObj.options[selObj.selectedIndex].value + "'");
    if (restore) {
        selObj.selectedIndex = 0;
    }
}

// Fim de jumpGeneral
