// initialise plugins
jQuery(function(){
    jQuery('ul.sf-menu').superfish();
});

// Boton para agragar a Favoritos nuestra pagina web, sacado de ComoCrearUnSitioWeb.com

function agregar(){
//Para internet explorer
if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) {
    var url="http://www.gaes.es/"; //Cambia esta dirección por la de tu web
    var titulo="Gaes"; //Cambia el titulo por el de tu web
    window.external.AddFavorite(url,titulo);
}
//Para Netscape y Firefox
else {
    if(navigator.appName == "Netscape")
        alert ("Presione Ctrl+D para agregar esta pagina en sus Marcadores");  //Puedes personalizar este mensaje
    }
}

function seleccionarProvincias(que)
{
    document.getElementById('provincia').disabled = 'disable';
    document.getElementById('provinciaTQ').disabled = 'disable';
    
    document.getElementById('provinciaNONE').style.display = 'none';
    document.getElementById('provincia').style.display = 'none';
    document.getElementById('provinciaTQ').style.display = 'none';
    
    if (que == 'ES') {
        document.getElementById('provincia').disabled = '';
        document.getElementById('provincia').style.display = 'block';
        url = '/es/default.asp?idSeccion=conozca_gaes_donde_ficha';
    } else {
        if(que == 'TQ') {
            document.getElementById('provinciaTQ').disabled = '';
            document.getElementById('provinciaTQ').style.display = 'block';
            url = '/es/default.asp?idSeccion=conozca_gaes_donde_ficha_internacional_turquia';
        } else if(que == 'AR') {
            url = '/es/default.asp?idSeccion=conozca_gaes_donde_ficha_internacional_argentina';
        } else if(que == 'CL') {
            url = '/es/default.asp?idSeccion=conozca_gaes_donde_ficha_internacional_chile';
        } else if(que == 'PT') {
            url = '/es/default.asp?idSeccion=conozca_gaes_donde_ficha_internacional_portugal';
        }
    }
    try {
        document.getElementById('encuentrenosInt').action = url;
    } catch(e) {
    }
    try {
        document.getElementById('encuentrenos').action = url;
    } catch(e) {
    }
}
