
// -----------------------------------------------
// Para insertar los fotoramas del mediacenter
//  xml:    Ruta al Xml con los datos
//  tipo:   Tipo de fotorama, puede ser video o foto
//  leng:   Lenguaje, para los labels dentro del Fotorama
//  theid:  ID donde se insertará el Flash
function ifaceInsertarFotorama(xml, tipo, leng, theid) {

    var swf = '/prontus_minrel/flash/_Fotorama.swf';
    var wswf = 243;
    var hswf = 320;
    var pvideo = '/prontus_minrel/flash/_PlayerVideo.swf';
    var pfoto = '/prontus_minrel/flash/_PlayerFoto.swf';

    var flashvars = {};
    flashvars.xml = xml;
    flashvars.urlVideo = pvideo;
    flashvars.urlFoto = pfoto;
    flashvars.tipo =  tipo;
    flashvars.leng =  leng;

    var params = {};
    var attributes = {};

    swfobject.embedSWF(swf, theid, wswf, hswf, "8.0.0", "", flashvars, params, attributes);

//    var playerVersion = swfobject.getFlashPlayerVersion(); // returns a JavaScript object
//	var output = "You have Flash player " + playerVersion.major + "." + playerVersion.minor + "." + playerVersion.release + " installed";
//    alert(output);

};