// JavaScript Document

<!--
//form
function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
 
function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' doit contenir une adresse e-mail.\n';
      } else if (test!='R') {
        if (isNaN(val)) errors+='- '+nm+' doit être un chiffre.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (val<min || max<val) errors+='- '+nm+' doit être un chiffre entre '+min+' et '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' est un champ obligatoire.\n'; }
  } if (errors) alert('La(es) faute(s) suivante(s) se sont produites:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//

//plan
function plan()
{
window.open("http://pro.mappy.com/BtoB/Proximedia/map?map.id=3019937;map.provider=Proximedia;", "plan", "toolbar=no, location=no, directories=no, status=yes, scrollbars=no, resizable=yes, copyhistory=no, width=600, height=500, left=300, top=50");
}

//

// mmLoadMenus()
function mmLoadMenus() {
  if (window.mm_menu_0627101611_0) return;
    window.mm_menu_0627101611_0 = new Menu("root",82,18,"Geneva, Arial, Helvetica, sans-serif",12,"#FFFFFF","#000000","#036289","#CCCCCC","center","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0627101611_0.addMenuItem("Classique","location='p4a.html'");
  mm_menu_0627101611_0.addMenuItem("Sport","location='p4b.html'");
   mm_menu_0627101611_0.hideOnMouseOut=true;
   mm_menu_0627101611_0.bgColor='#555555';
   mm_menu_0627101611_0.menuBorder=1;
   mm_menu_0627101611_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0627101611_0.menuBorderBgColor='#FFFFFF';

mm_menu_0627101611_0.writeMenus();
} 
//

//nav
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//

// pop up
PositionX = 100;
PositionY = 100;
defaultWidth  = 500;
defaultHeight = 500;
var AutoClose = true;
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
close();		
}}
//

// JavaScript Document
// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this notice.

// SETUPS:
// ===============================

// Set the horizontal and vertical position for the popup

PositionX = 420;
PositionY = 30;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 500;
defaultHeight = 500;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = true;

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onBlur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
close();		
}}

// <a href="javascript:popImage('beeld/kraan1gr.jpg','Aboda')"> //


/***********************************************
* Image Thumbnail Viewer II script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Specify image paths and optional link (set link to "" for no link):
var dynimages=new Array()
dynimages[0]=["images/rest001.jpg"]
dynimages[1]=["images/rest002.jpg"]
dynimages[2]=["images/rest003.jpg"]
dynimages[3]=["images/rest004.jpg"]
dynimages[4]=["images/rest005.jpg"]
dynimages[5]=["images/rest006.jpg"]
dynimages[6]=["images/rest007.jpg"]
dynimages[7]=["images/rest008.jpg"]
dynimages[8]=["images/rest009.jpg"]
dynimages[9]=["images/rest010.jpg"]
dynimages[10]=["images/rest011.jpg"]
dynimages[11]=["images/rest012.jpg"]
dynimages[12]=["images/rest013.jpg"]
dynimages[13]=["images/rest014.jpg"]
dynimages[14]=["images/rest015.jpg"]
dynimages[15]=["images/rest016.jpg"]
dynimages[16]=["images/rest017.jpg"]
dynimages[17]=["images/rest018.jpg"]
dynimages[18]=["images/rest019.jpg"]
dynimages[19]=["images/rest020.jpg"]
//Preload images ("yes" or "no"):
var preloadimg="no"

//Set optional link target to be added to all images with a link:
var optlinktarget=""

//Set image border width
var imgborderwidth=0

//Optionally, change 1.0 and 0.7 below to affect Wipe gradient size and duration in seconds in IE5.5+:
var filterstring="progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=1.0 Duration=0.7)"

///////No need to edit beyond here/////

if (preloadimg=="yes"){
for (x=0; x<dynimages.length; x++){
var myimage=new Image()
myimage.src=dynimages[x][0]
}
}

function returnimgcode(theimg){
var imghtml=""
if (theimg[1]!="")
imghtml+='<img src="'+theimg[0]+'" border="'+imgborderwidth+'">'
if (theimg[1]!="")
imghtml+='</a>'
return imghtml
}

function modifyimage(loadarea, imgindex){
if (document.getElementById){
var imgobj=document.getElementById(loadarea)
if (imgobj.filters && window.createPopup){
imgobj.style.filter=filterstring
imgobj.filters[0].Apply()
}
imgobj.innerHTML=returnimgcode(dynimages[imgindex])
if (imgobj.filters && window.createPopup)
imgobj.filters[0].Play()
return false
}
}<!--  -->

//

//slide
/*
JavaScript Image slideshow:
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free JavaScript here!
*/

var slideimages=new Array()
var slidelinks=new Array()
function slideshowimages(){
for (i=0;i<slideshowimages.arguments.length;i++){
slideimages[i]=new Image()
slideimages[i].src=slideshowimages.arguments[i]
}
}

function slideshowlinks(){
for (i=0;i<slideshowlinks.arguments.length;i++)
slidelinks[i]=slideshowlinks.arguments[i]
}

function gotoshow(){
if (!window.winslide||winslide.closed)
winslide=window.open(slidelinks[whichlink])
else
winslide.location=slidelinks[whichlink]
winslide.focus()
}

//

// 05-11-2003 - francktfr@systeme-d.net 
// écrit pour http://www.systeme-d.net 
var imgs = new Array() 
var CellsDone = 0 
var Interval = 2000        //    Temps entre deux images (ms) 
//    Définition des images ici    : 
AddImage("../images/presentation01.jpg") 
AddImage("../images/presentation02.jpg") 
AddImage("../images/presentation03.jpg")
AddImage("../images/presentation04.jpg") 
AddImage("../images/presentation05.jpg") 
AddImage("../images/presentation06.jpg")  
function Hide(Index){ 
    CellsDone=0 
    for (y=0; y<Cache.rows.length; y++){ 
        for (x=0; x<Cache.rows[y].cells.length; x++){ setTimeout("HideCell(" + x + "," + y + "," + Index + ")",(Math.random()*300)) } 
    } 
} 
function HideCell( i, j, Index){ 
    CellsDone++ 
    Cache.rows[j].cells[i].style.background = "#FFFFFF" 
    if (CellsDone >= (Cache.rows.length*Cache.rows[j].cells.length)){ 
        Cache.style.backgroundImage = "url('" + imgs[Index].src +"')" 
        setTimeout("Show("+Index+")",200) 
    } 
} 
function Show(Index){ 
    CellsDone=0 
    for (y = 0; y < Cache.rows.length; y++){ 
        for (x = 0; x < Cache.rows[y].cells.length; x++){ setTimeout("ShowCell(" + x + "," + y + "," + Index + ")",200+(Math.random()*1000)) } 
    } 
} 
function ShowCell( i, j, Index){ 
    CellsDone++ 
    Cache.rows[j].cells[i].style.backgroundColor = "transparent" 
    if (CellsDone >= (Cache.rows.length*Cache.rows[j].cells.length)){ 
        Index < (imgs.length-1) ? Index++ : Index = 0 
        setTimeout("Hide("+Index+")",Interval) 
    } 
} 
function AddImage(Source){ 
    var img = new Image() 
    img.src = Source 
    imgs.push(img) 
} 
function CreateTable(Container, Dim){ 
    var maxx = 300
    var maxy = 300
    for(i=0; i<imgs.length; i++){ 
        if (imgs[i].height > maxy){maxy=imgs[i].height} 
        if (imgs[i].width > maxx){maxx=imgs[i].width} 
    } 
    var str = "<TABLE ID=Cache WIDTH="+300+" HEIGHT="+300+" CELLSPACING=0 CELLPADDING=0 BORDER=0 STYLE=\"table-layout: fixed; background-position: center center; background-repeat: no-repeat\">" 
    var row ="<TR>" 
    for (i=0; i<maxx; i += Dim){ 
        str += "<COL WIDTH="+Dim+">" 
        row += "<TD></TD>" 
    } 
    row +="</TR>" 
    for (i=0; i<maxy; i += Dim){str += row} 
    Container.innerHTML = str + "</TABLE>" 
    Hide(0) 
}

function mmLoadMenus() {
  if (window.mm_menu_0922135503_0) return;
    window.mm_menu_0922135503_0 = new Menu("root",134,19,"Times New Roman, Times, serif",13,"#FFFFFF","#333333","#333333","#666666","center","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_menu_0922135503_0.addMenuItem("Tuiles","location='http://www.proximedia.com/catalogue/catalogue.asp?cat=17106&site_id=28136'");
  mm_menu_0922135503_0.addMenuItem("Ardoise","location='http://www.proximedia.com/catalogue/catalogue.asp?cat=17107&site_id=28136'");
  mm_menu_0922135503_0.addMenuItem("Toit plat","location='http://www.proximedia.com/catalogue/catalogue.asp?cat=17108&site_id=28136'");
  mm_menu_0922135503_0.addMenuItem("Charpente","location='http://www.proximedia.com/catalogue/catalogue.asp?cat=16775&site_id=28136'");
  mm_menu_0922135503_0.addMenuItem("Détails techniques","location='http://www.proximedia.com/catalogue/catalogue.asp?cat=17109&site_id=28136'");
   mm_menu_0922135503_0.fontWeight="bold";
   mm_menu_0922135503_0.hideOnMouseOut=true;
   mm_menu_0922135503_0.bgColor='#333333';
   mm_menu_0922135503_0.menuBorder=1;
   mm_menu_0922135503_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0922135503_0.menuBorderBgColor='#999999';

    window.mm_menu_0922140245_0 = new Menu("root",66,19,"Times New Roman, Times, serif",13,"#FFFFFF","#333333","#333333","#666666","center","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_menu_0922140245_0.addMenuItem("Cuivre","location='http://www.proximedia.com/catalogue/catalogue.asp?cat=16774&site_id=28136'");
  mm_menu_0922140245_0.addMenuItem("Zinc","location='http://www.proximedia.com/catalogue/catalogue.asp?cat=16773&site_id=28136'");
   mm_menu_0922140245_0.fontWeight="bold";
   mm_menu_0922140245_0.hideOnMouseOut=true;
   mm_menu_0922140245_0.bgColor='#333333';
   mm_menu_0922140245_0.menuBorder=1;
   mm_menu_0922140245_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0922140245_0.menuBorderBgColor='#999999';

mm_menu_0922140245_0.writeMenus();
} // mmLoadMenus()




-->