
// RollOver pour le menu
off = new Image ();
on = new Image ();
function rollOver(img,path,name) {
	off.src = img.src;
	
	img.src = path + name 
}

function rollOut(img,path,name) {
	img.src = off.src;
	img.src =  path + name 
}           
function next() 
{
    
    if (indexCollection + 2 != ImgName.length ) 
    {
        var placeholder1 = document.getElementById("PlaceHolder1");
        var placeholder2 = document.getElementById("PlaceHolder2");
         NextThumbnails(thumbnailsPath,indexCollection,ImgName,placeholder1,placeholder2) 
        indexCollection = indexCollection + 2;
         
    }
} 
function NextThumbnails(Path,idThumbnails,List,placeHolder1,placeHolder2) {
         
	    placeHolder1.src = Path + List[idThumbnails + 2];
	    placeHolder2.src =  Path + List[idThumbnails + 3]; 
 } 
 function prev() 
{
    if (indexCollection != 0) 
    {
        var placeholder1 = document.getElementById("PlaceHolder1");
        var placeholder2 = document.getElementById("PlaceHolder2");
         PrevThumbnails(thumbnailsPath,indexCollection,ImgName,placeholder1,placeholder2) 
        indexCollection = indexCollection - 2;
         
    }
    
    
} 
function PrevThumbnails(Path,idThumbnails,List,placeHolder1,placeHolder2) {
        
        placeHolder1.src = Path + List[idThumbnails - 2];
        placeHolder2.src =  Path + List[idThumbnails - 1]; 
} 

function openWin(indexPicture,picturePath,ImgName)
{
	    var url = picturePath + ImgName[indexPicture] ;
     if (document.all)
        var xMax = screen.width, yMax = screen.height;
     else
        var xMax = window.outerWidth, yMax = window.outerHeight;

     var xOffset = (xMax /2)-(750/2), yOffset = (yMax/2)-(750/2);

     window.open(url,'ImageBrowser','width=750,height=750,screenX='+xOffset+',screenY='+yOffset+', top='+yOffset+',left='+xOffset+'');
     
     
}

 
