// size the sidebar depending on window size
function adaptSize() {
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } else if( document.documentElement && ( document.documentElement.clientWidth ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  } else if( document.body && ( document.body.clientWidth ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
  
  var taille=((myWidth/2)-250);
  if (taille<350){taille=350;}
  
  document.getElementById("left-sidebar").style.width= taille+"px";
  document.body.style.paddingLeft= taille+"px";
}

// image changing on event
function rollover(imgName, imgSrc){
	document[imgName].src= imgSrc;
}

// Jquery for ease scroll
$(document).ready(function(){

	$.localScroll();

});


