/* Script pour desactiver le RIGHT-CLICK - IE5, NS6, FF1 ---- START --- */

var message="Déactiver pour des raisons de droits d’auteurs - This is not allowed for copyright reasons";

function clickIE() 
	{if (document.all) {(message);return false;}}
function clickNS(e) 
	{if (document.layers||(document.getElementById&&!document.all)) {
	if (e.which==2||e.which==3) {(message);return false;}}}
	if (document.layers) 
	{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else
	{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")

/* Script pour desactiver le RIGHT-CLICK - IE5, NS6, FF1 ---- END --- */






/* Script pour desactiver les POP-UPs ---- START --- */

function pop_up(){
  var openWin=window.open('popup/pop_up.html','PopWin','toolbar=0,status=0,resize=0,scrollbars=0,location=0,menubar=0,directories=0,width=250,height=225')
  var winHeight=screen.height
  var winWidth=screen.width
 //to set the focus to the window
  if(openWin.focus)
  {
    openWin.focus();
  }

 //to move the window
  if(openWin.moveTo)
  {
  openWin.moveTo(195,225);
  }
  
}

/* Script pour desactiver les POP-UPs ---- END --- */







/* Script pour les ROLL-OVERs ---- START --- */

function changeImage(witchone,newimage) {
 document[witchone].src=newimage;
}

var endding='.gif';
var preloadedImages=' '.split(' ');
var images=new Array();
var pathAndBegenning='/|lg.l/images/n-'
for (var i=0; i<preloadedImages.length; i++){
  images[i]=new Image();
  images[i].src=pathAndBegenning+preloadedImages[i]+endding;
}

/* Script pour les ROLL-OVERs ---- END --- */






/* Script pour naviguer a partir des MENUS DEROULANTS ---- START --- */

function surfto(form) {
var myindex=form.dest.selectedIndex
location=form.dest.options[myindex].value;
}

/* Script pour naviguer a partir des MENUS DEROULANTS ---- END --- */




/* Script pour imprimer les pages ---- START --- */

function printpage() {
window.print();  
}

/* Script pour imprimer les pages ---- END --- */






/* Script pour transparence dans les images PNG pour IE ---- START --- 

// Correctly handle PNG transparency in Win IE 5.5 or higher.
// http://homepage.ntlworld.com/bobosola. Updated 02-March-2004

function correctPNG()
{
for(var i=0; i<document.images.length; i++)
{
var img = document.images[i]
var imgName = img.src.toUpperCase()
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
{
var imgID = (img.id) ? "id='" + img.id + "' " : ""
var imgClass = (img.className) ? "class='" + img.className + "' " : ""
var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
var imgStyle = "display:inline-block;" + img.style.cssText
if (img.align == "left") imgStyle = "float:left;" + imgStyle
if (img.align == "right") imgStyle = "float:right;" + imgStyle
if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
var strNewHTML = "<span " + imgID + imgClass + imgTitle
+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
img.outerHTML = strNewHTML
i = i-1
}
}
}
window.attachEvent("onload", correctPNG);

 Script pour transparence dans les images PNG pour IE  ---- END --- */











/* Script pour NAVIGATION et SOUS-MENUS ---- START --- */

/* Non - ypSlideOutMenusC.js - 21-06-2006 */

function hover(obj){
  if(document.all){
    UL = obj.getElementsByTagName('ul');
    if(UL.length > 0){
      sousMenu = UL[0].style;
      if(sousMenu.display == 'none' || sousMenu.display == ''){
        sousMenu.display = 'block';
      }else{
        sousMenu.display = 'none';
      }
    }
  }
}

function setHover(){
  LI = document.getElementById('menu').getElementsByTagName('li');
  nLI = LI.length;
  for(i=0; i < nLI; i++){
    LI[i].onmouseover = function(){
      hover(this);
	  
	  if (navigator.userAgent.indexOf("MSIE") != -1) { /* Ajout pour IE */
	  this.className+="over"; /* Ajout pour IE */
	  }
	  
    }
    LI[i].onmouseout = function(){
      hover(this);
	  
	  if (navigator.userAgent.indexOf("MSIE") != -1) { /* Ajout pour IE */
	  this.className=this.className.replace("over", ""); /* Ajout pour IE */
	  }
	  
    }
  }
}

/* Script pour NAVIGATION et SOUS-MENUS ---- END --- */
