function OnOff(quoi)
{
if (quoi == 'F')
{
document.write("<span style='color: rgb(188,5,13);'>(offline)</span>");
}
if (quoi == 'N')
{
document.write("<span style='color: rgb(32,131,0);'>(online)</span>");
}
}
function AfficheCaml(cheminVideo)
{
//alert('chem=' + cheminVideo);
if (cheminVideo == 'D')
{
document.write('<object type="application/x-mplayer2" height="340" width="340"><param name="fileName" value="mms://plumedeville9.dyndns.org:16184"><param name="autostart" value="1"> <param name="showstatusbar" value="-1"></object>');
}
if (cheminVideo == 'L')
{
document.write('<object type="application/x-mplayer2" height="340" width="340"><param name="fileName" value="mms://192.168.1.16:8080"><param name="autostart" value="1"> <param name="showstatusbar" value="-1"></object>');
}
if (cheminVideo == 'Z')
{
document.write('<p><img style="width: 250px; height: 249px; margin-left: 150px;" alt="." src="img_09/20090213/ecr1.jpg"></p>');
//document.write("(OFFLINE)");
}
}
function Afficheimg(cheminImage,texte)
{
html = '<HTML><HEAD><TITLE>Plume de Ville</TITLE><meta http-equiv="Pragma"  content="no-cache"></HEAD><BODY   style="margin: 20px 10px 10px 0px; padding: 0pt; background-color: rgb(153,153,153);" oncontextmenu="return false"><CENTER>'+
'<a href="#" onClick="window.close()" onMouseup="window.close();"><IMG SRC="'+cheminImage+'"style="border: 3px solid rgb(102, 102, 102);" NAME="monImage" onLoad="window.resizeTo(document.monImage.width+60,document.monImage.height+70); window.moveTo((screen.width-document.monImage.width)/2,((screen.height-document.monImage.height)/2)-30);" > </a></CENTER></BODY></HTML>';
ouvrirImage = window.open('','_blank','toolbar=0,location=0,menuBar=0,scrollbars=1,resizable=0');
ouvrirImage.document.write(html);
ouvrirImage.document.close();

return;
}

function Afficheimg2(cheminImage,texte, w, h)
{
html = '<HTML><HEAD><TITLE>Plume de Ville</TITLE><meta http-equiv="Pragma"  content="no-cache"></HEAD><BODY   style="margin: 20px 10px 10px 0px; padding: 0pt; background-color: rgb(153,153,153);" oncontextmenu="return false"><CENTER>'+
'<a href="#" onClick="window.close()" onMouseup="window.close();"><IMG SRC="'+cheminImage+'"style="border: 3px solid rgb(102, 102, 102);" NAME="monImage"  > </a></CENTER></BODY></HTML>';

w=parseInt(w) + 50;
h=parseInt(h) + 50;

po="'toolbar=0,location=0,menuBar=0,scrollbars=1,resizable=1," + "width=" + w+ ",height=" +h+ "'";
//ouvrirImage = window.open('limg','_blank',po);
ouvrirImage = window.open('','_blank',po);
ouvrirImage.document.write(html);
ouvrirImage.document.close();

return ;
}




function AfficheVideoOK(cheminVideo,texte, w, h)
{
html = '<HTML><HEAD><TITLE>Plume de Ville</TITLE><meta http-equiv="Pragma"  ></HEAD><BODY   style="margin: 20px 10px 10px 0px; padding: 0pt; background-color: rgb(153,153,153);" oncontextmenu="return false"><CENTER>'+ texte + '<object id="mediaPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/fr/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" height="285" width="320">      <param name="fileName" value="' + cheminVideo+ '"><param name="animationatStart" value="true"> <param name="transparentatStart" value="false"> <param name="autoStart" value="true"> <param name="showControls" value="true"> <param name="loop" value="false"><embed type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/fr/download/" id="mediaPlayer" name="mediaPlayer" displaysize="4" autosize="-1" bgcolor="darkblue" showcontrols="true" showtracker="-1" showdisplay="0" showstatusbar="-1" videoborder3d="-1" src="' + cheminVideo + '" autostart="1" designtimesp="5311" loop="false" height="285" width="320"></object>' + '<br><a style="font-size: 9px; color: rgb(51, 51, 51);"  href="#" onClick="window.close()" onMouseup="window.close();">Fermer la fenêtre</a><br><a href="' + cheminVideo + '" style="font-size: 10px; color: rgb(0, 0, 59);" target="_blank">Ouvrir avec un autre programme.</a><p style="font-size: 9px;">Merci de patienter quelques secondes pendant le chargement...</p></CENTER></BODY></HTML>';

w=parseInt(w) + 50;
h=parseInt(h) + 50;

po="'toolbar=0,location=0,menuBar=0,scrollbars=1,resizable=1," + "width=" + w+ ",height=" +h+ "'";
//ouvrirImage = window.open('limg','_blank',po);
ouvrirImage = window.open('','_blank',po);
ouvrirImage.document.write(html);
ouvrirImage.document.close();


return ;
}



function AfficheVideo(cheminVideo,texte, w, h)
{
html = '<HTML><HEAD><TITLE>Plume de Ville</TITLE><meta http-equiv="Pragma"  ></HEAD><BODY   style="margin: 20px 10px 10px 0px; padding: 0pt; background-color: rgb(153,153,153);" oncontextmenu="return false"><CENTER>'+ texte + '<object width="320" height="285" type="application/x-mplayer2">   <param name="fileName" value="' + cheminVideo+ '"><param name="autostart" value="1"> <param name="showstatusbar" value="-1"></object>' + '<br><a style="font-size: 9px; color: rgb(51, 51, 51);"  href="#" onClick="window.close()" onMouseup="window.close();">Fermer la fenêtre</a><br><a href="' + cheminVideo + '" style="font-size: 10px; color: rgb(0, 0, 59);" target="_blank">Ouvrir avec un autre programme.</a><p style="font-size: 9px;">Merci de patienter quelques secondes...Copyright www.plume-de-ville.fr</p></CENTER></BODY></HTML>';

w=parseInt(w) + 50;
h=parseInt(h) + 50;

po="'toolbar=0,location=0,menuBar=0,scrollbars=1,resizable=1," + "width=" + w+ ",height=" +h+ "'";
//ouvrirImage = window.open('limg','_blank',po);
ouvrirImage = window.open('','_blank',po);
ouvrirImage.document.write(html);
ouvrirImage.document.close();
return ;
}

function AfficheVideom(cheminVideo,texte, w, h)
{
html = '<HTML><HEAD><TITLE>Plume de Ville</TITLE><meta http-equiv="Pragma"  ></HEAD><BODY   style="margin: 20px 10px 10px 0px; padding: 0pt; background-color: rgb(153,153,153);" oncontextmenu="return false"><CENTER>'+ texte + '<object width="352" height="328" type="application/x-mplayer2">   <param name="fileName" value="' + cheminVideo+ '"><param name="autostart" value="1"> <param name="showstatusbar" value="-1"></object>' + '<br><a style="font-size: 9px; color: rgb(51, 51, 51);"  href="#" onClick="window.close()" onMouseup="window.close();">Fermer la fenêtre</a><br><a href="' + cheminVideo + '" style="font-size: 10px; color: rgb(0, 0, 59);" target="_blank">Ouvrir avec un autre programme.</a><p style="font-size: 9px;">Merci de patienter quelques secondes...Copyright www.plume-de-ville.fr</p></CENTER></BODY></HTML>';

w=parseInt(w) + 50;
h=parseInt(h) + 50;

po="'toolbar=0,location=0,menuBar=0,scrollbars=1,resizable=1," + "width=" + w+ ",height=" +h+ "'";
//ouvrirImage = window.open('limg','_blank',po);
ouvrirImage = window.open('','_blank',po);
ouvrirImage.document.write(html);
ouvrirImage.document.close();
return ;
}
function AfficheVideoSave(cheminVideo,texte, w, h)
{
html = '<HTML><HEAD><TITLE>Plume de Ville</TITLE><meta http-equiv="Pragma"  ></HEAD><BODY   style="margin: 20px 10px 10px 0px; padding: 0pt; background-color: rgb(153,153,153);" oncontextmenu="return false"><CENTER>'+ texte + '<object width="320" height="285" type="application/x-mplayer2">   <param name="fileName" value="' + cheminVideo+ '"><param name="autostart" value="1"> <param name="showstatusbar" value="-1"></object>' + '<br><a style="font-size: 9px; color: rgb(51, 51, 51);"  href="#" onClick="window.close()" onMouseup="window.close();">Fermer la fenêtre</a><br><a href="' + cheminVideo + '" style="font-size: 10px; color: rgb(0, 0, 59);" target="_blank">Ouvrir avec un autre programme.</a><p style="font-size: 9px;">Merci de patienter quelques secondes...Copyright www.plume-de-ville.fr</p></CENTER></BODY></HTML>';

w=parseInt(w) + 50;
h=parseInt(h) + 50;

po="'toolbar=0,location=0,menuBar=0,scrollbars=1,resizable=1," + "width=" + w+ ",height=" +h+ "'";
//ouvrirImage = window.open('limg','_blank',po);
ouvrirImage = window.open('','_blank',po);
ouvrirImage.document.write(html);
ouvrirImage.document.close();
return ;
}
function AfficheVideog(cheminVideo,texte, w, h)
{
html = '<HTML><HEAD><TITLE>Plume de Ville</TITLE><meta http-equiv="Pragma"  ></HEAD><BODY   style="margin: 20px 10px 10px 0px; padding: 0pt; background-color: rgb(153,153,153);" oncontextmenu="return false"><CENTER>'+ texte + '<object width="640" height="525" type="application/x-mplayer2">   <param name="fileName" value="' + cheminVideo+ '"><param name="autostart" value="1"> <param name="showstatusbar" value="-1"></object>' + '<br><a style="font-size: 9px; color: rgb(51, 51, 51);"  href="#" onClick="window.close()" onMouseup="window.close();">Fermer la fenêtre</a><br><a href="' + cheminVideo + '" style="font-size: 10px; color: rgb(0, 0, 59);" target="_blank">Ouvrir avec un autre programme.</a><p style="font-size: 9px;">Merci de patienter quelques secondes...Copyright www.plume-de-ville.fr</p></CENTER></BODY></HTML>';

w=parseInt(w) + 50;
h=parseInt(h) + 50;

po="'toolbar=0,location=0,menuBar=0,scrollbars=1,resizable=1," + "width=" + w+ ",height=" +h+ "'";
//ouvrirImage = window.open('limg','_blank',po);
ouvrirImage = window.open('','_blank',po);
ouvrirImage.document.write(html);
ouvrirImage.document.close();
return ;
}
function AfficheVideogr(cheminVideo,texte, w, h)
{
html = '<HTML><HEAD><TITLE>Plume de Ville</TITLE><meta http-equiv="Pragma"  ></HEAD><BODY   style="margin: 20px 10px 10px 0px; padding: 0pt; background-color: rgb(153,153,153);" oncontextmenu="return false"><CENTER>'+ texte + '<object width="640" height="525" type="application/x-mplayer2">   <param name="fileName" value="' + cheminVideo+ '"><param name="autostart" value="1"> <param name="showstatusbar" value="-1"></object>' + '<br><a style="font-size: 9px; color: rgb(51, 51, 51);"  href="#" onClick="window.close()" onMouseup="window.close();">Fermer la fenêtre</a><br><a href="' + cheminVideo + '" style="font-size: 10px; color: rgb(0, 0, 59);" target="_blank">Ouvrir avec un autre programme.</a><p style="font-size: 9px;">Merci de patienter quelques secondes...Copyright www.plume-de-ville.fr</p></CENTER></BODY></HTML>';

w=parseInt(w) + 50;
h=parseInt(h) + 150;

po="'toolbar=0,location=0,menuBar=0,scrollbars=1,resizable=1," + "width=" + w+ ",height=" +h+ "'";
//ouvrirImage = window.open('limg','_blank',po);
ouvrirImage = window.open('','_blank',po);
ouvrirImage.document.write(html);
ouvrirImage.document.close();
return ;
}
function AfficheimgZ(cheminImage,texte, w, h)
{
return;
}
function AfficheMms(cheminVideo,texte, w, h)
{
html = '<HTML><HEAD><TITLE>Plume de Ville</TITLE><meta http-equiv="Pragma"  ></HEAD><BODY   style="margin: 20px 10px 10px 0px; padding: 0pt; background-color: rgb(153,153,153);" oncontextmenu="return false"><CENTER>'+ texte + '<object width="320" height="285" type="application/x-mplayer2">   <param name="fileName" value="' + cheminVideo+ '"><param name="autostart" value="1"> <param name="showstatusbar" value="-1"></object>' + '<br><a style="font-size: 9px; color: rgb(51, 51, 51);"  href="#" onClick="window.close()" onMouseup="window.close();">Fermer la fenêtre</a><br><a href="' + cheminVideo + '" style="font-size: 10px; color: rgb(0, 0, 59);" target="_blank">Ouvrir avec un autre programme.</a><p style="font-size: 9px;">Merci de patienter quelques secondes pendant le chargement...</p></CENTER></BODY></HTML>';

w=parseInt(w) + 50;
h=parseInt(h) + 50;

po="'toolbar=0,location=0,menuBar=0,scrollbars=1,resizable=1," + "width=" + w+ ",height=" +h+ "'";
//ouvrirImage = window.open('limg','_blank',po);
ouvrirImage = window.open('','_blank',po);
ouvrirImage.document.write(html);
ouvrirImage.document.close();
return ;
}