// JavaScript Document
function goto(url)
{
	window.location = url;
}

var hmas = 0;

var lang = 'en';

var textos = new Array('',
					   '<h1 class="subtitulo">Generaci&oacute;n</h1><p class="txtBlue">Nos encontramos en la generaci&oacute;n en la que se est&aacute; cambiando  la manera de producir la energ&iacute;a el&eacute;ctrica.<br /><br />Las decisiones que se est&aacute;n realizando hoy en d&iacute;a determinan  la pr&oacute;xima generaci&oacute;n de generadores el&eacute;ctricos y garantizar&aacute;n sus emisiones  durante su larga vida-&uacute;til.<br /><br /><strong><em>&ldquo;Los sistemas  energ&eacute;ticos est&aacute;n sujetos a una inercia significativa. Es importante evitar  atascarse en tecnolog&iacute;as contaminantes de larga vida, e invertir cuanto antes en  alternativas bajas en carbono&rdquo;.<br /><br />Lord Stern</em></strong></p>',
					   '<h1 class="subtitulo">Eficiencia Energ&eacute;tica</h1><p class="txtBlue">No utilizamos la energ&iacute;a de forma eficiente: Ni en la  industria, ni en casa, ni en el transporte.<br /><br />Mejorar la eficiencia energ&eacute;tica es el primer paso para  comenzar la transici&oacute;n hacia una econom&iacute;a baja en carbono y muchas veces trae  beneficios.<br /><br />&ldquo;<strong><em>Utilizando las  tecnolog&iacute;as existentes, podemos disminuir el crecimiento de la demanda global  de energ&iacute;a en m&aacute;s de la mitad durante los pr&oacute;ximos 15 a&ntilde;os&hellip; Y, lejos de ser  costosas, este tipo de iniciativas se financiar&iacute;an por ellas mismas."<br /><br />Diana Farrell, McKinsey.</em></strong></p>',
					   '<h1 class="subtitulo">Pol&iacute;tica Clim&aacute;tica</h1><p class="txtBlue">Los encargados de formular pol&iacute;ticas contra el cambio  clim&aacute;tico son los que est&aacute;n creando la senda actual del clima.<br /><br />El &eacute;xito en la implementaci&oacute;n de las pol&iacute;ticas clim&aacute;ticas  decidir&aacute; los ganadores y los perdedores tanto a nivel pol&iacute;tico nacional como  empresarial.<br /><br /><strong>&ldquo;<em>No es la especie m&aacute;s  fuerte ni la m&aacute;s inteligente&nbsp;la que&nbsp;sobrevive, sino&nbsp;aquella capaz de adaptarse&nbsp;mejor al&nbsp;cambio."<br /><br />Charles Darwin.</em></strong></p>',
					   '<h1 class="subtitulo">Tecnolog&iacute;a Limpia</h1><p class="txtBlue">No deber&iacute;amos ni desestimar ni sobrevalorar el potencial de la  Tecnolog&iacute;a Limpia.<br /><br />La inversi&oacute;n en tecnolog&iacute;a limpia, y la gente involucrada &eacute;ste  sector, continuar&aacute; siendo entusiasta, din&aacute;mica y significativa por muchos a&ntilde;os.<br /><br />&ldquo;<strong><em>Metodolog&iacute;as  integradoras resolver&aacute;n problemas que hasta el momento parec&iacute;an irresolubles&hellip; Ciencia  y tecnolog&iacute;a, empujados por el combustible de la energ&iacute;a empresarial, son los  mayores multiplicadores de recursos que tenemos para resolver muchos de  nuestros problemas sociales."<br /><br />Vinod Khosla.</em></strong></p>'
					   
					   );


var textos_en = new Array('',
					   '<h1 class="subtitulo">Transforming Generation</h1><p class="txtBlue">We have one generation in which to transform the way in which energy is produced.<br /><br />Decisions being made today which determine the next generation of electricity generators will lock-in those assets&acute; expected lifetimes of emissions.<br /><br /><strong><em>"Energy systems are subject to very significant inertia. It is important to avoid getting `locked into&acute; long-lived high carbon technologies, and to invest early in low carbon alternatives."<br /><br />Lord Stern</em></strong></p>',
					   '<h1 class="subtitulo">Energy Efficiency</h1><p class="txtBlue">We do not use energy efficiently, neither in industry, at home or in transport.<br /><br />Improving energy efficiency is the ‘low hanging fruit’ at the start of the transition to a low carbon world and often comes with improvements to the bottom line.<br /><br /><strong><em>"Using existing technologies, we could cut global energy-demand growth by more than half over the next 15 years...  And, far from being costly, these initiatives would pay for themselves."<br /><br />Diana Farrell, McKinsey.</em></strong></p>',
					   '<h1 class="subtitulo">Climate Policy</h1><p class="txtBlue">Policymakers are setting our climate pathway now.<br /><br />Success in climate policy implementation will sort the winners from the losers both at a corporate and a national level.<br /><br /><strong><em>"It is not the strongest of the species that survives, nor the most intelligent that survives. It is the one that is the most adaptable to change."<br /><br />Charles Darwin.</em></strong></p>',
					   '<h1 class="subtitulo">Clean Technology</h1><p class="txtBlue">We should not oversell nor underestimate the potential for Clean Technology.<br /><br />Clean technology investing, and the people involved in the cleantech world, will continue to be vibrant, dynamic and significant for many years.<br /><br /><strong><em>"Innovative bottom up methods will solve problems that now seem intractable… Science and technology, powered by the fuel of entrepreneurial energy, are the largest multipliers of resources we have to solve our many social problems."<br /><br />Vinod Khosla.</em></strong></p>'
					   
					   );
$(document).ready(function() {
	equalHeight($(".column"),-49);	
})


function equalHeight(group,mas) {
	tallest = 0;
	group.each(function() {
				thisHeight = $(this).height();
				if(thisHeight > tallest) {
					tallest = thisHeight;
				}
				});
	//group.height(tallest);
	group.css('min-height',tallest+mas);
}

function equalHeightDer()
{	
	thisHeight = $("#colizq").height();
	if(thisHeight < 510)
	thisHeight = 510;
	//$("#colder").height(thisHeight+49);
	$("#colder").height(thisHeight+49);
}
function equalHeightDer1(type)
{	
	thisHeight = $("#"+type).height()+258;
	derHeight = $("#colder1").height();
	if(thisHeight < derHeight) return false;
	$("#colizq1").css('min-height',thisHeight);
	$("#colder1").height(thisHeight);
	$("#colder1").css('min-height',thisHeight);
	//alert(thisHeight);
}
function flashText(number)
{
	if(lang == 'en')
	{
		txt = textos_en[number];
	}else
	{
		txt = textos[number];
	}
	document.getElementById('contDnm').innerHTML = txt;
	equalHeightDer();

}
PositionX = 100;
PositionY = 100;
defaultWidth = 500;
defaultHeight = 500;
var AutoClose = true;
if (parseInt(navigator.appVersion.charAt(0))>=4){
	var isNN=(navigator.appName=="Netscape")?1:0;
	var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;
}
var optNN='statusbar=no,directories=no,location=no,toolbars=no, menubar=no,scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;

function popImage(imageURL,imageTitle){
	if (isNN){imgWin=window.open('about:blank','',optNN);}
	if (isIE){imgWin=window.open('about:blank','',optIE);}
	with (imgWin.document){
		writeln('<html><head><title>Cargando ...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
		writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
		writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
		writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
		writeln('width=100-(document.body.clientWidth-document.images[0].width);');
		writeln('height=100-(document.body.clientHeight-document.images[0].height);');
		writeln('window.resizeTo(width,height);}');writeln('if (isNN){');
		writeln('window.innerWidth=document.images["imagenes"].width;');writeln('window.innerHeight=document.images["imagenes"].height;}}');
		writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
		if (!AutoClose) 
			writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
		else 
			writeln('</head><body bgcolor=ffffff scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
		writeln('<img name="imagenes" src='+imageURL+' style="display:block"></body></html>');
		close();
	}
}

function textSlide()
{
	var info = '';
	var mas = 0;
	var e = $('.cont');
	var t = '';
	var count = new Array();
	var j = 0;
	var k = 1;
	var contTallest = 0;
	var tallest = 0;
	e.each(function(c){
					j = (j%3);
					var ne = $(this);
					var i = $(this).children("p").children("a").children("img");
					i.mouseover(function (){
								//ne.children("div.definition").attr('style','display:block;');
								var txt = ne.children("div.definition").html();
								//alert(txt);
								$('#textDef').html('<p>'+txt+'</p>');
								equalHeight($(".column"),-33);
										  })
					i.mouseout(function (){
								ne.children("div.definition").attr('style','display:none;');
								var mn = (ne.children("div.definition").height() * -1) - 28;
								//$('#textDef').html('&nbsp;');
								//equalHeight($(".column"),mn);
										  })
					divHeight = ne.children("div.definition").height();
					if(tallest < divHeight)tallest = divHeight;
					i.attr('style','border:1px solid #EEE;');
					
					contHeight = ne.height();
					if(contTallest < contHeight) contTallest = contHeight;
					
					info += ',' + j;
					
					if(j == 2 || e.length == k)
					{
						count.push(contTallest);
						contTallest = 0;
					}
					k++;
					j++;					
					});
	var j = 0;
	var k = 0;
	e.each(function(c){
					j = (j%3);
					var ne = $(this);
					contHeight = ne.height();
					var newHeight = count[k];
					var paddingTop = count[k] - contHeight;
					//ne.height(newHeight);
					ne.css('padding-top',paddingTop);
					//alert(paddingTop);
					j++;
					if(j==3) k++;
					});
}
var cont = new Array('books','whitepapers','links');

function changeContent(type)
{
	$('#textDef').html('&nbsp;');
	for(var i=0; i < cont.length; i++)
	{
		if(type == cont[i])
		{
			document.getElementById(cont[i]).style.display = 'block';
		}else{
			document.getElementById(cont[i]).style.display = 'none';
		}
	}
	equalHeight($(".column"),-33);
}

function peoplePopUp(opt)
{
	window.open('index.php?id=' + opt,'','width=550,height=600,scrollbars=yes');
}