﻿function ponerIDconAlgoEstatico(id_contenedor, strng ){
	if( document.getElementById(id_contenedor) ){ document.getElementById(id_contenedor).innerHTML = strng; }
}
function forzeInclude(path){
	var j = document.createElement("script");
	j.type = "text/javascript"; j.src = path;
	document.body.appendChild(j);
	reMenu( path );
}
function reMenu( seccion ){
	var str = '';
	str += '<h1 style="font-size: 33px; margin: 0; font-variant: small-caps;">';
	if( seccion != "index.js" ){
		str += '<a href="http://www.enwillyado.com/" onclick="forzeInclude(\'index.js\');return false;">';
	}
		str += '<span style="white-space: pre;"><b>Guillermo</b> &Aacute;lvarez</span>';
	if( seccion != "index.js" ){
		str += '</a>';
	}
	str += '</h1>';
	str += '<h2 style="font-size: 12px; margin: 0; white-space: pre;">Desarrollador de soluciones inform&aacute;ticas a medida</h2>';
	str += '<ul style="line-height: 24px; margin: 16px 0 0; list-style: circle outside none;">';
		// CURRICULUM VITAE
		str += '<li>';
	if( seccion != "cv.js" ){
		str += '<a href="http://www.enwillyado.com/CV" onclick="forzeInclude(\'cv.js\');return false;">';
	}else{
		str += '<span style="color:#FEFDDB;">';
	}
		str += 'Mi Curr&iacute;culum Vitae';
	if( seccion != "cv.js" ){
		str += '</a>';
	}else{
		str += '</span>';
	}
		str += '</li>';
		// AUTOBIOGRAFIA
		str += '<li>';
	if( seccion != "bio.js" ){
		str += '<a href="http://www.enwillyado.com/bio" onclick="forzeInclude(\'bio.js\');return false;">';
	}else{
		str += '<span style="color:#DEDEDE;">';
	}
		str += 'Mi Autobiograf&iacute;a';
	if( seccion != "bio.js" ){
		str += '</a>';
	}else{
		str += '</span>';
	}
		str += '</li>';
		//CONTACTAR
		str += '<li>';
	if( seccion != "contactar.js" ){
		str += '<a href="http://www.enwillyado.com/contactar" onclick="forzeInclude(\'contactar.js\');return false;">';
	}else{
		str += '<span style="color:#D92B2B;">';
	}
		str += 'Contacta conmigo';
	if( seccion != "contactar.js" ){
		str += '</a>';
	}else{
		str += '</span>';
	}
		str += '</li>';
		//REPOSITORIO
		str += '<li><a href="http://www.enwillyado.com/subir/">Repositorio p&uacute;blico</a></li>';
		//TABLON
		str += '<li><a href="http://www.enwillyado.com/tablon/">Mi tabl&oacute;n de comentarios</a></li>';
		//ESTADOS
		str += '<li><a href="http://www.enwillyado.com/estados">Mis estados</a></li>';
		//MEDIOS
		str += '<li>';
	if( seccion != "medios.js" ){
		str += '<a href="http://www.enwillyado.com/medios" onclick="forzeInclude(\'medios.js\');return false;">';
	}else{
		str += '<span style="color:#DEDEDE;">';
	}
		str += 'Mis medios';
	if( seccion != "medios.js" ){
		str += '</a>';
	}
		 str += ' <span style="font-size:12px;color:#888888;">(fotograf&iacute;as, v&iacute;deos...)</span>';
	 if( seccion == "medios.js" ){
		str += '</span>';
	}
		str += '</li>';
	str += '</ul>';
	str += '<hr/>';
	str += '<div>';
		str += '<span>Mi c&oacute;digo QR: </span>';
		str += '<span style="font-size:12px;color:#888888;">(pasa tu m&oacute;vil)</span>';
		str += '<div style="margin:10px;">';
			str += '<img width="100%" alt="QR" src="http://www.enwillyado.com/QR.PNG">';
		str += '</div>';
	str += '</div>';
	ponerIDconAlgoEstatico( "menu", str );
}

