var layers=5;			  //Cantidad de layers
var timerID = null;       //Variables para control del Timer
var timerRunning = false;
var V=100;                //Variable para la opacidad
var V2=0;
var imagennueva;
var Factor=10;
var sentido=-1;
var Shrecomienda=false;
var ShChat=false;
var CalS = '';
var CalE = '';
var ActAyuda=false;
var time;
var videoActivo=false;

var is_major = parseInt(navigator.appVersion);
var is_nav5up = (is_nav && (is_major >= 5));
var is_nav6 = (is_nav && (is_major == 6));
var is_nav4up = (is_nav && (is_major >= 4));

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {
	if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage;
	}
  }
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
	location.reload();
}
MM_reloadPage(true);

var xVersion='3.15.2',xNN4,xOp7,xOp5or6,xIE4Up,xIE4,xIE5,xMac,xUA=navigator.userAgent.toLowerCase();
if (window.opera){
  xOp7=(xUA.indexOf('opera 7')!=-1 || xUA.indexOf('opera/7')!=-1);
  if (!xOp7) xOp5or6=(xUA.indexOf('opera 5')!=-1 || xUA.indexOf('opera/5')!=-1 || xUA.indexOf('opera 6')!=-1 || xUA.indexOf('opera/6')!=-1);
}
else if (document.all && xUA.indexOf('msie')!=-1){
  xIE4Up=parseInt(navigator.appVersion)>=4;
  xIE4=xUA.indexOf('msie 4')!=-1;
  xIE5=xUA.indexOf('msie 5')!=-1;
}
else if (document.layers) {
	xNN4=true;
}
xMac=xUA.indexOf('mac')!=-1;

function DesactivarAyuda(){
	ActAyuda=false;
}

// Handle Navigator 4 window resizing
if (is_nav4up && !is_nav5up) {
   var initWidth, initHeight;
   initWidth = window.innerWidth;
   initHeight = window.innerHeight;
   window.captureEvents(Event.RESIZE);
   window.onresize = handleResize;
}

//  UTILITY FUNCTIONS
// Function to handle window resizing on Navigator 4
function handleResize() {
   if (((initWidth != window.innerWidth) || (initHeight != window.innerHeight)) && (typeof disableReload == "undefined")) {
     location.reload();
   }
   return false;
}

function CargarHoras(id){
	if(document.getElementById('horas')){
		document.getElementById('horas').options.length = 0;
		switch (id){
			case 'cumpleanos':
				document.getElementById('horas').options[0] = new Option('10-1 ','10-1 ');
				document.getElementById('horas').options[1] = new Option('3 - 6','3 - 6');
				document.getElementById('horas').options[2] = new Option('7-10 ','7-10 ');
				document.getElementById('Categoria').selectedIndex=0;
		
				break;
			case 'babyshower':
				document.getElementById('horas').options[0] = new Option('11-2 ','11-2 ');
				document.getElementById('horas').options[1] = new Option('3 - 6 ','3 - 6');
				document.getElementById('horas').options[2] = new Option('7-10 ','7-10 ');
				document.getElementById('Categoria').selectedIndex=1;
				break;
			case 'teoficina':
				document.getElementById('horas').options[0] = new Option('11-2 ','11-2 ');
				document.getElementById('horas').options[1] = new Option('3 - 6 ','3 - 6');
				document.getElementById('horas').options[2] = new Option('7-10 ','7-10 ');
				document.getElementById('Categoria').selectedIndex=1;
				break;
			case 'fiestaalegria':
				document.getElementById('horas').options[0] = new Option('9-12 ','9-12 ');
				document.getElementById('horas').options[1] = new Option('2 - 5','2 - 5');
				document.getElementById('Categoria').selectedIndex=2;
				break;
		
			case 'graduacion':
				document.getElementById('horas').options[0] = new Option('2 - 6','2 - 6');
				document.getElementById('horas').options[1] = new Option('6-10 ','6-10 ');
				document.getElementById('Categoria').selectedIndex=2;
				break;
			case 'despedidaSoltera':
				document.getElementById('horas').options[0] = new Option('11-2 ','11-2 ');
				document.getElementById('horas').options[1] = new Option('3 - 6','3 - 6');
				document.getElementById('horas').options[2] = new Option('7-10 ','7-10 ');
				document.getElementById('Categoria').selectedIndex=1;
				break;
			case 'dianino':
				document.getElementById('horas').options[0] = new Option('9-12 ','9-12 ');
				document.getElementById('horas').options[1] = new Option('2 - 5','2 - 5');
				document.getElementById('Categoria').selectedIndex=2;
				break;
			case 'diamadre':
				document.getElementById('horas').options[0] = new Option('10-1 ','10-1 ');
				document.getElementById('horas').options[1] = new Option('3 - 6','3 - 6');
				document.getElementById('horas').options[2] = new Option('7-10 ','7-10 ');
				document.getElementById('Categoria').selectedIndex=2;
				break;
			case 'diapadre':
				document.getElementById('horas').options[0] = new Option('10-1 ','10-1 ');
				document.getElementById('horas').options[1] = new Option('3 - 6','3 - 6');
				document.getElementById('horas').options[2] = new Option('7-10 ','7-10 ');
				document.getElementById('Categoria').selectedIndex=2;
				break;
			case 'fiesta15dias':
				document.getElementById('horas').options[0] = new Option('9-12 ','9-12 ');
				document.getElementById('horas').options[1] = new Option('2 - 5','2 - 5');
				document.getElementById('Categoria').selectedIndex=2;
				break;
			case 'bautizo':
				document.getElementById('horas').options[0] = new Option('11-2 ','11-2 ');
				document.getElementById('horas').options[1] = new Option('3 - 6','3 - 6');
				document.getElementById('horas').options[2] = new Option('7-10 ','7-10 ');
				document.getElementById('Categoria').selectedIndex=4;
				break;
			case 'primeracomunion':
				document.getElementById('horas').options[0] = new Option('11-2 ','11-2 ');
				document.getElementById('horas').options[1] = new Option('3 - 6','3 - 6');
				document.getElementById('horas').options[2] = new Option('7-10 ','7-10 ');
				document.getElementById('Categoria').selectedIndex=4;
				break;
			case 'familiar':
				document.getElementById('horas').options[0] = new Option('10-1 ','10-1 ');
				document.getElementById('horas').options[1] = new Option('3 - 6','3 - 6');
				document.getElementById('horas').options[2] = new Option('7-10 ','7-10 ');
				document.getElementById('Categoria').selectedIndex=3;
				break;
			case 'empresa':
				document.getElementById('horas').options[0] = new Option('10-1 ','10-1 ');
				document.getElementById('horas').options[1] = new Option('3 - 6','3 - 6');
				document.getElementById('Categoria').selectedIndex=3;
				break;
		}
	}
}
function Mostrar2(id,imagen){
	var i=1;
	if(id != 'mismo'){
		while(i<=layers){
			hideObj('lay'+i);
			i=i+1;
		}
		showObj(id);
	}
	imagennueva=imagen;
	startTimer('Diluir()');
	
}
function Mostrar(id,imagen){
	Custom.init();
	var i=1;
	if(id != 'mismo'){
		while(i<=layers){
			hideObj('lay'+i);
			i=i+1;
		}
		showObj(id);
	}
	imagennueva=imagen;
	startTimer('Diluir()');
	
}

function hideObjRetardo(id){
	time=setTimeout("hideObj('"+id+"')",100);
}

function stopTimer(){
  //Para el reloj
  if(timerRunning)
  {
  	clearTimeout(timerID);
  	timerRunning = false;
  }
}

function startTimer(funcion){
  // Para el reloj, si esta activo y lo arranca.
  stopTimer();
  timerID=setTimeout(funcion,1);
  timerRunning = true;
}

function Opacidad(){
	if(window.document.getElementById('Imagen')){
		switch (V){
			case 100:
				sentido = -1;
				break;
			case 0:
				sentido = 1;
		}
		V+=sentido;	 //segun sea el sentido aumenta o disminuye el valor
	
		window.document.getElementById('Imagen').style.filter = "alpha(opacity: " + V + ")";
		window.document.getElementById('Imagen').style.MozOpacity=V/100.0;
		window.document.getElementById('Imagen').style.opacity=V/100.0;
		timerID=setTimeout("Opacidad()",1);
	}
}

function Diluir(){
	if(window.document.getElementById('Imagen')){
		if(V>0){
			V = V - Factor;
			window.document.getElementById('Imagen').style.filter = "alpha(opacity: " + V + ")";
			window.document.getElementById('Imagen').style.MozOpacity=V/100.0;
			window.document.getElementById('Imagen').style.opacity=V/100.0;
			timerID=setTimeout("Diluir()",1);
		}
		else{
			var foto=new Image();
			foto.src=imagennueva;
			window.document.getElementById('Imagen').src=foto.src;
			V2=0;
			timerID=setTimeout("Reaparecer()",1);
			V=100;
		}
	}
}

function Reaparecer(){
	if(V2>=100){
		V2=100;
	}
	else{
		V2=V2+Factor;
		window.document.getElementById('Imagen').style.filter = "alpha(opacity: " + V2 + ")";
		window.document.getElementById('Imagen').style.MozOpacity=V2/100.0;
		window.document.getElementById('Imagen').style.opacity=V2/100.0;
		timerID=setTimeout("Reaparecer()",50);
	}
}

function GetSavedValues(){
	CalS = DE('CalS').value;
	CalE = DE('CalE').value;

	var sdt = new Date(CalS);
	var edt = new Date(CalE);
	var j = 0;
	var sm = sdt.getMonth() + 1;
	var em = 12;
	if(sdt.getYear() == edt.getYear()){
	    em = edt.getMonth() + 1;
	}
	for (var i = sm;i <= em;i++){
	    j = j + 1;
	}
	if(edt.getYear() > sdt.getYear()){
	    for (var i = 1;i <= edt.getMonth() + 1;i++){
	        j = j + 1;
	    }
	}
    if(j > 0){nm = j;}
}

function DE(el){
	return document.getElementById(el);
}

function enter(e){
	var k;
	if(e.keyCode){
		k=e.keyCode;
	}
	if(e.which){
		k=e.which;
	}
	if(k=='13'){
		e.cancelBubble=true;
	}
}

function CambiarTexto(texto,div){
	document.getElementById(div).innerHTML=texto;
}

function CambiarTitulo(texto,div){
	document.getElementById(div).innerHTML=texto;
}

function LoadHTML(text){
	if (videoActivo){
		window.document.getElementById('FrmVideo').innerHTML="<img id=\"Imagen\" alt=\"Ima\" src=\"\" width=\"559\" height=\"291\" />"
		videoActivo=false;
	}
	Stringhtml= new Incrustor();
	switch(text){
		case "cumpleanos":
			imagenActiva=3;
			Stringhtml.Concat('<table width="100%"  border="0" cellspacing="0" cellpadding="0"><tr><td><div><div style="PADDING-LEFT:6px;"><table><tr><td colspan="2" align="center"><label style="cursor:pointer" class="LetraStandarLadrillo"><strong>Cumplea&ntilde;os Feliz</strong></label></td></tr><tr><td colspan="2" align="center" style="text-align:left "><label class="Special"><div id="textoMinicuadro" class="Special"><img src="images/comillasabrir.gif">Un conjunto selecto de juguetes y una comida exquisita har&aacute;n de tu fiesta un d&iacute;a para recordar<img src="images/comillascerrar.gif"></div><br /></label></td>  </tr><tr><td></td></tr></table><br /><br /><br /><br /><br /></div><div style="width: 134px; text-align: center;"><div class="tabs"><div class="header" align="right"><a class="" href="../productos.php?id=fiestasinfantiles">M&aacute;s...</a></div></div></div></div></td></tr></table>');
			break;
		case "babyshower":
			imagenActiva=0;
			Stringhtml.Concat('<table width="100%"  border="0" cellspacing="0" cellpadding="0">          <tr>        <td><div>            <div style="PADDING-LEFT:6px;">				<table>				<tr>					<td colspan="2" align="center"><label class="LetraStandarLadrillo"><strong>Té</strong></label></td>				</tr> <tr><td colspan="2" align="center" style="text-align:left "><label class="Special"><div id="textoMinicuadro" class="Special"><img src="images/comillasabrir.gif">Celebra tu Baby Shower en un Lugar &Uacute;nico y Especial<img src="images/comillascerrar.gif"></div><br /></label></td>  </tr>	<tr>					<td><input style="cursor:pointer" id="rdLay4Opcion0" name="Grupo2" type="radio" class="styled"  onclick="Mostrar(\'mismo\',\'images/Babyshower.jpg\');CargarHoras(\'babyshower\');CambiarTexto(\'Celebra tu Baby Shower en un Lugar &Uacute;nico y Especial\',\'textoMinicuadro\')" checked="true" /></td>					<td width="100%" style="PADDING-TOP: 3px;" class="header"><a style="cursor:pointer" class="" href="../productos.php?id=babyshower">Baby Shower</a></td>				</tr>				<tr>					<td><input style="cursor:pointer" id="rdLay4Opcion1" name="Grupo2" type="radio" class="styled" onclick="Mostrar(\'mismo\',\'images/Bodas2.jpg\');CargarHoras(\'despedidaSoltera\');CambiarTexto(\'Desp&iacute;dete de la Solter&iacute;a con Elegancia\',\'textoMinicuadro\')" /></td>					<td width="100%" style="PADDING-TOP: 3px;" class="header"><a style="cursor:pointer" class="" href="../productos.php?id=despedidasoltera">Despedida de Soltera</a></td>				</tr><tr>					<td><input style="cursor:pointer" id="rdLay4Opcion2" name="Grupo2" type="radio" class="styled" onclick="Mostrar(\'mismo\',\'images/teoficina.jpg\');CargarHoras(\'teoficina\');CambiarTexto(\'Celebra con tu Equipo de Trabajo ese d&iacute;a Especial\',\'textoMinicuadro\')" /></td>					<td width="100%" style="PADDING-TOP: 3px;" class="header"><a style="cursor:pointer" class="" href="../productos.php?id=babyshower">T&eacute; de Oficina</a></td>				</tr>				</table>				<br />				<br />				<br />				<br /></div>            <div style="width: 134px; text-align: center;">              <div class="tabs">                <div class="header" align="right"> <a class="" href="../productos.php?id=babyshower">M&aacute;s...</a> </div>              </div>            </div>          </div></td>      </tr>    </table>');
			break;
		case "kinder":
			imagenActiva=4;
			Stringhtml.Concat('<table width="100%" border="0" cellspacing="0" cellpadding="0">      <tr>        <td><div>            <div>              <div style="PADDING-LEFT:6px;">			  <table>	<tr>					<td colspan="2" align="center"><label class="LetraStandarLadrillo"><strong>Kinder</strong></label></td>				</tr>		  	<tr>					<td><input style="cursor:pointer" id="rdLay3Opcion0" name="Grupo2" class="styled" type="radio"  onclick="Mostrar(\'mismo\',\'images/fiesta-alegria.jpg\');CargarHoras(\'fiestaalegria\');" checked="true" /></td>					<td width="100%" style="PADDING-TOP: 3px;" class="header"><a style="cursor:pointer" class="" href="../productos.php?id=fiestaalegria">Fiesta de la Alegr&iacute;a</label></td>				</tr>				<tr> 					<td><input style="cursor:pointer" id="rdLay3Opcion1" name="Grupo2" type="radio" class="styled" onclick="Mostrar(\'mismo\',\'images/graduacionFinal.jpg\');CargarHoras(\'graduacion\');" /></td>					<td width="100%" style="PADDING-TOP: 3px;" class="header"><a style="cursor:pointer" class="" href="../productos.php?id=graduacion">Graduaci&oacute;n</label></td>				</tr>				<tr>					<td><input style="cursor:pointer" id="rdLay3Opcion2" name="Grupo2" type="radio" class="styled" onclick="Mostrar(\'mismo\',\'images/Dianino.jpg\');CargarHoras(\'dianino\');" /></td>					<td width="100%" style="PADDING-TOP: 3px;" class="header"><a style="cursor:pointer" class="" href="../productos.php?id=fiestasinfantiles">D&iacute;a del Ni&ntilde;o</label></td>				</tr>				<tr>					<td><input style="cursor:pointer" id="rdLay3Opcion3" name="Grupo2" type="radio" class="styled" onclick="Mostrar(\'mismo\',\'images/Diamadre.jpg\');CargarHoras(\'diamadre\');" /></td>					<td width="100%" style="PADDING-TOP: 3px;" class="header"><a style="cursor:pointer" class="" href="../productos.php?id=fiestasinfantiles">D&iacute;a de la Madre</label></td>				</tr>				<tr>					<td><input style="cursor:pointer" id="rdLay3Opcion4" name="Grupo2" type="radio" class="styled" onclick="Mostrar(\'mismo\',\'images/dia-del-padre2.jpg\');CargarHoras(\'diapadre\');" /></td>					<td style="PADDING-TOP: 3px;" class="header"><a style="cursor:pointer" class="" href="../productos.php?id=fiestasinfantiles">D&iacute;a del Padre</label></td>				</tr>				<tr>					<td><input style="cursor:pointer" id="rdLay3Opcion5" name="Grupo2" type="radio" class="styled" onclick="Mostrar(\'mismo\',\'images/fiesta-alegria.jpg\');window.document.getElementById(\'rdLay3Opcion5\').checked=true;CargarHoras(\'fiesta15dias\');" /></td>					<td width="100%" style="PADDING-TOP: 3px;" class="header"><a style="cursor:pointer" class="" href="../productos.php?id=fiestasinfantiles">Fiesta de 15 d&iacute;as</label></td>				</tr>			  </table>              </div>              <div style="width: 134px; text-align: center;">                <div class="tabs">                  <div class="header" align="right"> <a class="" href="../productos.php?id=fiestasinfantiles">M&aacute;s...</a> </div>                </div>              </div>            </div>          </div></td>      </tr>        </table>');
			break;
		case "navidad":
			imagenActiva=10;
			Stringhtml.Concat('<table width="100%"  border="0" cellspacing="0" cellpadding="0"><tr><td><div><div style="PADDING-LEFT:6px;"><table><tr>					<td colspan="2" align="center"><label class="LetraStandarLadrillo"><strong>Fiesta de Navidad</strong></label></td>				</tr><tr><td colspan="2" align="center" style="text-align:left "><label class="Special"><div class="Special" id="textoMinicuadro"><img src="images/comillasabrir.gif">Re&uacute;ne a toda tu familia para celebrar con regocijo y alegr&iacute;a estos d&iacute;as de luz, calor y <br>amor<img src="images/comillascerrar.gif"></div><br /></label></td>  </tr><tr><td><input style="cursor:pointer" id="rdLay4Opcion0" name="Grupo2" type="radio" class="styled"  onclick="Mostrar(\'mismo\',\'images/navida-familiar.jpg\');CargarHoras(\'familiar\');CambiarTexto(\'Reúne a toda tu familia para celebrar con regocijo y alegr&iacute;a estos d&iacute;as de luz, calor y <br>amor\',\'textoMinicuadro\')" checked="true" /></td><td width="100%" style="PADDING-TOP: 3px;" class="header"><a style="cursor:pointer" class="" href="../productos.php?id=navidad">Familiar</label></td></tr><tr><td><input style="cursor:pointer" id="rdLay4Opcion1" name="Grupo2" type="radio" class="styled" onclick="Mostrar(\'mismo\',\'images/navidad-empresa.jpg\');CargarHoras(\'empresa\');CambiarTexto(\'Disfruta con los hijos de tu equipo un d&iacute;a maravilloso con todo incluido\',\'textoMinicuadro\')" /></td><td width="100%" style="PADDING-TOP: 3px;" class="header"><a style="cursor:pointer" class="" href="../productos.php?id=navidad">Empresa</label></td></tr></table><br /><br /></div><div style="width: 134px; text-align: center;"><div class="tabs"><div class="header" align="right"><a class="" href="../productos.php?id=navidad">M&aacute;s...</a></div></div></div></div></td></tr></table>');
			break;
		case "sacramentos":
			imagenActiva=12;
			Stringhtml.Concat('<table width="100%"  border="0" cellspacing="0" cellpadding="0"><tr><td><div><div width="100%" style="PADDING-LEFT:6px;"><table><tr><td colspan="2" align="center"><label style="cursor:pointer" class="LetraStandarLadrillo"><strong>Sacramentos</strong></label></td></tr><tr><td colspan="2" align="center" style="text-align:left "><label class="Special"><div class="Special" id="textoMinicuadro"><img src="images/comillasabrir.gif">El primer encuentro &iacute;ntimo con el se&ntilde;or es un d&iacute;a para celebrar y dar gracias<img src="images/comillascerrar.gif"></div><br /></label></td>  </tr><tr><td><input style="cursor:pointer" id="rdLay5Opcion0" name="Grupo2" type="radio" class="styled"  onclick="Mostrar(\'mismo\',\'images/PrimeraComunion.jpg\');CargarHoras(\'primeracomunion\');CambiarTexto(\'El primer encuentro &iacute;ntimo con el Señor es un d&iacute;a para celebrar y dar gracias\',\'textoMinicuadro\')" checked="true" /></td><td width="100%" style="PADDING-TOP: 3px;" class="header"><a style="cursor:pointer" class="" href="../productos.php?id=primeracomunion">Primera Comuni&oacute;n</label></td></tr><tr><td><input style="cursor:pointer" id="rdLay5Opcion1" name="Grupo2" type="radio" class="styled" onclick="Mostrar(\'mismo\',\'images/bautizo.jpg\');CargarHoras(\'bautizo\');CambiarTexto(\'El nacimiento a la vida en Cristo es un dia para celebrar, compartir y llenarse de <br>regocijo\',\'textoMinicuadro\')" /></td><td style="PADDING-TOP: 3px;" class="header"><a style="cursor:pointer" class="" href="../productos.php?id=bautizo">Bautizo</label></td></tr></table><br /><br /></div><div style="width: 134px; text-align: center;"><div class="tabs"><div class="header" align="right" ><a class="" href="../productos.php?id=primeracomunion">M&aacute;s...</a></div></div></div></div></td></tr></table>');
			break;
		case "boda":
			imagenActiva=14;
			Stringhtml.Concat('<table width="100%"  border="0" cellspacing="0" cellpadding="0"><tr><td><div><div style="PADDING-LEFT:6px;"><table><tr><td colspan="2" align="center"><label style="cursor:pointer" class="LetraStandarLadrillo"><strong>Boda</strong></label></td></tr><tr><td colspan="2" align="center" style="text-align:left "><label class="Special"><div class="Special" id="textoMinicuadro"><img src="images/comillasabrir.gif">Buen gusto, distinci&oacute;n y belleza se fusionan para celebrar un d&iacute;a que recordar&aacute;s toda tu vida<img src="images/comillascerrar.gif"></div><br /></label></td>  </tr><tr><td><input checked="true" style="cursor:pointer" id="rdLay5Opcion0" name="Grupo2" type="radio" class="styled" onclick="Mostrar(\'mismo\',\'images/Bodas.jpg\');CargarHoras(\'boda\');CambiarTexto(\'Buen gusto, distinción y belleza se fusionan para celebrar un día que recordarás toda tu vida\',\'textoMinicuadro\')" /></td><td style="PADDING-TOP: 3px;" class="header"><a style="cursor:pointer" class="" href="../productos.php?id=bodas">Boda</label></td></tr><tr><td><input style="cursor:pointer" id="rdLay5Opcion1" name="Grupo2" type="radio" class="styled"  onclick="Mostrar(\'mismo\',\'images/Bodas2.jpg\');CargarHoras(\'quinceanos\');CambiarTexto(\'Celebra este día maravilloso con elegancia, emoción, buen ritmo y sabor\',\'textoMinicuadro\')"/></td><td width="100%" style="PADDING-TOP: 3px;" class="header"><a style="cursor:pointer" class="" href="../productos.php?id=15">15 a&ntilde;os</label></td></tr><tr><td><input style="cursor:pointer" id="rdLay5Opcion2" name="Grupo2" type="radio" class="styled" onclick="Mostrar(\'mismo\',\'images/aniversario.jpg\');CargarHoras(\'aniversario\');CambiarTexto(\'Celebra con alegr&iacute;a el camino de la vida\',\'textoMinicuadro\')" /></td><td style="PADDING-TOP: 3px;" class="header"><a style="cursor:pointer" class="" href="../productos.php?id=aniversario">Aniversario</label></td></tr></table><br /></div><div style="width: 134px; text-align: center;"><div class="tabs"><div class="header" align="right" ><a class="" href="../productos.php?id=bodas">M&aacute;s...</a></div></div></div></div></td></tr></table>');
			break;
	}
	return Stringhtml.GetValue();
}

function MoverLayers(){
	try{
		showObj('LiveChatFrame');
		window.document.getElementById('LiveChatFrame').style.visibility='visible';
		window.document.getElementById('LiveChatFrame').style.left=(window.document.width- 240) +'px';
		window.document.getElementById('LiveChatFrame').style.top=(window.document.height- 230) +'px';
		window.document.getElementById('LiveChatFrame').src="livechat.htm"
	}
	catch(e){
	}
}

function getWidth(){
	var myWidth = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } else if( document.documentElement && document.documentElement.clientWidth ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  } else if( document.body && document.body.clientWidth ){
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
  return  myWidth;
}

function getHeigth() {
  var myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myHeight = window.innerHeight;
  } else if( document.documentElement && document.documentElement.clientHeight) {
    //IE 6+ in 'standards compliant mode'
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && document.body.clientHeight) {
    //IE 4 compatible
    myHeight = document.body.clientHeight;
  }
  return  myHeight;
}

function VerVideo(){
	videoActivo=true;
	window.document.getElementById('FrmVideo').innerHTML="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"559\" height=\"291\"><param name=\"movie\" value=\"../media/ayudaIndex.swf\">  <param name=quality value=high>  <embed src=\"../media/ayudaIndex.swf\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"564\" height=\"299\"></embed></object>";
}

