// JavaScript Document

<!--

 function abreVentana(url,nombreVentana,propiedades) {
    window.open(url,nombreVentana,propiedades);
 }
function popupwindow(index){
if(index==101)
{
site="solicitar_info.htm" 
window.open(site,"newwindow1","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=1,width=447,height=271")
}

if(index==10)
{
site="calculadora_hipoteca.htm" 
window.open(site,"newwindow6","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=1,width=379,height=204")
}

if(index==1)
{
site="utilidades/solicitar_info.htm" 
window.open(site,"newwindow10","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=1,width=444,height=293")
}

}


function agregar(){
if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) {
var url=window.location
var titulo=window.document.title

window.external.AddFavorite(url,titulo);
}
else {
if(navigator.appName == "Netscape") 
alert ("Presione Crtl+D para agregar este sitio en sus Bookmarks");
}
}
function pagina_inicio() 
{ 
obj_pagina_inicio.style.behavior='url(#default#homepage)';
obj_pagina_inicio.setHomePage("http://www.hogarcasa.com"); // colocando aquí vuestra dirección
}

var ventana;
var cont=0;
var win;

function mostrarimagen(url_imagen,titulo){
if(cont==1){win.close();win=null}
 	var img = new Image();
 	img.src = url_imagen;
	win=window.open('','ventana','height='+img.height+' width='+img.width+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
	win.document.writeln ('<html>');
	win.document.writeln (' <head>');
	win.document.writeln ('  <title>'+titulo+'</title>');
	win.document.writeln (' </head>');
	win.document.writeln (' <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onUnload="opener.cont=0">');
	win.document.writeln ('  <img src="' + url_imagen + '" onLoad="opener.redimensionar(this.width, this.height)">');
	win.document.writeln (' </body>');
	win.document.writeln ('</html>');
	win.document.close();
	cont++;	
}

function redimensionar(ancho, alto)
{
win.resizeTo(ancho+10,alto+28);
//win.moveTo((screen.width-ancho)/2,(screen.height-alto)/2);
}


//-->
