function Videos(Page)
// Ouvre une page adaptee a la hauteur du contenu de la fenetre
// 'Page' doit inclure le suffixe (.html ou autre)
{
if (parent.frames["menu_bas"].window.innerHeight>665)
{
parent.frames["menu_bas"].window.location.href='http://www.bernardwerber.com/videos/'+Page;
}
else
{
myVideosWindow = window.open ('http://www.bernardwerber.com/videos/'+Page,"videos","toolbar=no,location=no,directories=no,menubar=yes,status=no,scrollbars=no,resizable=yes,width=1000,height=675");
myVideosWindow.window.focus();
}
}



function PopUp(Dossier,Page,largeur,hauteur)
// passer "no" ˆ 'Dossier' si URL sans dossier. Si plusieurs dossiers, entrer les dossiers separes par un "/"
// 'Page' doit etre transmis sans suffixe (fonction pour pages html uniquement)
{
if (Dossier!='no')
{
myPopUp = window.open ('http://www.bernardwerber.com/'+Dossier+'/'+Page+'.html',Page,"toolbar=no,location=no,directories=no,menubar=yes,status=no,scrollbars=no,resizable=no,width="+largeur+",height="+hauteur);
myPopUp.window.focus();
}
else
{
myPopUp = window.open ('http://www.bernardwerber.com/'+Page+'.html',Page,"toolbar=no,location=no,directories=no,menubar=yes,status=no,scrollbars=no,resizable=no,width"+largeur+",height="+hauteur);
myPopUp.window.focus();
}
}


function PopUp2(Url,largeur,hauteur)
// 'Url' doit etre transmis sans slash final
{
if (Url=='')
{
Url = 'http://www.bernardwerber.com';
}
myPopUp = window.open (Url,"Page","toolbar=no,location=no,directories=no,menubar=yes,status=no,scrollbars=no,resizable=yes,width="+largeur+",height="+hauteur);
myPopUp.window.focus();
}



function EcrireCookie(nom, valeur)
{
var argv=EcrireCookie.arguments;
var argc=EcrireCookie.arguments.length;
var expires=(argc > 2) ? argv[2] : null;
var path=(argc > 3) ? argv[3] : null;
var domain=(argc > 4) ? argv[4] : null;
var secure=(argc > 5) ? argv[5] : false;
document.cookie=nom+"="+escape(valeur)+
((expires==null) ? "" : ("; expires="+expires.toGMTString()))+
((path==null) ? "" : ("; path="+path))+
((domain==null) ? "" : ("; domain="+domain))+
((secure==true) ? "; secure" : "");
}
