
function popUpurl(URL){
	var alto = screen.availHeight;
	var ancho = screen.availWidth;
	
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=1050,height=600,left = 112,top = 84');");
}

function popUpurl1(URL){
	var alto = screen.availHeight;
	var ancho = screen.availWidth;
	
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=1050,height=600,left = 112,top = 84');");
}

var rutaAbsoluta = self.location.href;    
var ciu = /contenidos/;
var mul = /biblioteca_multimedia/;
var img ="";
var _ciu =  (ciu.test(rutaAbsoluta));
var _mul =  (mul.test(rutaAbsoluta));
if (_ciu == true)
{
	img = "../../images/banner_inferior.png";
}
else if (_mul == true)
{
	img = "../images/banner_inferior.png";
}
else
{
		img = "images/banner_inferior.png";
}
var urlF = "http://gasnatural.osinerg.gob.pe/desarrollo_gas_natural/";
var urlM = "http://gasnatural.osinerg.gob.pe/mapa/index.html";
var urlLR = "http://larevistadelgasnatural.osinerg.gob.pe/";
//alert (img);
document.write('<div id="buttom"><img src="' + img + '" width="929" height="35" border="0" usemap="#Map4" title=""/>');
document.write('<map name="Map4" id="Map4">');
document.write('<area shape="rect" coords="1,5,113,32" href="http://www.peru.gob.pe/" title="Portal del Estado Peruano" target="_blank" />');
document.write('<area shape="rect" coords="117,5,232,32" href="http://gasnatural.osinerg.gob.pe/contenidos/ciudadania/ciclo_conferencias.html" title="Foros y Conferencias"  />');
document.write('<area shape="rect" coords="234,5,347,31" ');
document.write('href="http://gasnatural.osinerg.gob.pe/biblioteca_multimedia/multimediavideo.php?cat_id=99&id=99" title="Portal del Conocimiento" />');
document.write('<area shape="rect" coords="350,5,462,31" href="http://gasnatural.osinerg.gob.pe/rgn/action/cons_web/form" title="Registro de Gas Natural" />');
document.write('<area shape="rect" coords="464,2,579,32" href="javascript:popUpurl('+"'"+ urlF +"'"+ ')"  title="Desarrollo del Gas Natural"/>');
document.write('<area shape="rect" coords="581,5,696,31" href="javascript:popUpurl('+"'"+ urlM +"'"+ ')" title="Mapa Interactivo del Gas Natural" />');
document.write('<area shape="rect" coords="698,5,813,31" href="javascript:popUpurl1('+"'"+ urlLR +"'"+ ')" title="La Revista del Gas Natural" />');
document.write('<area shape="rect" coords="815,3,929,32"  ');
document.write('href="http://gasnatural.osinerg.gob.pe/contactenos.html"   title="Cont&aacute;ctenos"/>');

/*document.write ('<area shape="rect" coords="793,4,925,33" href="http://larevistadelgasnatural.osinerg.gob.pe/" title="Gas Natural del Per&uacute; target="_blank" />');*/
document.write('</map></div> ');
document.write('  <div class="footer" id="foot"> <p class="footer">Osinergmin 2010 Todos los derechos reservados - <a href="http://gasnatural.osinerg.gob.pe/">Gas Natural</a></p> </div>');

