// audio_PB_visorMM01.js
// $Revision: 1.0 $
// $Date: 2008/06/03  14:00 $
// Reproductor-Visor Multimedia derivado de iespbMMplayer v0.0.8r2
// Con ideas de WipiX, visor de imágenes apoyado en X 
// X a Cross-Browser.com Javascript Library
// Copyright (C)2001-2006 Michael Foster - Distributed under the terms of
// the GNU LGPL) 

// Reproduce desde PB_TV videos FLV del Centro publicados en mediateca.educa.madrid.org

var windowNote;
var text;
//var path;


function showMedia(title, message, aspect, media, type, colorBack, back, path, textColor, typeFont, sizeFont) {

/*
text += '<SCRIPT type=text/javascript>';  
//text += 'if ( path == "") path = "../"';

text += 'if (path == "") path = "../../";';
text += '    </SCRIPT>';
*/

 windowNote = window.open('','Note','toolbar=no,location=no,directories=no,status=yes,scrollbars=no, resizable=yes,copyhistory=no,' + 'width=498' + ',height=409');
  text = '<' + 'HTML' + '><' + 'HEAD' + '><meta name="generator" content="PB_visorMM01.js, vea www.iespuertabonita.com" \/><' + 'TITLE' + '>IES Puerta Bonita (Reproductor-Visor Multimedia) - ' + title + '<\/' + 'TITLE' + '>';

/*
text += '<LINK href="' + path + 'acc_js\/x\/_wipix.css" type=text\/css rel=stylesheet>';
*/

text += '<style type="text/css">';

text += '#container { BORDER-RIGHT: #5d6b78 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: #5d6b78 1px solid; PADDING-LEFT: 10px; Z-INDEX: 100; LEFT: 0px; VISIBILITY: hidden; PADDING-BOTTOM: 15px; MARGIN: 10px; BORDER-LEFT: #5d6b78 1px solid; WIDTH: 0px; PADDING-TOP: 10px; BORDER-BOTTOM: #5d6b78 1px solid; POSITION: absolute; TOP: 0px; HEIGHT: 0px; BACKGROUND-COLOR: #f7f7fc }';

text += '#footer { PADDING-RIGHT: 2px;  PADDING-LEFT: 21px; FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif; FONT-SIZE: 10px; Z-INDEX: 200; VISIBILITY: hidden; PADDING-BOTTOM: 2px; PADDING-TOP: 2px; POSITION: absolute;  TEXT-ALIGN: left }';

text += '#cimg { BORDER-RIGHT: #2e353c 1px dotted; PADDING-RIGHT: 0px; BORDER-TOP: #2e353c 1px dotted; PADDING-LEFT: 0px; Z-INDEX: 100; PADDING-BOTTOM: 0px; MARGIN: 0px; BORDER-LEFT: #2e353c 1px dotted; PADDING-TOP: 0px; BORDER-BOTTOM: #2e353c 1px dotted; POSITION: absolute; BACKGROUND-COLOR: white }';

text += '#waiter { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; Z-INDEX: 10000; LEFT: 50%; PADDING-BOTTOM: 0px; MARGIN: 100px 0px 0px -200px; WIDTH: 400px; PADDING-TOP: 0px; POSITION: absolute; HEIGHT: 100px; BACKGROUND-COLOR: white }';

text += '#wContent { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; Z-INDEX: 10000; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 100%; PADDING-TOP: 0px; POSITION: relative; TEXT-ALIGN: center }';


text += '</style>';





text += '<SCRIPT language=JavaScript src="' + path + 'acc_js\/x_core.js" type=text\/javascript> <\/SCRIPT>';

text += '<SCRIPT language=JavaScript src="' + path + 'acc_js\/x_event.js" type=text\/javascript> <\/SCRIPT>';

/*
text += '<br><SCRIPT language=JavaScript src="' + path + 'acc_js\/x\/_functions.js" type=text\/javascript> <\/SCRIPT>';
*/
text += '<SCRIPT type=text/javascript>';
text += 'function setContents() {';
  
text += '  xHeight("container", (xClientHeight() - 20));';
text += '  xWidth("container", (xClientWidth() - 20));';

text += '  xWidth("footer", xClientWidth());';
text += '  xMoveTo("footer", 0, (xClientHeight() - 26));';
  
text += '      }';
text += '    </SCRIPT>';

/*
text += '<SCRIPT language=JavaScript src="' + path + 'acc_js\/x\/_photo.js" type=text\/javascript> <\/SCRIPT>';
*/


text += '<SCRIPT type=text/javascript>';
text += 'function pInit() { ';

text += '  pResizer();';
text += '  xAddEventListener(window, "resize", pResizer, false);';
text += '}';


text += 'function pResizer() { ';
text += '  if(document.all) {';
text += '    window.resizeEnd = (window.resizeEnd ==null)?(new Object()):window.resizeEnd;';
text += '    clearTimeout(window.resizeEnd);';
text += '    window.resizeEnd = setTimeout(pSizer,1);';
text += '  }';
text += '  else {';
text += '    pSizer();';
text += '  }';
text += '}';

text += 'function pSizer() {';
  
text += '  setContents();';

text += '  xShow("container");';

text += '  xShow("footer");';

text += '  xHide("waiter");';

text += '      }';
text += '    </SCRIPT>';




text += '<SCRIPT type=text/javascript>';
text += '      window.onload = function()';
text += '      {';
text += '        if (window.pInit) window.pInit();';
 
text += '      }';
text += '    </SCRIPT>';

text += '<' + '/HEAD' + '><' + 'BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" BACKGROUND=' + '"' + back + '"' + ' BGCOLOR=' + '"' + colorBack + '">';
text += '<DIV id=waiter>';
text += '<DIV id=wContent><IMG height=20 alt="..." src="' + path + 'acc_topo\/cargando.gif" width=148><BR><BR><IMG height=55 alt="IES Puerta Bonita" src="' + path + 'acc_logo/logo_pie_t_ies.gif" width=199>';
text += '<\/DIV><\/DIV>';

text += '<DIV id=container>';



text += '<DIV id=cimag align="center">';

//
/*
text += '<img align="midle" src=".\/_6_pb_r.gif" '+ aspect +'="90%"  alt="'+ message +'">';

text += '<br \/>';
*/
//text += '<DIV id=cimag>';
//text += '<DIV id=image>';
/*text += '<img align="midle" src="'+ media +'" '+ aspect +'="100%"  alt="'+ message +'">';
*/
//


/*


text += '<object type="application\/x-shockwave-flash" data="'+ media +'" width="100%" height="100%">';



text += '<param name="movie" value="'+ media +'" \/>';

text += '<img src=".\/ico_flash.gif" width="18" height="18" alt="ˇ" \/>';

text += '<a href="http:\/\/www.macromedia.com\/go\/getflashplayer" target="_blank">Descargar Flash Player';

text += '<\/a>';

text += '<\/object>';

*/


text += '<embed src="http://mediateca.educa.madrid.org/reproductor/flvplayer.swf" width="100%" height="100%" bgcolor="#FFFFFF" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=http://mediateca.educa.madrid.org/videos/publico.flv.php?id_video='+ media +'&showdigits=true&autostart=true&showfsbutton=false&fullscreenmode=false&fullscreenpage=http://mediateca.educa.madrid.org/reproducir.php?id_video='+ media +'" \/>';

text += '<\/embed>';






//

/*
text += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="100%" id="dewplayer" align="middle">';

text += '<param name="allowScriptAccess" value="sameDomain" \/>';

text += '<param name="movie" value="'+ media +'" \/>';

text += '<param name="quality" value="high" \/>';
text += '<param name="bgcolor" value="FFFFFF" \/>';

text += '<embed src="'+ media +'" quality="high" bgcolor="FFFFFF" width="100%" height="100%" name="dewplayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
text += '<\/embed>';

text += '<img src=".\/Flash.gif" width="18" height="18" alt="ˇ" \/>';
text += '<a href="http:\/\/www.macromedia.com\/go\/getflashplayer" target="_blank">Descargar Flash Player';
text += '<\/a>';

text += '<\/object>';
*/


 text += '<\/DIV>';
text += '<\/DIV>';

text += '<DIV id=footer>';

text += '<IMG height=8 alt="ˇ" src="' + path + 'acc_topo/sq548bb2.gif" width=8> ';
text +=  message ;
 text += '<\/DIV>';


  text += '<\/DIV>';
text +=  '<\/' + 'BODY' + '><' + '/HTML' + '>';


  windowNote.document.write(text);
  windowNote.focus();
  windowNote.document.close();
  return false;
}
	