/* 
++++++++++++++++++++++++++++++++++++++++++++ CSS BROWSER ++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/

var is_NS = navigator.appName=="Netscape"; 

if (is_NS) { 
	document.write('<link type="text/css" rel="stylesheet" href="css/style_safari_google.css" />'); 
} 


/* 
++++++++++++++++++++++++++++++++++++++++++++ CLEAR FORMS ++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
function init(){
	
	var inp = document.getElementsByTagName('input');
	for(var i = 0; i < inp.length; i++) {
		if(inp[i].type == 'text') {
			inp[i].setAttribute('rel',inp[i].defaultValue)
			inp[i].onfocus = function() {
				if(this.value == this.getAttribute('rel')) {
					this.value = '';
				} else {
					return false;
				}
			}
			inp[i].onblur = function() {
				if(this.value == '') {
					this.value = this.getAttribute('rel');
				} else {
					return false;
				}
			}
			inp[i].ondblclick = function() {
				this.value = this.getAttribute('rel')
			}
		}
	}
}
if(document.childNodes) {
	window.onload = init
}

/* 
+++++++++++++++++++++++++++++++++++++++++++ PG CONTACTOS ++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
function CONTACTOmapa(ID) {
	document.getElementById(ID+'_localizacao_btn').style.display		= 'none';
	/*document.getElementById(ID+'_OLmapa').style.display				= 'block';
	document.getElementById(ID+'_mapParque').style.display				= 'block';*/
	document.getElementById(ID+'_form_btn').style.display				= 'inline';
	/*document.getElementById(ID+'_form').style.display					= 'none';
	document.getElementById(ID+'_enviar').style.display					= 'none';*/
}
function CONTACTOformulario(ID) {
	document.getElementById(ID+'_localizacao_btn').style.display		= 'inline';
	/*document.getElementById(ID+'_OLmapa').style.display					= 'none';
	document.getElementById(ID+'_mapParque').style.display				= 'none';
	*/document.getElementById(ID+'_form_btn').style.display				= 'none';
	/*document.getElementById(ID+'_form').style.display					= 'block';
	document.getElementById(ID+'_enviar').style.display					= 'block';*/
}


/*função teste



function removeInicio() {
	document.getElementById('formBt').style.visibility = "hidden"; 
	alert('teste');
}

window.onload=function() {
removeInicio();
}

function variaBt() {
  if (document.getElementById('mapaBt').style.visibility != "hidden")
{
  document.getElementById('formBt').style.visibility = "visible";
    document.getElementById('mapaBt').style.visibility = "hidden";
  }
  else {
   document.getElementById('mapaBt').style.visibility = "visible";
    document.getElementById('formBt').style.visibility = "hidden";
  }
}*/

/* 
++++++++++++++++++++++++++++++++++++++++++++ PG CLIENTES ++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
function clientes(ID,WHAT) {
	if (WHAT == 'OVER') {
		changeStyle = '_on'	
	}
	else if (WHAT == 'OUT') {
		changeStyle = '_off'	
	}
	document.getElementById(ID).src		='imagens/clientes_logos/'+ID+changeStyle+'.gif';
}

/* 
+++++++++++++++++++++++++++++++++++++++++++ MENU PROJECTOS ++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/

/*function grabclick(ITEMID) {
	 document.getElementById('click').value = ITEMID;
}

function activatemenu(ITEMID) {
	clickGrabber = document.getElementById('click').value

	if (clickGrabber == 'none'){ 
		document.getElementById(ITEMID).className = "";
		alert (clickGrabber + ' grab  +    ' + ITEMID  )
	}
	else if (clickGrabber == ITEMID) {
		alert ( ' ola  '  )
		document.getElementById('click').value = ITEMID;
		document.getElementById(ITEMID).style.background = "#000";
	}
	else {
		alert ( ' 123  '  )
		document.getElementById(clickGrabber).className = "";
		document.getElementById(ITEMID).className = "project_select";
	}
	
}*/

	


