// visor008r2
// $Revision: 2.1 $
// $Date: 2004/12/16  18:15 $
// iespbMMplayer v0.0.8r2
// add function showPDF()
// Jose Canovas para IES Puerta Bonita

var windowNote;
var text;
function showMedia(title, message, aspect, media, type, colorBack, back, banner, textColor, typeFont, sizeFont) {
  windowNote = window.open('','Note','toolbar=no,location=no,directories=no,status=yes,scrollbars=no, resizable=yes,copyhistory=no,' + 'width=310' + ',height=214');
  text = '<' + 'HTML' + '><' + 'HEAD' + '><meta name="generator" content="iespbMMplayer v0.0.8r2 (iespbMMplayer0008r2.js), vea www.iespuertabonita.com" \/><' + 'TITLE' + '>IES Puerta Bonita (Visor Multimedia) - ' + title + '<\/' + 'TITLE' + '><' + '/HEAD' + '><' + 'BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" BACKGROUND=' + '"' + back + '"' + ' BGCOLOR=' + '"' + colorBack + '">';


text += '<table summary="Equipos e Instalaciones" width="100%" height="100%" border="0" cellspacing="0">';
text += '  <tr>';
text += '    <td bgcolor="#FF0000">&nbsp;</td>';
text += '    <td bgcolor="#bbbbbb">&nbsp;</td>';

text += '     <td bgcolor="#bbbbbb" height="20">';
  text +='<FONT FACE="' + typeFont +'"';
  text += ' SIZE=' + sizeFont; 
  text += ' COLOR=' + '"' + textColor +'"><b>';
  text += message + '<\/b><\/FONT>';
text += '     </td>';

text += '    <td bgcolor="#bbbbbb">&nbsp;</td>';
text += '    <td bgcolor="#bbbbbb">&nbsp;</td>';
text += '  </tr>';
text += '  <tr>';
text += '    <td bgcolor="#FF0000">&nbsp;</td>';
text += '    <td bgcolor="#eeeeee">&nbsp;</td>';
text += '    <td bgcolor="#eeeeee" height="100%"><img align="midle" src="'+ media +'" '+ aspect +'="100%" alt="'+ message +'"></td>';
text += '    <td bgcolor="#eeeeee">&nbsp;</td>';
text += '    <td bgcolor="#eeeeee">&nbsp;</td>';
text += '  </tr>';
//text += '  <tr>';
//text += '    <td bgcolor="#bbbbbb"></td>';
//text += '    <td bgcolor="#bbbbbb">&nbsp;</td>';
//text += '    <td bgcolor="#FF0000">&nbsp;</td>';
//text += '    <td bgcolor="#bbbbbb">&nbsp;</td>';
//text += '  </tr>';
text += '</table>';
  
text +=  '<\/' + 'BODY' + '><' + '/HTML' + '>';


  windowNote.document.write(text);
  windowNote.focus();
  windowNote.document.close();
  return false;
}
	
function showPDF(title, message, aspect, media, type, colorBack, back, banner, textColor, typeFont, sizeFont) {
  windowNote = window.open('','Note','toolbar=no,location=no,directories=no,status=yes,scrollbars=no, resizable=yes,copyhistory=no,' + 'width=310' + ',height=214');
  text = '<' + 'HTML' + '><' + 'HEAD' + '><meta name="generator" content="iespbMMplayer v0.0.8r2 (iespbMMplayer0008r2.js), vea www.iespuertabonita.com" \/><' + 'TITLE' + '>IES Puerta Bonita (Visor Multimedia) - ' + title + '<\/' + 'TITLE' + '><' + '/HEAD' + '><' + 'BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" BACKGROUND=' + '"' + back + '"' + ' BGCOLOR=' + '"' + colorBack + '">';

text += '<table summary="PDF" width="100%" height="100%" border="0" cellspacing="0">';
text += '  <tr>';
text += '     <td bgcolor="#bbbbbb" height="20">';
  text +='<FONT FACE="' + typeFont +'"';
  text += ' SIZE=' + sizeFont; 
  text += ' COLOR=' + '"' + textColor +'"><b>';
  text +='&nbsp;' + message + '<\/b><\/FONT>';
text += '     </td>';
text += '  </tr>';
text += '  <tr>';
text += '    <td bgcolor="#eeeeee" height="100%"><embed src="'+ media +'" width="100%" height="100%"></embed></td>';
text += '  </tr>';
text += '</table>';
text +=  '<\/' + 'BODY' + '><' + '/HTML' + '>';


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

