function ActivarFlashHotel(sys_lang,sys_pais){
document.write('<object>\n');
document.write('<embed src="/img/'+sys_lang+'/'+sys_pais+'/460X60_reserva.swf" width="460" height="60"  bgcolor="#ffffff">\n');
document.write('</embed>\n');
document.write('</object>\n');
}

function ActivarFlash(){
document.write('<object>\n');
document.write('<embed src="/img/banner460X60reservas.swf" width="460" height="60"  bgcolor="#ffffff">\n');
document.write('</embed>\n');
document.write('</object>\n');
}


/*
    Functions useful for Conectu key development
    August 2003, Temuco - Chile
*/


if (window != top) { top.location.href = location.href; }


/* This one tries to avoid the spammer's software that collects emails from web pages */
/* Usage: fckd_mail('webmaster','conectu','com' [,'alt text']) */
function fckd_mail() { a0=arguments[0]; a1=arguments[1]; a2=arguments[2]; a3=arguments[3]; mail_unfckd=a0+'@'+a1+'.'+a2; a3=(typeof(a3)=='undefined')?mail_unfckd:a3; document.write('<a href="mailto:'+mail_unfckd+'">'+a3+'<\/a>'); }


function fckd_flash(file, width, height){
txt = '<object data="'+ file +'" type="application/x-shockwave-flash" '
+ 'width="'+ width +'" height="'+ height +'" > '
+ '<param name="quality" value="high" /><param name="menu" value="false" /><param name="bgcolor" value="#FFFFFF" /> '
+ '<param name="movie" value="'+ file +'" /> '
+ '</object> ';
document.write(txt);
}


//    Cambia de página
function nodo(id) {
    url = sys_lang+"_turismo.php?id_nodo=" + (id*1) ;
    document.location.href = url;
}

function nodo_cambiar_estado(name){
    if (document.getElementById) {
        myDiv = document.getElementById(name);
        BotonDiv = document.getElementById('Boton'+name);
        eval ('nodo_mostrar = !nodo_mostrar_' + name +';');
        eval ('nodo_mostrar_' + name +' = nodo_mostrar;');
        if (nodo_mostrar) {
            eval ('txt = Boton' + name +'_txt_1;');
            BotonDiv.innerHTML = txt;
            div_visibility(1,name);
            session.setSubValue(name, 1);
        }
        else {
            eval ('txt = Boton' + name +'_txt_0;');
            BotonDiv.innerHTML = txt;
            div_visibility(0,name);
            session.setSubValue(name, 0);
        }
    }
    return false;
}


//    Usará un sniffer para hacerlo compatible
function div_visibility(val,div) {
    // Mostrar
    if (val != '0') { SetPropCompatible(div, 'display', 'block'); }
    // Ocultar
    else { SetPropCompatible(div, 'display', 'none'); }
}


function SetPropCompatible (id, prop, valor) {
    if (document.getElementById){
        myDiv = document.getElementById(id);
        eval ('myDiv.style.'+ prop +' = "'+ valor +'";');
    }
}
function encabezado_flash(file, width, height){
    txt = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+ width +'" height="'+ height +'" > '
    + '<param name="quality" value="high" /> '
    + '<param name="movie" value="'+ file +'" /> '
    + '<embed src="'+ file +'" width="'+ width +'" height="'+ height +'" ></embed> '
    + '</object> ';
    document.write(txt);

}
function banner(){
document.write('<script language="JavaScript1.1" type="text/javascript" src="http://ads.us.e-planning.net/eb/3/3724/1606c535ae1ab745?o=j&rnd=' + rnd + '"></script>');
}
