﻿// Fichier JScript
var linkArray = new Array
function posLinkContent(){
   
   alert('capasse');
    //linkArray[offset] = offset, divid
    
}

function displaycontent(divid, parentid, objlink)
{
       var parent = document.getElementById(parentid);
              
        var a = parent.getElementsByTagName('a');
        if(a.length > 0 ){ 
             var nA = a.length;
             for(y=0; y < nA; y++){
              if(a[y].className == 'linkcontent' )
                  if (a[y].id == objlink){
                     a[y].style.background = '#b5b5da';   
                 }else{
                  a[y].style.background = '#00CC99';
                 }
             }
       }
        var DIV = parent.getElementsByTagName('div');    
		if(DIV.length > 0 ){ 
		    var nDIV = DIV.length;
		    for(i=0; i < nDIV; i++){
		        if(DIV[i].className == 'right'){
		            if (DIV[i].id == divid){
		                DIV[i].style.display = 'block';
    		           
		            }
		            else {
		               DIV[i].style.display = 'none'; 
		            }
		        }
		    }
		}	 
}




function NWM(mypage, myname, w, h) {
	win = window.open(mypage, myname);
	win.window.focus();
}


// Opens new window with no toolbars
function NW(mypage, myname, w, h) {
	if (w > screen.width) {
		w = screen.width - 40;
	}
	if (h > screen.height) {
		h = screen.height - 100;
	}
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2 - 30;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes';
	win = window.open(mypage, myname, winprops);
	win.window.focus();
}


function openwin3(url,name)
 {window.open(url,name,'toolbar=no,statusbar=no,scrollbars=no,resizable=yes,width=640,height=480');	}



function openwin(url,name)
 {window.open(url,name,'toolbar=no,statusbar=no,width=550,height=400');	}

