
// -----------------------------------------------------------------------------
// Función encargada de Pasar como parámetro el xml
function ChangeDatosFotorama(xml, tipo, ratio, thisid, aid, path, tit, ssttipo, horfec, hfclass) {

    // Ahora siempre se cambia la url
    if(thisid > 20111123142500) {
        var fechac = thisid.substr(0, 8);
        window.location.href="/prontus_nots/site/artic/" + fechac+ "/pags/" + thisid + ".html";
    } else {
        window.location.href="/prontus_nots/site/edic/base/port/fotos.html?_ts="+thisid;
    }
    return;
};

// -----------------------------------------------------------------------------
// Función encargada de Pasar como parámetro los valores al Flash de Video
function ChangeDatosPlayerVideo(xml, wvideo, hvideo, thisid, aid, path, tit, ssttipo, horfec, hfclass) {

    // Ahora siempre se cambia la url
    window.location.href="/prontus_media/site/edic/base/port/videos.html?_ts="+thisid;
    return;
};

// -----------------------------------------------------------------------------
// Función encargada de Pasar como parámetro el xml al Flash de Audio
function ChangeDatosPlayerAudio(xml, thisid, img, wimg, himg, aid, path, tit, ssttipo, horfec, hfclass) {

    // Ahora siempre se cambia la url
    window.location.href="/prontus_media/site/edic/base/port/audios.html?_ts="+thisid;
    return;
};

// -----------------------------------------------------------------------------
// Función encargada de Pasar como parámetro el xml al Flash de Multimedia
function ChangeDatosMultimedia(xml, wswf, hswf, thisid, aid, path, tit, ssttipo, horfec, hfclass) {

    // Ahora siempre se cambia la url
    window.location.href="/prontus_media/site/edic/base/port/multimedia.html?_ts="+thisid;
    return;
};


// -----------------------------------------------------------------------------
// Función encargada de encontrar el objeto Flash
function getFlashMovieObject(movieName) {

    if (window.document[movieName]) {
        return window.document[movieName];
    };
    if (navigator.appName.indexOf("Microsoft Internet")==-1) {
        if (document.embeds && document.embeds[movieName])
            return document.embeds[movieName];
    } else {
        return document.getElementById(movieName);
    };
};

// -----------------------------------------------------------------------------
// Para la detección específica de Browser sobre redimensionar el Object
// Sólo válida para estas funciones de
function isGoodBrowser() {

    if(navigator.userAgent.indexOf('MSIE')!=-1) {
        // Very Bad Browser...
        return false;
    } else if(navigator.userAgent.indexOf('Gecko')!=-1) {
        // Super "Wen" Browser...
        if(navigator.userAgent.indexOf('Firefox')!=-1) {
            return true;
        } else {
            return false;
        };
    } else if(navigator.userAgent.indexOf('Opera')!=-1) {
        if(parseInt(navigator.appVersion ) >= 9) {
            return true;
        } else {
            return false;
        };
    } else {
        // Browser Desconocido
        return false;
    };
    // Por si las moscas
    return false;
};

