var nav_src = new Array("comediennes", "comediens", "auteurs_realisateurs", "actualites", "contact");
var nav_rolls = new Array();

for(i=0;i<nav_src.length;i++){
 nav_rolls[2*i] = new Image();
 nav_rolls[2*i].src = 'img/t_' + nav_src[i] + '.gif';
 nav_rolls[2*i+1] = new Image();
 nav_rolls[2*i+1].src = 'img/t_' + nav_src[i] + '_on.gif';
}

/* Effacement automatique des champs de saisie */
function auto_fill(o, i){
 if(i){
  if(o.refv==null)
   o.refv = o.value;
  if(o.value==o.refv)
   o.value='';
   o.select();
 }
 else{
  if(o.value=='')
   o.value=o.refv;
 }
}

/* Rollovers sur les rubriques */
function _swap(o, i){
 if(i)
  document.images['rub'+o].src = nav_rolls[2*o+1].src;
 else
  document.images['rub'+o].src = nav_rolls[2*o].src;
 return true;
}

/* Zoom */
function _zoom(u){
 var zpop = window.open(u, 'zoom', 'width=250, height=418, top=100, left=100, location=no, menubar=no, resizable=0, scrollbars=no, status=no, toolbar=no, fullscreen=no');
 zpop.focus();
 return false;
}

/* Fermeture */
function _close(){
 self.close();
 return false;
}

/* Ouverture version imprimable */
function _loadprint(u){
 var wp = window.open(u, 'print');
 wp.focus();
 return false;
}

/* Print */
function _print(){
 if(window.print)
  window.print();
 return false;
}

/* Retour liste */
function goback(){
 history.go(-1);
 return false;
}

function check_opener(){
 if(window.opener==null)
  location.href = location.href.substring(0, location.href.length-7) + '.html';	
}