/**
 * @author lorden
 */
 /*
var title1_en = "Hedge Argentina";
var title1_es = "Atrayendo inversores de Medio Oriente";
var title1_pt = "Attracting Middle Eastern Investment";
var txt1_en = "A quick look at the investment environment in Argentina, with a focus on two of the top performing funds operating in region";
var txt1_es = "Los gerentes de contacto en el mercado global actual están deseosos de encontrar nuevas fuentes para potenciales inversores. Hablamos con profesionales de la inversión  de medio oriente  para determinar como las inversiones latinoamericanas pueden volverse más atrayentes para el mundo Islámico.";
var txt1_pt = "As the global market contacts managers are eager to find new sources for potential investors.  We spoke with Middle Eastern investment professionals to determine how Latin American investments could become more appealing to the Islamic world.";
var link1_en = "hedge3.php";
var link1_es = "hedge_spanish.php";
var link1_pt = "hedge_portuguese.php";
var title2_en = "The Definitive Brazilian Private Equity Guide: Part I";
var title2_es = "Caso de estudio de acuerdo";
var title2_pt = "Deal Case Study";
var txt2_en ="With all o fthe media surrounding the opportunities found in Brazil, TriCap Partners have ceated the a condensed guide, &ldquo;Everything You Need to Know About Brazilian Private Equity	&rdquo; Part I";
var txt2_es ="Una mirada al acuerdo entre Provident Group, de Nueva York, y Brazil Iowa Farms,LLC";
var txt2_pt ="Looking at at New York based Provident Group’s private equity deal with Brazil Iowa Farms, LLC";
var link2_en = "private2.php";
var link2_es = "casestudies_spanish.php";
var link2_pt = "casestudies_portuguese.php";
var title3_en = "The Chavez Effect";
var title3_es = "Colombia se calienta";
var title3_pt = "Colombia is Heating Up";
var txt3_en ="How have the actions of Hugo Chavez effected the investment environment within Latin America? Commodities expert Robert Petrucci explains";
var txt3_es ="Aunque los negocios inmobiliarios son un tema bastante delicado en el ambiente actual, damos una mirada a la rápida explosión de tanto oportunidades como inversiones en el campo comercial del negocio inmobiliario colombiano.";
var txt3_pt ="Despite real estate being a touchy subject in the current environment, we look at the rapid explosion of both opportunities and investment in the field of Colombian commercial real estate.";
var link3_en = "commodities2.php";
var link3_es = "real_spanish.php";
var link3_pt = "real_portuguese.php";
var title4_en = "Precious Things in Peru";
var title4_es = "Arte Latinoamericano crece en popularidad";
var title4_pt = "LatAm Art Growing in Popularity";
var txt4_en ="Guest Journalist Anthony LoBaido investigates the diversity of the Peruvian mining industry ";
var txt4_es ="Desde los comienzos de los 90, el interés en el arte Latinoamericano ha estado creciendo sin parar como se ve en las subastas.";
var txt4_pt ="Since the beginning of the 1990’s interest in Latin American art has been sky rocketing, as seen by auctions sales. ";
var link4_en = "gold.php";
var link4_es = "art_spanish.php";
var link4_pt = "art_portuguese.php";
*/
var i =1;
$(document).ready(function(){
	var lang = $('#lang').val();
	$('img.gallery').mouseover(function(){
		n = this.id.substring(3);
		txt = eval("txt"+n+"_"+lang);
		title = eval("title"+n+"_"+lang);
		link = eval("link"+n+"_"+lang);
		
		//$('#gal_big_image').attr('src','assets/'+src);
		if($('#gal_big_image1').css('display')!="none")$('#gal_big_image1').hide();
		if($('#gal_big_image2').css('display')!="none")$('#gal_big_image2').hide();
		if($('#gal_big_image3').css('display')!="none")$('#gal_big_image3').hide();
		if($('#gal_big_image4').css('display')!="none")$('#gal_big_image4').hide();
		$('#gal_big_image'+n).show();
		$('#gal_text_link').attr('href',link);
		$('#gal_img_link').attr('href',link);
		$('#gal_title').html(title);
		$('#gal_text').html(txt);
		i=n;
	});
	$(document).everyTime(5000, function() {
		if(i>4)i=1;
		n = i;
		txt = eval("txt"+n+"_"+lang);
		title = eval("title"+n+"_"+lang);
		link = eval("link"+n+"_"+lang);
		//$('#gal_big_image').attr('src','assets/'+src);
		if($('#gal_big_image1').css('display')!="none")$('#gal_big_image1').hide();
		if($('#gal_big_image2').css('display')!="none")$('#gal_big_image2').hide();
		if($('#gal_big_image3').css('display')!="none")$('#gal_big_image3').hide();
		if($('#gal_big_image4').css('display')!="none")$('#gal_big_image4').hide();

		for(var k = 1; k <=4; k++)
		{
			if(n==k)
				$('#img'+n).css('border','2px solid #BDD83D');
			else
				$('#img'+k).css('border','2px solid');
			
		}
		
		$('#gal_big_image'+n).show();
		$('#gal_text_link').attr('href',link);
		$('#gal_img_link').attr('href',link);
		$('#gal_title').html(title);
		$('#gal_text').html(txt);
		i++
	});
	
});


