// page crée le 13/03/2001 par Jules
// path : /js/common.js
// Cette page regroupe l'ensemble des scripts globaux pour les pages Cuisine TV


// ouvre un fenetre a taille/url souhaités
function opWin(url,name,param) {
	window.open(url,name,param);
}

window.name = 'mainWindow';


function fermer_ok() {
	window.close();
	clearTimeout(ferm_win);
}

function fermer(time) {
	tot = eval(time*1000);
	ferm_win = window.setTimeout('fermer_ok()',tot);
}

function ouvrirpopup() {
newWin=window.open("http://www.ccatalogue.com/cuisinetv/sondage/sondage_chaine.php","","height=435,width=640,status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=yes,fullscreen=no,top=150,left=250")
}

function Lien() {
	i = document.Choix.Liste.selectedIndex;
	if (i == 0) return;
	url = document.Choix.Liste.options[i].value;
	parent.location.href = url;
}

if (document.images) {
  image_forumon = new Image();
  image_forumon.src = "http://www.cuisine.tv/img/commun/chat_forum/forum_over.gif";
  image_forumoff = new Image();
  image_forumoff.src = "http://www.cuisine.tv/img/commun/chat_forum/forum_btn.gif";

  image_chaton = new Image();
  image_chaton.src = "http://www.cuisine.tv/img/commun/chat_forum/chat_over.gif";
  image_chatoff = new Image();
  image_chatoff.src = "http://www.cuisine.tv/img/commun/chat_forum/chat_btn.gif";
  
}

function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}
