function Contacto(persona,idioma,horarios,mail,web,telefono,elemento,id){
	this.persona = persona;
	this.idioma = idioma;
	this.horarios = horarios;
	this.mail = mail;
	mailx = mail;
	this.web = web;
	this.elemento = elemento;
	this.telefono = telefono;
	telefonox = telefono;
	
	this.isIe = function(){
		var gko = navigator.userAgent.toLowerCase();
		if (gko.indexOf('gecko')!=-1){ //si soporta gecko, es Mozilla, Netscape, Safari, etc
			return false;//elemento.setAttribute('onclick','alert("hola");ret urn false');//hacemos el setAttribute normalmente
		}else{ //es I Explroer
			return true;//elmento['onclick']=new Function('alert("hola");return false;');//creamos en setAttribute de esta forma
		}
	}
	
	var div = elemento.parentNode.parentNode;
	this.div = div;
		
		var divContacto = document.createElement('div'); // div
			(this.isIe)?divContacto.className='rContacto':divContacto.setAttribute('class','rContacto');
			
			var tCerrar = document.createTextNode('\n cerrar');
			var aCerrar = document.createElement('a'); // boton cerrar
				aCerrar.setAttribute('href','#');
				(this.isIe)?aCerrar.className='cerrar':aCerrar.setAttribute('class','cerrar');
				aCerrar.obj = this;
				aCerrar.onclick = function(){
					var eliminar = this.obj.div.getElementsByTagName('div')[1];
						this.obj.div.removeChild(eliminar);
						return false;
				}
				aCerrar.appendChild(tCerrar);
			
			var textContacto = document.createTextNode('PERSONA DE CONTACTO');
			var contacto = document.createElement('h4');
				contacto.appendChild(textContacto);
			var pTContacto = document.createTextNode(this.persona);
			var pContacto = document.createElement('p');
				pContacto.appendChild(pTContacto);
			
/*			var textIdiomas = document.createTextNode('IDIOMAS - OFICINA');
			var idiomas = document.createElement('h4');
				idiomas.appendChild(textIdiomas);
			var pTIdiomas = document.createTextNode(this.idioma);
			var pIdiomas = document.createElement('p');
				pIdiomas.appendChild(pTIdiomas);*/
			
			var textHorario = document.createTextNode('HORARIO DE ATENCIÓN AL PÚBLICO');
			var horario = document.createElement('h4');
				horario.appendChild(textHorario);
			var pTHorario = document.createTextNode(this.horarios);
			var pHorario = document.createElement('p');
				pHorario.appendChild(pTHorario);
			
			var textMail = document.createTextNode(this.mail);
			var mail = document.createElement('a'); // boton cerrar
				mail.setAttribute('href','mailto:' + this.mail + '?subject=contacto desde eventoplus&body=');
				(this.isIe)?mail.className='btnLinkFlecha mailAndWeb bC1':mail.setAttribute('class','btnLinkFlecha mailAndWeb');
				mail.obj = this;
				mail.onclick = function(){
					var trackeo3 = document.createElement("img");
						trackeo3.setAttribute('src',"/stats_mail.php?id="+id);
						trackeo3.setAttribute('width','1');
						trackeo3.setAttribute('height','1');
						divContacto.appendChild(trackeo3);
//					this.removeAttribute('href');
//					return false;
				}
				mail.appendChild(textMail);			
				
			var textWeb = document.createTextNode(this.web);
			var web = document.createElement('a');
				(this.isIe)?web.className='btnLinkFlecha mailAndWeb bC1':web.setAttribute('class','btnLinkFlecha mailAndWeb');
				web.setAttribute('target','_Blank');
				web.setAttribute('href','/stats_web.php?id='+id+'&action=http://'+this.web);
				web.appendChild(textWeb);
			
			var webYMail = document.createElement('p');
				webYMail.appendChild(mail);
				webYMail.appendChild(web);	
			
			var textTelefono = document.createTextNode('mostrar telefono');
			var telefono = document.createElement('a'); // boton cerrar
				telefono.setAttribute('href','#');
				(this.isIe)?telefono.className='cerrar telefono':telefono.setAttribute('class','cerrar telefono');
				telefono.obj = this;
				telefono.onclick = function(){
					var trackeo2 = document.createElement("img");
						trackeo2.setAttribute('src',"/stats_telefono.php?id="+id);
						trackeo2.setAttribute('width','1');
						trackeo2.setAttribute('height','1');
						divContacto.appendChild(trackeo2);
					this.innerHTML = telefonox;
					this.removeAttribute('href');
					return false;
				}
				telefono.appendChild(textTelefono);
				
			var trackeo = document.createElement("img");
				trackeo.setAttribute('src',"/stats_contacto.php?id="+id);
				trackeo.setAttribute('width','1');
				trackeo.setAttribute('height','1');
				
				
			var pTEnter = document.createTextNode(' ');
			var pEnter   = document.createElement('p');
				pEnter.setAttribute('style','height:10px;');
				pEnter.appendChild(pTEnter);

			var pTEnter2 = document.createTextNode(' ');
			var pEnter2 = document.createElement('p');
				pEnter2.appendChild(pTEnter2);
				
			divContacto.appendChild(pEnter);
			divContacto.appendChild(pEnter2);
			divContacto.appendChild(aCerrar);
			divContacto.appendChild(contacto);
			divContacto.appendChild(pContacto);
//			divContacto.appendChild(idiomas);
//			divContacto.appendChild(pIdiomas);
			divContacto.appendChild(horario);
			divContacto.appendChild(pHorario);
			divContacto.appendChild(webYMail);
			//divContacto.appendChild(mail);
			//divContacto.appendChild(web);
			divContacto.appendChild(telefono);
			divContacto.appendChild(trackeo);
			
			div.appendChild(divContacto);
			
}




	
