function openPopup(theURL,winName,features) {
	try {	w=window.open(theURL,winName,features);	}
	catch(err) { }//window.location.href="/nopopup.php";	document.write("Bloqueur de pop-up activé ! Merci de la paramètrer !"+err);
	if(w==null)	alert("Bloqueur de pop-up activé ! Merci de la paramètrer !");
	}
//javascript:openPopup('http://broadcast.infomaniak.ch/radios/judaica_player.html','Live','scrollbars=no,width=468,height=100')"
//http://broadcast.infomaniak.ch/judaica-high.mp3
var playing="false";
/* Flash Methods */ 
function resize(x,y,layer,style){x=x*(screen.width/1024);y=y*(screen.height/768);
document.write('<div class="'+style+'" style="position: absolute; top:'+y+'px; left: '+x+'px;z-index: '+layer+'">');}
function reflash(src,x,y){x=x*(screen.width/1024);y=y*(screen.height/768);flash(src,x,y);}
function flash(src,x,y,id){if (id==""){id="null";}//ID ET NAME POUR FONCTIONS FSCOMMAND !!!
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+x+'" height="'+y+'" ID="'+id+'" name="'+id+'"><param name="movie" value="'+src+'"><param name="quality" value="auto-high"><param name="wmode" value="transparent"><embed src="'+src+'" quality="auto-high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+x+'" height="'+y+'" wmode="transparent" name="'+id+'" id="'+id+'" swLiveConnect="true" allowscriptaccess="always"></object>');}

function keyflash(src,x,y,id){if (id==""){id="null";}//ID ET NAME POUR FONCTIONS FSCOMMAND !!!
{document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+x+'" height="'+y+'" ID="'+id+'" name="'+id+'"><param name="movie" value="'+src+'"><param name="quality" value="auto-high"><embed src="'+src+'" quality="auto-high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+x+'" height="'+y+'" name="'+id+'" id="'+id+'" swLiveConnect="true" allowscriptaccess="always"></object>');}}

if (parent.frames.length >1){ document.location.href = '/'; } 
function rand_number(n)
{var x;x=Math.round(Math.random()*100);x%=n;return x;}
function remplacer(element)
  {
	  text='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="120" height="160"><param name="movie" value="'+root+'/teasings/'+rand_number(36)+'.swf"><param name="quality" value="high"><param name="wmode" value="transparent"><embed src="'+root+'/teasings/'+rand_number(36)+'.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="120" height="160" wmode="transparent"></object>'
	  document.getElementById(element).innerHTML = text;}
function surligner(element,text,timeout)
	{document.getElementById(element).innerHTML = text;}
function quicktime(source)
	{
		document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0" width="200" height="16"><param name="TYPE" value="video/quicktime"><param name="SRC" value="'+source+'"><param name="CONTROLLER" value="TRUE"><param name="AUTOPLAY" value="false"><embed src="'+source+'" type="video/quicktime" bgcolor="#FFFFFF" border="0" frameborder="no" palette="foreground"  autoplay="false" repeat ="false" width="200" height="16" pluginspace="http://www.apple.com/quicktime/download/indext.html" title="heu"></embed><noembed>requiert quicktime afin d\'être vu</noembed></object>');
	}
function description(text)
	{	text=''+toHTML(text)+'';
		document.getElementById('description').innerHTML = "Description du programme : <br><blockquote>"+text+"</blockquote>";
	}
function highlight(theme){
	//document.getElementByTagName('div')[0].onmouseover=this.bgColor= // and then I'd have whatever bgColor value I need.
		document.getElementById(theme).bgColor='#FF0000';}
//Flemme - Sert à rien comme Flo - To drunk to f***
/*function replace(string,text,by) {
// Replaces text with by in string
    var strLength = string.length, txtLength = text.length;
    if ((strLength == 0) || (txtLength == 0)) return string;
    var i = string.indexOf(text);
    if ((!i) && (text != string.substring(0,txtLength))) return string;
    if (i == -1) return string;
    var newstr = string.substring(0,i) + by;
    if (i+txtLength < strLength)
        newstr += replace(string.substring(i+txtLength,strLength),text,by);
    return newstr;
}
*///BenLib
//-->
function day_sel(day){
day=arrange(day);
chaine='<option>01</option><option>02</option><option>03</option><option>04</option><option>05</option><option>06</option><option>07</option><option>08</option><option>09</option><option>10</option><option>11</option><option>12</option><option>13</option><option>14</option><option>15</option><option>16</option><option>17</option><option>18</option><option>19</option><option>20</option><option>21</option><option>22</option><option>23</option><option>24</option><option>25</option><option>26</option><option>27</option><option>28</option><option>29</option><option>30</option><option>31</option></select>';
repldate(chaine,day);}
function month_sel(month){
month=arrange(month);
chaine='<option>01</option><option>02</option><option>03</option><option>04</option><option>05</option><option>06</option><option>07</option><option>08</option><option>09</option><option>10</option><option>11</option><option>12</option></select>';
repldate(chaine,month);}
function year_sel(year){
chaine='<option>2006</option><option>2007</option><option>2008</option><option>2009</option></select>';repldate(chaine,year);}
function arrange(arg){ if (arg<10) return "0"+arg; else return arg;}
function theme_sel(theme){
chaine='<option></option><option>info</option><option>music</option><option>culture</option><option>thema</option><option>religio</option></select>';
repldate(chaine,theme);}
function repldate(chaine,element){//selectionne element en paramètre
document.write(chaine.replace('>'+element+'</option>',' selected='+element+'>'+element+'</option>'));}
function heure(heu){
chaine='<select name="heure"><option>00</option><option>01</option><option>02</option><option>03</option><option>04</option><option>05</option><option>06</option><option>07</option><option>08</option><option>09</option><option>10</option><option>11</option><option>12</option><option>13</option><option>14</option><option>15</option><option>16</option><option>17</option><option>18</option><option>19</option><option>20</option><option>21</option><option>22</option><option>23</option></select>';
repldate(chaine,heu);
}
function minute(min){
chaine='<select name="minute"><option>00</option><option>05</option><option>10</option><option>15</option><option>20</option><option>25</option><option>30</option><option>35</option><option>40</option><option>45</option><option>50</option><option>55</option></select>';
repldate(chaine,min);
}
function suppress(url){if(confirm("Etes-vous sur de vouloir supprimer ces horaires ?")) 
{window.location.replace(url);}return false;}