function getWindowHeight() {
 var windowHeight = 0;
   if (typeof(window.innerHeight) == 'number') {
        windowHeight = window.innerHeight;
   }
        else {
          if (document.body && document.body.clientHeight) {
            windowHeight = document.body.clientHeight;
        }
        else {
          if (document.documentElement && document.documentElement.clientHeight) {
            windowHeight = document.documentElement.clientHeight;
          }
        }
   }
 return windowHeight;
}

function setFooter() {
  if (document.getElementById) {
     var windowHeight = getWindowHeight();
     if (windowHeight > 0) {
         var Menu = document.getElementById('menu');
         var Bloc = document.getElementById('bloc');
         var Mention = document.getElementById('mention');
         if ((windowHeight/2) - 180 >= 0) {
          if ((document.all) && (navigator.appVersion.indexOf("Mac",0)<0)) {
                Menu.style.position = 'absolute';
                Menu.style.top = (document.body.scrollTop + (windowHeight/2) - 130) + 'px';
                Bloc.style.position = 'absolute';
                Bloc.style.top = (document.body.scrollTop + (windowHeight/2) - 88) + 'px';
                Mention.style.position = 'relative';
                Mention.style.top = (document.body.scrollTop + windowHeight + 55) + 'px';
                }
          else {
                Menu.style.position = 'fixed';
                Menu.style.top = ((windowHeight/2) - 130) + 'px';
                Bloc.style.position = 'fixed';
                Bloc.style.top = ((windowHeight/2) - 68) + 'px';
                Mention.style.position = 'fixed';
                Mention.style.top = (windowHeight - 55) + 'px';
                }
         }
         else {
            Menu.style.position = 'static';
            Bloc.style.position = 'static';
            Mention.style.position = 'static';
         }
     }
  }
}
window.onload = function() {
        setFooter();
}
window.onresize = function() {
        setFooter();
}
window.onscroll = function() {
        setFooter();
}






var photos=new Array()
var photoslink=new Array()
var which=0

photos[0]="img/A-Createur-et-fabricant-du-stand-du-groupe-BORWARNER-sur-EQUIPAUTO.gif"
photos[1]="img/B-Createur-de-stand-et-corner-magasins.gif"
photos[2]="img/C-Agencement-VIP-stand-OPHTALMIC.gif"
photos[3]="img/D-Standiste-salon-et-congres.gif"
photos[4]="img/E-Creation-stand-sur-mesure-modulable.gif"
photos[5]="img/F-Scenographie-stand-evenementiel-salon-agriculture.gif"
photos[6]="img/G-Conception-et-realisation-stand-evenementiel-salon-professionnel.gif"
photos[7]="img/H-Partenaire-standiste-de-MONIN.gif"
photos[8]="img/I-Standiste-SHIMANO-salon-RBIKE.gif"
photos[9]="img/J-Decorateur-stand-ZODIAC-Salon-Nautique.gif"
photos[10]="img/K-Agencement-espace-dexposition-congres-SFO.gif"
photos[11]="img/L-Amenagement-stand-sur-mesure-OPHTALMIC.gif"

var linkornot=1

photoslink[0]="agencement-stand-borgwarner.html"
photoslink[1]="conception-fabrication-stand-shop-in-shop.html"
photoslink[2]="decorateur-stand-ophtalmic.html"
photoslink[3]="decorateur-stand-ophtalmic.html"
photoslink[4]="creation-stands-traditionnels-modulables.html"
photoslink[5]="scenographie-stand-evenementiel.html"
photoslink[6]="conception-stand-expo.html"
photoslink[7]="createur-stand-salons.html"
photoslink[8]="stand-evenementiel-shimano.html"
photoslink[9]="standiste-salon-nautique.html"
photoslink[10]="decorateur-stand-ophtalmic.html"
photoslink[11]="decorateur-stand-ophtalmic.html"


var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}


function backward(){
if (which>0){
which--
//applyeffect()
document.images.photoslider.src=photos[which]
}
}

function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
}

if (which==photos.length-1){
which = 0
document.images.photoslider.src=photos[which]
//alert('retour a zéro');
}

}

function transport(){
window.location=photoslink[which]
}


