if (top.frames.length!=0)
top.location=self.document.location;


navvers = navigator.appVersion.substring(0,1);
if (navvers > 3)
	navok = true;
else
	navok = false;

function Semaine(){
this[0] = "dimanche"; this[1] = "lundi";
this[2] = "mardi"; this[3] = "mercredi";
this[4] = "jeudi"; this[5] = "vendredi";
this[6] = "samedi";
}

function Mois(){
this[0] = "janvier"; this[1] = "f&eacute;vrier";
this[2] = "mars"; this[3] = "avril";
this[4] = "mai"; this[5] = "Juin";
this[6] = "juillet"; this[7] = "ao&ucirc;t";
this[8] = "septembre"; this[9] = "octobre";
this[10] = "novembre"; this[11] = "d&eacute;cembre";
}
today = new Date;
function date(){
var semaine=new Semaine();
var mois=new Mois();
var myDate=new Date();
annee = today.getFullYear();

var result=semaine[myDate.getDay()]+" "+myDate.getDate()+" "+mois[myDate.getMonth()]+" "+annee;
document.writeln(result);

}

today = new Date;
function annee(){
var myDate=new Date();
annee = today.getFullYear();
var result=annee;
document.writeln(result);

}


var today=new Date();
var heure="";
function messagevariable() {
var time=today.getHours();
heure=""
if(time>=4 && time<8)
heure="Bonjour"
if(time>=8 && time<12)
heure="Bonjour"
if(time>=12 && time<13)
heure="Bonjour"
if(time>=13 && time<18)
heure="Bonjour"
if(time>=18 && time<22)
heure="Bonsoir"
if(time>=22 || time<4)
heure="Bonsoir"
}


function resize(x,y) {
parent.window.resizeTo(x,y);
}

function maximiser() {
parent.window.moveTo(0,0);
resize(screen.width-10,screen.height-30);
}

function centrer(page,largeur,hauteur,options) {
var top=(screen.availHeight-hauteur)/2;
var left=(screen.availWidth-largeur)/2;
window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}

function openWin() {
var newURL=document.nav.url.options[document.nav.url.selectedIndex].value;
window.open(newURL,'','height=550,width=800,resizeable=1,left=100,top=100');
}

function PageHasard()
{
    Url = new Array;
Url[0] = "http://pagesperso-orange.fr/jeanpaulbernard/cv/renseignements/renseignements.html";
    Url[1] = "http://pagesperso-orange.fr/jeanpaulbernard/cv/actu/actu.html";
    Url[2] = "http://pagesperso-orange.fr/jeanpaulbernard/cv/courtsmetrages/courtsmetrages.html";
    Url[3] = "http://pagesperso-orange.fr/jeanpaulbernard/cv/longsmetrages/longsmetrages.html";
 Url[4] = "http://pagesperso-orange.fr/jeanpaulbernard/cv/documentaires/documentaires.html";
Url[5] = "http://pagesperso-orange.fr/jeanpaulbernard/cv/theatre/theatre.html";
Url[6] = "http://pagesperso-orange.fr/jeanpaulbernard/cv/musique/musique.html";
Url[7] = "http://pagesperso-orange.fr/jeanpaulbernard/cv/express/express.html";


    ChoixLien = Math.round(Math.random() * (Url.length+1));
    window.open(Url[ChoixLien],'_self');

}



function texte1(){
  var texte1 = 'le premier texte a ecrire partout';
  document.write(texte1);
}

function texte2(){
   var texte2 = 'le deuxieme texte a ecrire partout';
  document.write(texte2);
} 


