/*<![CDATA[<img src="http://i.t-op.com/est50.gif" border=0>]]>*/
function abrirDoc(fondo)
{
   window.open("fichero.aspx?fd=" + fondo,null,"width=950px,height=650px,scrollbars=yes,resizable=yes"); 
}


function traductorMenuSup(sesion, lan)
{
    var cadena = "";
    switch (sesion)
    {
        case "lblGPIGestoresContent":
        case "lblGPIHerramientasContent":
        case "lblGPIConstruccionContent":
        case "lblGPIRiesgoContent":
        case "lblServiciosPContent":
        case "lblGPIEstrategiaContent":
            srcImgSelMenSup('imgServiciosPI');
            break;
        case "lblServiciosIContent":
             srcImgSelMenSup('imgServiciosI');
            break;
        case "lblServiciosNContent":
            srcImgSelMenSup('imgServiciosN');
            break;     
        case "lblProductosIContent":
             srcImgSelMenSup('imgProductosI');
            break;
        case "lblVIFContent":
            srcImgSelMenSup('imgProductosG');
            break;
        case "lblQuienesCContent":
            srcImgSelMenSup('imgQuienesC');
            break;
        case "lblQuienesEContent":
            srcImgSelMenSup('imgQuienesE');
            break;
        case "lblQuienesHContent":
            srcImgSelMenSup('imgQuienesH');
            break;
        case "lblQuienesFContent":
            srcImgSelMenSup('imgQuienesF');
            break;
        case "lblQuienesVContent":
            srcImgSelMenSup('imgQuienesV');
            break;
     }
}

function srcImgSelMenSup(c)
{
    /*Esta función presupone que el src del elemento resaltado, lleva un 2 en el id para diferenciarse*/
    var elemento = eval("document.getElementById('" + c + "')");
   // alert(elemento.src);
    var sr = elemento.src;
    sr = sr.replace(".gif","2.gif");
    elemento.src = sr;
}


function resaltarTexto(pelement,pcolor,pcursor,pweight)
{
	pelement.style.color=pcolor;
	pelement.style.cursor='hand';
	if (pweight=="")
	{pweight='normal';}
	pelement.style.fontweight=pweight;
	
	return true;
}

function irA(ppag)
{
    document.location.href=ppag;
    return true;
}

function irALocalizador()
{
	window.open("http://maps.google.com/maps?f=q&source=s_q&hl=es&geocode=&q=Valira+Asset+Management,Moreto+5,+Madrid,+Espa%C3%B1a&sll=37.0625,-95.677068&sspn=40.86791,69.873047&ie=UTF8&ll=40.415489,-3.690376&spn=0.019245,0.034118&t=h&z=15&iwloc=A","localizador","width=900,height=700,menubar=no,location=no,toolbar=no,scrollbars=yes,resizable=yes");
}

function abrirCertificadoCalidad()
{
	
	var pathlocal = window.location.toString();
	
	var pos = pathlocal.split("/");
	var fold = pos[pos.length -2].toString();
	var fichero="./files/Certificado_FS_547810_es.swf";
	
	if (fold!="esp")
	{
		fichero="./files/Certificado_FS_547810_en.swf";
	}
	
	window.open(fichero,"certificado","width=900,height=700,menubar=no,location=no,toolbar=no,scrollbars=yes,resizable=yes");	
}

function srcImagen(pimg,psrc)
{
    document.getElementById(pimg).src=psrc;
}

function cambia(pimg)
{
    if (document.getElementById(pimg).className=="enlace")
    {
        document.getElementById(pimg).style.color="red";
    }
}

function colorCell(c,color)
{
	c.style.backgroundColor=color;
	c.style.cursor='hand';
}

function RunFlashContacto()
{
 document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="539,7" HEIGHT="230,2" id="contacto" ALIGN="">');
 document.write('<PARAM NAME=movie VALUE="images/contacto.swf">');
 document.write('<PARAM NAME=quality VALUE=high>');
 document.write('<PARAM NAME=bgcolor VALUE=#FFFFFF>');
 document.write('<EMBED src="images/contacto.swf" quality=high bgcolor=#FFFFFF  WIDTH="539,7" HEIGHT="230,2" NAME="contacto" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
document.write('</OBJECT>');
}

function RenderHeader()
{

var txt = "<img src='./images/Header.jpg' border='0' id='imgHeader' name='imgHeader' usemap='#m_header'><map name='m_header' id='m_header'>";
txt = txt  + "<area shape='rect' coords='917,6,967,22' href='javascript:localPage(" + '"es-ES"' + ")'/>";
txt = txt  + "<area shape='rect' coords='858,6,911,23' href='javascript:localPage(" + '"en-GB"' + ")'/>";
txt = txt  + "</map>";

document.write(txt);
}

function RenderHeaderPortada()
{

var txt = "<img src='../images/HeaderPortada.jpg' border='0' class='noopaco' id='imgHeader' name='imgHeader' usemap='#m_header'><map name='m_header' id='m_header'>";
txt = txt  + "<area shape='rect' coords='917,6,967,22' href='javascript:localPage(" + '"ESP"' + ")'/>";
txt = txt  + "<area shape='rect' coords='858,6,911,23' href='javascript:localPage(" + '"ENG"' + ")'/>";
txt = txt  + "</map>";

document.write(txt);
}


function RenderHeaderPrueba()
{

var txt = "<img src='../images/HeaderPPP.jpg' border='0' id='imgHeader' name='imgHeader' usemap='#m_header'><map name='m_header' id='m_header'>";
txt = txt  + "<area shape='rect' coords='917,6,967,22' href='javascript:localPage(" + '"ESP"' + ")'/>";
txt = txt  + "<area shape='rect' coords='858,6,911,23' href='javascript:localPage(" + '"ENG"' + ")'/>";
txt = txt  + "</map>";

//alert(txt);
document.write(txt);

}

function RenderFooterPrueba()
{
	var txt = "<img src='../images/FooterPPP.jpg' id='imgFooter' border='0' usemap='#m_footer' />";
	txt = txt +  "<map name='m_footer' id='m_footer'>";
	txt = txt +  "<area shape='rect' coords='922,86,980,103' href='Faqs.aspx' />";
	txt = txt +  "<area shape='rect' coords='835,86,908,104' href='Mapa.aspx' />";
	txt = txt +  "<area shape='rect' coords='711,87,815,105' href='Politica.aspx'/>";
	txt = txt +  "</map>";
	
	document.write(txt);
}

function RenderFooterPortada()
{
	var txt = "<img src='./images/FooterPortada.jpg' class='noopaco' id='imgFooter' name='imgFooter' border='0' usemap='#m_footer' />";
	txt = txt +  "<map name='m_footer' id='m_footer'>";
	txt = txt +  "<area shape='rect' coords='929,40,980,54' href='Faqs.aspx'/>";
	txt = txt +  "<area shape='rect' coords='842,40,914,55' href='Mapa.aspx'/>";
	txt = txt +  "<area shape='rect' coords='718,40,822,55' href='Politica.aspx'/>";
	txt = txt +  "</map>";
	
	document.write(txt);
}



/*Mapa de footer*/
/*function RenderFooter()
{
    document.write("<table align='right' class='font_v11grnt' border='0'>");
	document.write("<tr valign='bottom'>");
	document.write("<td width='100px' valign='bottom'  align='right'><img src='../images/cuadros.gif' border='0'> <a href='Politica.aspx' target='_self' class='font_v11vebt'>Aviso legal</a></td>");
	document.write("<td width='100px' valign='bottom' align='right'><img src='../images/cuadros.gif' border='0'> <a href='Mapa.aspx' target='_self' class='font_v11vebt'>Mapa</a></td>");
	document.write("<td width='100px' valign='bottom'  align='right'><img src='../images/cuadros.gif' border='0'> <a href='Faqs.aspx' target='_self' class='font_v11vebt'>Faqs</a></td>");
	document.write("</tr>");
	document.write("</table>");
}*/

function RenderFooter()
{
	var txt = "<img src='./images/Footer.jpg' id='imgFooter' border='0' usemap='#m_footer' />";
	txt = txt +  "<map name='m_footer' id='m_footer'>";
	txt = txt +  "<area shape='rect' coords='929,40,980,54' href='Faqs.aspx'/>";
	txt = txt +  "<area shape='rect' coords='842,40,914,55' href='Mapa.aspx'/>";
	txt = txt +  "<area shape='rect' coords='718,40,822,55' href='Politica.aspx'/>";
	txt = txt +  "</map>";
	
	document.write(txt);
}




function ItemMenu(pid,psrcA,psrcB,pclk,pover,pout)
{
	this.Id = pid;
	this.srcA = psrcA;
	this.srcB = psrcB;
	this.clk = pclk;
	this.over = pover;
	this.out = pout;
}

var MenuPrin = new Array();

MenuPrin[0]=new ItemMenu("MenuInicio","./images/MenInicio.gif","./images/MenInicio2.gif","javascript:irA('Default.aspx');","this.src='./images/MenInicio2.gif'","this.src='./images/MenInicio.gif'");
MenuPrin[1]=new ItemMenu("MenuQuienes","./images/MenQuienes.gif","./images/MenQuienes2.gif","javascript:irA('Nosotros.aspx');","this.src='./images/MenQuienes2.gif'","this.src='./images/MenQuienes.gif'");
MenuPrin[2]=new ItemMenu("MenuProductos","./images/MenProductos.gif","./images/MenProductos2.gif","javascript:irA('Productos.aspx');","this.src='./images/MenProductos2.gif'","this.src='./images/MenProductos.gif'");
MenuPrin[3]=new ItemMenu("MenuServicios","./images/MenServicios.gif","./images/MenServicios2.gif","javascript:irA('Servicios.aspx');","this.src='./images/MenServicios2.gif'","this.src='./images/MenServicios.gif'");
MenuPrin[4]=new ItemMenu("MenuNoticias","./images/MenNoticias.gif","./images/MenNoticias2.gif","javascript:irA('Noticias.aspx');","this.src='./images/MenNoticias2.gif'","this.src='./images/MenNoticias.gif'");
MenuPrin[5]=new ItemMenu("MenuContacto","./images/MenContacto.gif","./images/MenContacto2.gif","javascript:irA('Contacto.aspx');","this.src='./images/MenContacto2.gif'","this.src='./images/MenContacto.gif'");
//MenuPrin[6]=new ItemMenu("MenuImagen",RenderFotoMenu('2'),"","","");
//MenuPrin[7]=new ItemMenu("MenuSello","../images/sello_bsi.gif","","javascript:abrirCertificadoCalidad();","");

function RenderMenu(actual)
{
	var txt="<table cellpadding='1' cellspacing='1' border='0'>";
	
	for(i=0;i<MenuPrin.length;i++)
	{
		if(actual==i)
		{
			txt = txt + "<tr><td><img style='cursor:hand' Id=\"" + MenuPrin[i].Id + "\" onClick=\"" + MenuPrin[i].clk  + "\" src=" + MenuPrin[i].srcB + "  border='0'></td></tr>";
		}
		else
		{
			txt = txt + "<tr><td><img style='cursor:hand' Id=\"" + MenuPrin[i].Id + "\" onClick=\"" + MenuPrin[i].clk  + "\" src=" + MenuPrin[i].srcA + " onmouseover=\"" + MenuPrin[i].over + "\" onmouseout=\"" + MenuPrin[i].out + "\" border='0'></td></tr>";
		}
	}
	
	if (actual>0)
	{
		txt = txt + "<tr><td><img src=" + RenderFotoMenu(actual) + "  border='0'></td></tr>";
		txt = txt + "<tr><td height='40px'></td></tr>";
		txt = txt + "<tr><td><img  style='cursor:hand' onClick='javascript:abrirCertificadoCalidad();' src='./images/sello_bsi.gif'  border='0'></td></tr>";
	}
	txt = txt + "</table>";
	
	document.write(txt);
}





function RenderMenuNosotros()
{
	var txt = "<map name='m_barra' id='m_barra'>";
	txt = txt + "<area shape='rect' coords='529,0,617,18' href='Ventajas.aspx' target='_self' />";
	txt = txt + "<area shape='rect' coords='427,0,515,18' href='Filosofia.aspx' target='_self' />";
	txt = txt + "<area shape='rect' coords='325,0,412,18' href='Historia.aspx' target='_self' />";
	txt = txt + "<area shape='rect' coords='222,0,313,18' href='Equipo.aspx' target='_self' />";
	txt = txt + "<area shape='rect' coords='121,0,213,18' href='Nosotros.aspx' target='_self' /></map>";

	document.write(txt);
}

/*function RenderMenuProductos()
{
	var txt = "<map name='m_barra' id='m_barra'>";
	txt = txt + "<area shape='rect' coords='514,0,620,18' href='VIF.aspx' target='_self' />";
	txt = txt + "<area shape='rect' coords='397,0,504,18' href='#' target='_self' />";
	txt = txt + "<area shape='rect' coords='281,0,388,18' href='Productos.aspx' target='_self' /></map>";

	document.write(txt);
}*/



function RenderMenuGRiesgo()
{
	var txt = "<map name='m_barra' id='m_barra'>";
	txt = txt + "<area shape='rect' coords='473,0,620,18' href='GPIGRiesgo.aspx' alt='' />";
	txt = txt + "<area shape='rect' coords='319,0,461,18' href='GGRQualitative.aspx' alt='' />";
	txt = txt + "<area shape='rect' coords='160,0,306,18' href='GGRQuantitative.aspx' alt='' /></map>";

	document.write(txt);
}

/*function RenderMenuServicios()
{
	var txt = "<map name='m_barra' id='m_barra'>";
	txt = txt + "<area shape='rect' coords='473,0,620,18' href='PInversion.aspx' alt='' />";
	txt = txt + "<area shape='rect' coords='319,0,461,18' href='NuestraEstrategia.aspx' alt='' />";
	txt = txt + "<area shape='rect' coords='160,0,306,18' href='Servicios.aspx' alt='' /></map>";

	document.write(txt);
}*/


function RenderMenuServicios(caracter)
{
	var txt = "<div id='FWTableContainer'>";
	txt = txt + "<img name='n00000001' src='./images/MenuServicios" + caracter + ".gif' width='625' height='18' border='0' id='n00000001' usemap='#m_00000001' alt='' /><map name='m_00000001' id='m_00000001'>";
	txt = txt + "<area shape='poly' coords='469,0,625,0,625,18,469,18,469,0' href='PInversion.aspx' alt='' onmouseout='MM_menuStartTimeout(600);' onmouseover='MM_menuShowMenu(\"ContainerMenuDesp\", \"MenuDesp\",469,18,\"n00000001\");' />";
	txt = txt + "<area shape='rect' coords='319,0,461,18' href='NuestraEstrategia.aspx' alt='' />";
	txt = txt + "<area shape='rect' coords='160,0,306,18' href='Servicios.aspx' alt='' />";
	txt = txt + "</map>";
	txt = txt + "<div id='ContainerMenuDesp'>";
	txt = txt + "<div id='MenuDesp' onmouseout='MM_menuStartTimeout(600);' onmouseover='MM_menuResetTimeout();'>";
	txt = txt + "<a href='PInversion.aspx' id='MenuDesp_Item_0' class='MMMIFVStyleMMMenu0813131958_0' onmouseover='MM_menuOverMenuItem(\"MenuDesp\");'>Introducci&oacute;n</a>";
	txt = txt + "<a href='GPIEstrategia.aspx' id='MenuDesp_Item_1' class='celdaMenuDesp' onmouseover='MM_menuOverMenuItem(\"MenuDesp\");'>Selecci&oacute;n&nbsp;de&nbsp;estrategias</a>";
	txt = txt + "<a href='GPIGestores.aspx' id='MenuDesp_Item_2' class='celdaMenuDesp' onmouseover='MM_menuOverMenuItem(\"MenuDesp\");'>Selecci&oacute;n&nbsp;de&nbsp;gestores</a>";
	txt = txt + "<a href='GPIConstruccion.aspx' id='MenuDesp_Item_3' class='celdaMenuDesp' onmouseover='MM_menuOverMenuItem(\"MenuDesp\");'>Construcci&oacute;n&nbsp;de&nbsp;la&nbsp;cartera</a>";
	txt = txt + "<a href='GPIGRiesgo.aspx' id='MenuDesp_Item_4' class='celdaMenuDesp' onmouseover='MM_menuOverMenuItem(\"MenuDesp\");'>Gesti&oacute;n&nbsp;del&nbsp;riesgo</a>";
	txt = txt + "<a href='GPIHerramientas.aspx' id='MenuDesp_Item_5' class='celdaMenuDesp' onmouseover='MM_menuOverMenuItem(\"MenuDesp\");'>Herramientas</a></div>";
	txt = txt + "</div></div>";

	document.write(txt);
	}
	
	
function RenderMenuServiciosENG(caracter)
{
	var txt = "<div id='FWTableContainer'>";
	txt = txt + "<img name='n00000001' src='./images/MenuServicios" + caracter + ".gif' width='625' height='18' border='0' id='n00000001' usemap='#m_00000001' alt='' /><map name='m_00000001' id='m_00000001'>";
	txt = txt + "<area shape='poly' coords='469,0,625,0,625,18,469,18,469,0' href='PInversion.aspx' alt='' onmouseout='MM_menuStartTimeout(600);'  onmouseover='MM_menuShowMenu(\"ContainerMenuDesp\", \"MenuDesp\",469,18,\"n00000001\");' />";
	txt = txt + "<area shape='rect' coords='319,0,461,18' href='NuestraEstrategia.aspx' alt='' />";
	txt = txt + "<area shape='rect' coords='160,0,306,18' href='Servicios.aspx' alt='' />";
	txt = txt + "</map>";
	txt = txt + "<div id='ContainerMenuDesp'>";
	txt = txt + "<div id='MenuDesp' onmouseout='MM_menuStartTimeout(600);' onmouseover='MM_menuResetTimeout();'>";
	txt = txt + "<a href='PInversion.aspx' id='MenuDesp_Item_0' class='MMMIFVStyleMMMenu0813131958_0' onmouseover='MM_menuOverMenuItem(\"MenuDesp\");'>Overview</a>";
	txt = txt + "<a href='GPIEstrategia.aspx' id='MenuDesp_Item_1' class='celdaMenuDesp' onmouseover='MM_menuOverMenuItem(\"MenuDesp\");'>Strategy selection</a>";
	txt = txt + "<a href='GPIGestores.aspx' id='MenuDesp_Item_2' class='celdaMenuDesp' onmouseover='MM_menuOverMenuItem(\"MenuDesp\");'>Selecting Managers</a>";
	txt = txt + "<a href='GPIConstruccion.aspx' id='MenuDesp_Item_3' class='celdaMenuDesp' onmouseover='MM_menuOverMenuItem(\"MenuDesp\");'>Portfolio construction</a>";
	txt = txt + "<a href='GPIGRiesgo.aspx' id='MenuDesp_Item_4' class='celdaMenuDesp' onmouseover='MM_menuOverMenuItem(\"MenuDesp\");'>Risk management</a>";
	txt = txt + "<a href='GPIHerramientas.aspx' id='MenuDesp_Item_5' class='celdaMenuDesp' onmouseover='MM_menuOverMenuItem(\"MenuDesp\");'>Tools</a></div>";
	txt = txt + "</div></div>";

	document.write(txt);
}

function RenderMenuProductos(caracter)
{
	var txt= "<div id='FWTableContainer876161481'>";
	txt = txt + "<img name='nProductos' src='./images/MenuProductos" + caracter + ".gif' width='625' height='18' border='0' id='nProductos' usemap='#m_productos'/><map name='m_productos' id='m_productos'>";		
	txt = txt + "<area shape='rect' coords='275,0,389,18' href='Productos.aspx'/>";
	txt = txt + "<area shape='rect' coords='392,0,506,18' href='javascript:;' onmouseout='MM_menuStartTimeout(600);' onmouseover='MM_menuShowMenu(\"MMMenuContainer0820161747_0\", \"MMMenu0820161747_0\",392,18,\"n00000001\");'/>";
	txt = txt + "<area shape='rect' coords='508,0,624,18' href='VIF.aspx' onmouseout='MM_menuStartTimeout(600);' onmouseover='MM_menuShowMenu(\"MMMenuContainer0820161510_1\", \"MMMenu0820161510_1\",508,18,\"n00000001\");'/></map>";
	txt = txt + "<div id='MMMenuContainer0820161747_0'>";
	txt = txt + "<div id='MMMenu0820161747_0' onmouseout='MM_menuStartTimeout(600);' onmouseover='MM_menuResetTimeout();'>";
	txt = txt + "<a href='javascript:;' id='MenuDesp_Item_0' class='MMMIFVStyleMMMenu0820161747_0' onmouseover='MM_menuOverMenuItem(\"MenuDesp\");'>Valira Moderate Fund</a>";
	txt = txt + "<a href='javascript:;' id='MenuDesp_Item_1' class='MMMIVStyleMMMenu0820161747_0' onmouseover='MM_menuOverMenuItem(\"MenuDesp\");'>Multi Gestao Inmobiliario</a>";
	txt = txt + "<a href='javascript:;' id='MenuDesp_Item_2' class='MMMIVStyleMMMenu0820161747_0' onmouseover='MM_menuOverMenuItem(\"MMMenu0820161747_0\");'>Riva y García Selección alternativa IICIICIL</a></div></div>";
	txt = txt + "<div id='MMMenuContainer0820161510_1'>";
	txt = txt + "<div id='MMMenu0820161510_1' onmouseout='MM_menuStartTimeout(600);' onmouseover='MM_menuResetTimeout();'>";
	txt = txt + "<a href='VIF.aspx' target='_self' id='MenuDesp_Item_0' class='MMMIFVStyleMMMenu0820161510_1' onmouseover='MM_menuOverMenuItem(\"MenuDesp\");'>Valira&nbsp;Income&nbsp;FIL</a></div>";
	txt = txt + "</div></div>";
	document.write(txt);
}


function RenderFotoMenu(ele)
{
	var foto="./images/MenFotOficinas.jpg";
	switch(ele)
	{
		case 1:
		foto = "./images/MenFotEquipo.jpg";
		break;
		case 2:
		foto = "./images/MenFotProductos.jpg";
		break;
		case 3:
		foto = "./images/MenFotServicios.jpg";
		break;
		case 4:
		foto = "./images/MenFotNews.jpg";
		break;
		case 5:
		foto = "./images/MenFotContacto.jpg";
		break;
		default:
		foto="./images/MenFotOficinas.jpg";
	}
	return foto
}




function Producto(pnombre,pest,ptip,pfec,pren,pvol,phor,pliq,preg)
{
	this.Nombre = pnombre;
	this.Estrategia = pest;
	this.Tipo = ptip;
	this.Fecha = pfec;
	this.Rentabilidad = pren;
	this.Volatilidad = pvol;
	this.Horizonte = phor;
	this.Liquidez = pliq;
	this.Registro = preg;
}

var Productos = new Array();

Productos[0] = new Producto("Valira Income FIL","FoFs Multimanager","Hedge Funds y Real Estate Funds","jul-08","7-9%","<2,5%","2-3 años","Trimestral","CNMV (España)");
Productos[1] = new Producto("Valira Moderate Fund","FoHFs Multiestrategia","Hedge Funds","mar-08","Libor $ + 250 b.p.","3-5%","3-5 años","Mensual","CSSF (Luxemburgo)");
Productos[2] = new Producto("Multi Gestao Inmobiliario","FoFs inmobiliario de inversión directa","Open Ended Real Estate Fund","may-07","4-5%","<1%","3 años","Diaria","CMVM (Portugal)");
Productos[3] = new Producto("Riva y García Selección Alternativa IICIICIL","FoHFs Multiestrategia","Hedge Funds","nov-07","Eonia + 500 b.p.","<5%","3 años","Mensual","CNMV (España)");

function RenderProductos(valor)
{
	alert(Productos[0].attributes.length);
	var txt = "<table class='font_v9grnt' align='center' cellspacing='1' cellpadding='1'>";
	txt = txt + "<tr><td>" + Productos[0].Estrategia + "</td><td>" + Productos[1].Estrategia + "</td><td>" + Productos[2].Estrategia + "</td><td>" + Productos[3].Estrategia + "</td></tr>"
	txt = txt + "</table>";
	
	document.write(txt);
}


/*"Objeto" Item de Gestion*/
function itemGestion(pTitul,pDesc)
{
   this.titulo = pTitul;
   this.descripcion = pDesc;
}


/*Carga de los items de Riesgo Cualitativo*/
var i0 = new itemGestion('Riesgo Operacional','Minimizamos este riesgo a trav&eacute;s de: i) exhaustivo Due Diligence, ii) reuniones con el prime broker, administrador y custodio, y iii) referencias de la industria');
var i1 = new itemGestion('Riesgo de Valoraci&oacute;n','Se analizan los procedimientos de valoraci&oacute;n, las fuentes de precios y la liquidez de los subyacentes');
var i2 = new itemGestion('Riesgo de Negocio','Evaluamos la estructura de la gestora como empresa, sus activos, la capacidad de crecimiento y el control del mismo, as&iacute; como la segregaci&oacute;n de funciones en las &aacute;reas de administraci&oacute;n y control de riesgos');
var i3 = new itemGestion('Riesgo de Liquidez','Se analiza la existencia de activos l&iacute;quidos y la estructura de las inversiones del fondo; para ello, se utilizan filtros cuantitativos, y se estudia los mercados en los que participan');

/*Array de Items de Riesgo Cualitativo*/
var lista = new Array(i0,i1,i2,i3);

/*contador global items de Riesgo Cualitativo*/
var contExt=0;

function RenderListaGestion()
{
    if (contExt>=lista.length)
    {
        contExt=0;
    }
    
    var contentBanner = "<table cellspacing='0' cellpadding='0' border='0'><tr>";
    contentBanner = contentBanner + "<td><font class='font_v10azbt'>" + lista[contExt].titulo + "</font></td>";
    contentBanner = contentBanner + "<td><font class='font_v10aznt'>" + lista[contExt].descripcion + "</font></td>";
    contentBanner = contentBanner + "</tr></table>";
    
    document.getElementById('dvlista').innerHTML = contentBanner;
    contExt++;
}

function login()
{
	if ((document.getElementById("txtUser").value!="")&&(document.getElementById("txtPass").value!=""))
	{
		document.getElementById("frmDefault").submit();
	}
	else
	{
		alert("Introduzca los datos de acceso.");
	}
}

function cambiarImg(ele,img)
{
	ele.src="images/" + img;
}

function localPage(pLng)
{
	var pathlocal = window.location.toString();
	var pos = pathlocal.split("/");
	var pag = pos[pos.length -1].toString();
	//irA("../" + pLng + "/" + pag);
	irA(pag + "?lang=" + pLng);
	//alert(pos[pos.length -1].toString());
	session("la")="es_GTGT";
}


//COOKIES

function GetCookie (name) 
{ 
	var arg = name + "="; 
	var alen = arg.length; 
	var clen = document.cookie.length; 
	var i = 0; 
	while (i < clen) 
	{
		var j = i + alen; 
		if (document.cookie.substring(i, j) == arg) 
			return getCookieVal (j); 
		i = document.cookie.indexOf(" ", i) + 1; 
		if (i == 0) break; 
	} 
	return null;
}

function SetCookie (name, value) 
{ 
	var argv = SetCookie.arguments; 
	var argc = SetCookie.arguments.length; 
	var expires = (argc > 2) ? argv[2] : null; 
	var path = (argc > 3) ? argv[3] : null; 
	var domain = (argc > 4) ? argv[4] : null; 
	var secure = (argc > 5) ? argv[5] : false; 
	document.cookie = name + "=" + escape (value) + 
	((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
	((path == null) ? "" : ("; path=" + path)) + 
	((domain == null) ? "" : ("; domain=" + domain)) + 
	((secure == true) ? "; secure" : "");
}


function DeleteCookie (name) 
{ 
	var exp = new Date(); 
	exp.setTime (exp.getTime() - 1); 
	var cval = GetCookie (name); 
	document.cookie = name + "=" + cval + "; expires=" + 
	exp.toGMTString();
}

var expDays = 30;
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function amt()
{
	var count = GetCookie('count')
	if(count == null) 
	{
		SetCookie('count','1')
		return 1
	}
	else 
	{
		var newcount = parseInt(count) + 1;
	DeleteCookie('count')
	SetCookie('count',newcount,exp)
	return count
	}
}

function getCookieVal(offset) 
{
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1)
	endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}

function red2()
{
	var cok = GetCookie('idioma');
	if ((cok!="esp")&&(cok!="eng"))
	{
		SetCookie ('idioma', 'esp');
	}

	irA(GetCookie('idioma') + "/Default.aspx");
}


function hora(){
if (!document.layers&&!document.all&&!document.getElementById)
return
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
var dn="AM" 
if (hours>12){
dn="PM"
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here to your desire
myclock="<font class='font_v9grnt' face='Arial' >"+hours+":"+minutes+":"
+seconds+" "+dn+"</font>"
if (document.layers){
document.layers.liveclock.document.write(myclock)
document.layers.liveclock.document.close()
}
else if (document.all)
liveclock.innerHTML=myclock
else if (document.getElementById)
document.getElementById("liveclock").innerHTML=myclock
setTimeout("hora()",1000)
}






<!--SCROLL NOTICIAS-->

function noticia(titular,titularENG,texto,fecha,enlace,destino){
	this.titular = titular;
	this.titularENG= titularENG;
	this.texto = texto;
	this.fecha= fecha;
	this.enlace = enlace;
	this.destino = destino;
}

var noticias = new Array()

noticias[0]= new noticia("Valira Capital Asset Management obtiene el certificado ISO 9001 por garantía en calidad de procesos.","Valira Capital Asset Management obtiene ISO por garantía en calidad de procesos.","","28/05/09","http://ve.invertia.com/noticias/noticia.aspx?idNoticia=200905281302_EFE_ET4115","_blank");
noticias[1]= new noticia("Crèdit Andorrà invertirá 12 millones de euros en un proyecto internacional iniciado en Uruguay.","Crèdit Andorrà will invest 12 million euros in a recently started international project in Uruguay.","","05/01/09","http://blogs.periodistadigital.com/cenytmercosur.php/2009/01/05/credit-andorra-invertira-12-millones-de-","_blank");
noticias[2]= new noticia("Crèdit Andorrà abrirá su primera oficina en Panamá en cuatro meses.","Crèdit Andorrà will open its first office in Panamá within four months.","","02/09/08","http://blogs.periodistadigital.com/cenytmercosur.php/2009/01/05/credit-andorra-invertira-12-millones-de-","_blank");
noticias[3]= new noticia("Buen momento para la gestión alternativa.","Good times for the alternative investment.","","24/07/08","../files/not_240708_Negocio.pdf","_blank");
noticias[4]= new noticia("'Negocio' entrevista a <b>Santiago Moro</b>. Director General de Valira Asset Management.","'Negocio' interview with <b>Santiago Moro</b>. Managing Director of Valira AM.","","01/07/08","../files/not_010708_Negocio.pdf","_blank");
noticias[5]= new noticia("Riva y García Gestión saca al mercado su primer fondo de fondos de inversión libre.","Riva & García Asset Management together with Valira launches its first Fund of Hedge Funds.","","12/03/08","http://www.europapress.es/00376/20071001182224/riva-garcia-gestion-saca-mercado-primer-fondo-fondos-inversion-libre.aspx","_blank");
//noticias[5]= new noticia("La CNMV autoriza a Valira Capital Asset Management a gestionar fondos de inversión libre","The CNMV authorizes Valira Capital Asset Management to manage Hedge Funds","","14/01/08","http://www.cnmv.es","_blank");

//noticias[4]= new noticia("La banca andorrana inicia su entrada en España de la mano de Valira Asset Management","An Andorran Bank establishes its business in Spain","","14/01/08","../files/not_140108_LaVanguardia.pdf","_blank");
//noticias[4]= new noticia("Valira llega con un nuevo socio y lanzará dos 'hedge'","Valira and its new partner will launch two Hedge Funds","","17/12/07","../files/not_171207_Negocio.pdf","_blank");



function escribeNoticia(not)
{
	var txt ="<table cellspacing='0' cellpadding='0' style='width:240px'><tr><td><marquee style=\"height:60px;width:230px\" behavior=\"slide\" scrollamount=\"1\" scrolldelay=\"4\"  direction=\"up\">" + formatearNoticia(not) + "</marquee></td></tr></table>";
	document.getElementById("dvNoticias").innerHTML = txt;
}

function formatearNoticia(not)
{
	var url = location.href;
	var txt = "";
	if (!(url.indexOf("/eng/")>0))
	{
		txt = "<table cellspacin='1' cellpadding='1'><tr><td colspan='2' style='text-align:justify'><a href=\"" + not.enlace  + "\" target=\"_blank\" class=\"font_v9grnt\">" + not.titular + "</a></td></tr><tr><td></td><td align=\"right\"><font class=\"font_v9grnt\">Fecha:" +  not.fecha + "</font></td></tr></table>";
	}
	else
	{
		txt = "<table cellspacin='1' cellpadding='1'><tr><td colspan='2'><a href=\"" + not.enlace  + "\" target=\"_blank\" class=\"font_v9grnt\">" + not.titularENG + "</a></td></tr><tr><td></td><td align=\"right\"><font class=\"font_v9grnt\">Date:" +  not.fecha + "</font></td></tr></table>";
	}
	return txt;
}

var contador=0;

function rollerNoticias()
{
		if (contador >= noticias.length)
		{
			contador=0;
		}
		escribeNoticia(noticias[contador]);
		contador++;
}


function iniciarBanner()
{
	rollerNoticias();
	setInterval("rollerNoticias()",8000);
}
<!--FIN DE SCROLL-->




function VL(mes,anio,valor,rent,acum)
{
	this.Mes = mes;
	this.Anio= anio;
	this.Valor = valor;
	this.Rentabilidad = rent;
	this.Acumulado = acum
}

var valores=new Array();
valores[0] = new VL("6","2008","100,0116","0,01%","0,01%");
valores[1] = new VL("7","2008","100,1262","0,12%","0,13%");
valores[2] = new VL("8","2008","100,1363","0,01%","0,14%");
valores[3] = new VL("9","2008","100,3036","0,16%","0,30%");
valores[4] = new VL("10","2008","95,8090","-4,48%","-4,19%");
valores[5] = new VL("11","2008","95,9301","0,13%","-4,07%");
valores[6] = new VL("0","2009","95,95703","0,03%","0,03%");
valores[7] = new VL("1","2009","95,94391","-0,01%","0,01%");
valores[8] = new VL("2","2009","95,90937","-0,04%","-0,02%");
valores[9] = new VL("3","2009","95,86244","-0,05%","-0,07%");
valores[10] = new VL("4","2009","95,89956","0,04%","-0,03%");
valores[11] = new VL("5","2009","95,997","0,10%","0,07%");
valores[12] = new VL("6","2009","95,94103","-0,06%","-0,01%");


function ObtenerVL()
{
	var encontrado = false;
	var pathlocal = window.location.toString();
	
	
	var m = document.getElementById("ddlMes").options[document.getElementById("ddlMes").selectedIndex].value;
	var a = document.getElementById("ddlAnio").options[document.getElementById("ddlAnio").selectedIndex].text;
	
	//alert(navigator.appName + " -- " + navigator.appVersion);
	
	for(i=0;i<=valores.length -1;i++)
	{
		if ((valores[i].Mes==m) && (valores[i].Anio==a))
		{
			document.getElementById("dvMesVliq").innerText = document.getElementById("ddlMes").options[valores[i].Mes].text + " " +  valores[i].Anio;
			document.getElementById("dvVliq").innerText = valores[i].Valor;
		    document.getElementById("dvRent").innerText = valores[i].Rentabilidad;
		    document.getElementById("dvAcum").innerText = valores[i].Acumulado;
			encontrado = true;
		}
	}
	
	if (!encontrado)
	{
		document.getElementById("dvMesVliq").innerText = document.getElementById("ddlMes").options[m].text  + " " +  a;
		document.getElementById("dvVliq").innerText = "--";
		document.getElementById("dvRent").innerText = "--";
		document.getElementById("dvAcum").innerText = "--";
	}
}

function ObtenerUltimoVL()
{
	
	if (document.getElementById("ddlMes")!=null)
	{
	    var hoy = new Date();
	    var mes = (hoy.getMonth() - 1)<0 ? "11" : hoy.getMonth() -1;
	    var anio= hoy.getYear() < 2000 ? (1900+hoy.getYear()) : hoy.getYear();
    	
	    var selectorMes = eval(document.getElementById("ddlMes"));
	    var selectorAnio = eval(document.getElementById("ddlAnio"));
    	
    	
	    selectorMes.selectedIndex = mes;
    	
	    for(i=0;i<=selectorAnio.options.length -1;i++)
	    {
		    if (selectorAnio.options[i].text==anio)
		    {
			    if (mes==11)
			    {
				    selectorAnio.options[i-1].selected = true;
			    }
			    else
			    {
				    selectorAnio.options[i].selected = true;
			    }
		    }
	    }
    	
	    ObtenerVL() ;
	}
}


function Acceso()
{
	/*var extr = "http://extranet.valiraam.com:81/extrvam/acceso.aspx";
	var u = document.getElementById("txtUser").value;
	var p = document.getElementById("txtPass").value;
	window.location.href = extr + "?txtUser=" + u + "&txtPass=" + p;*/
	document.form1.submit();
}

/*MACROMEDIA*/
var mmOpenContainer = null;
var mmOpenMenus = null;
var mmHideMenuTimer = null;

function MM_menuStartTimeout(hideTimeout) {
	mmHideMenuTimer = setTimeout("MM_menuHideMenus()", hideTimeout);	
}

function MM_menuHideMenus() {
	MM_menuResetTimeout();
	if(mmOpenContainer) {
		var c = document.getElementById(mmOpenContainer);
		c.style.visibility = "inherit";
		mmOpenContainer = null;
	}
	if( mmOpenMenus ) {
		for(var i in mmOpenMenus) {
			var m = document.getElementById(mmOpenMenus[i]);
			m.style.visibility = "hidden";			
		}
		mmOpenMenus = null;
	}
}

function MM_menuHideSubmenus(menuName) {
	if( mmOpenMenus ) {
		var h = false;
		var c = 0;
		for(var i in mmOpenMenus) {
			if( h ) {
				var m = document.getElementById(mmOpenMenus[i]);
				m.style.visibility = "hidden";
			} else if( mmOpenMenus[i] == menuName ) {
				h = true;
			} else {
				c++;
			}
		}
		mmOpenMenus.length = c+1;
	}
}

function MM_menuOverMenuItem(menuName, subMenuSuffix) {
	MM_menuResetTimeout();
	MM_menuHideSubmenus(menuName);
	if( subMenuSuffix ) {
		var subMenuName = "" + menuName + "_" + subMenuSuffix;
		MM_menuShowSubMenu(subMenuName);
	}
}

function MM_menuShowSubMenu(subMenuName) {
	MM_menuResetTimeout();
	var e = document.getElementById(subMenuName);
	e.style.visibility = "inherit";
	if( !mmOpenMenus ) {
		mmOpenMenus = new Array;
	}
	mmOpenMenus[mmOpenMenus.length] = "" + subMenuName;
}

function MM_menuResetTimeout() {
	if (mmHideMenuTimer) clearTimeout(mmHideMenuTimer);
	mmHideMenuTimer = null;
}

function MM_menuShowMenu(containName, menuName, xOffset, yOffset, triggerName) {
	MM_menuHideMenus();
	MM_menuResetTimeout();
	MM_menuShowMenuContainer(containName, xOffset, yOffset, triggerName);
	MM_menuShowSubMenu(menuName);
}

function MM_menuShowMenuContainer(containName, x, y, triggerName) {	
	var c = document.getElementById(containName);
	var s = c.style;
	s.visibility = "inherit";
	
	mmOpenContainer = "" + containName;
}

/*XML*/
function recurso()
{
	//var xmlDoc = new ActiveXObject("MSXML2.DOMDocument");  
	var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
	xmlDoc.async=false;
	xmlDoc.load("recursos.xml");
	alert(xmlDoc.SelectNodes("\\recursos\recurso[@p='R_uno']\esp").Item(0));
}

/*OPACIDAD*/
function opacity(id, opacStart, opacEnd, millisec) {
	//speed for each frame
	var speed = Math.round(millisec / 100);
	var timer = 0;

	//determine the direction for the blending, if start and end are the same nothing happens
	if(opacStart > opacEnd) {
		for(i = opacStart; i >= opacEnd; i--) {
			setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	} else if(opacStart < opacEnd) {
		for(i = opacStart; i <= opacEnd; i++)
			{
			setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	}
}

//change the opacity for different browsers
function changeOpac(opacity, id) {
	var object = document.getElementById(id).style; 
	object.opacity = (opacity / 100);
	object.MozOpacity = (opacity / 100);
	object.KhtmlOpacity = (opacity / 100);
	object.filter = "alpha(opacity=" + opacity + ")";
}

function shiftOpacity(id, millisec) {
	//if an element is invisible, make it visible, else make it ivisible
	if(document.getElementById(id).style.opacity == 0) {
		opacity(id, 0, 100, millisec);
	} else {
		opacity(id, 100, 0, millisec);
	}
}

function blendimage(divid, imageid, imagefile, millisec) {
	var speed = Math.round(millisec / 100);
	var timer = 0;
	
	//set the current image as background
	document.getElementById(divid).style.backgroundImage = "url(" + document.getElementById(imageid).src + ")";
	
	//make image transparent
	changeOpac(0, imageid);
	
	//make new image
	document.getElementById(imageid).src = imagefile;

	//fade in image
	for(i = 0; i <= 100; i++) {
		setTimeout("changeOpac(" + i + ",'" + imageid + "')",(timer * speed));
		timer++;
	}
}

function currentOpac(id, opacEnd, millisec) {
	//standard opacity is 100
	var currentOpac = 100;
	
	//if the element has an opacity set, get it
	if(document.getElementById(id).style.opacity < 100) {
		currentOpac = document.getElementById(id).style.opacity * 100;
	}

	//call for the function that changes the opacity
	opacity(id, currentOpac, opacEnd, millisec)
}