
function popup(id){
  close_popup();
  $('#popup').load('popup_diaporama.html');
  //$.get('popup_diaporama.html',{}, function(data){$('#popup').html(data);});
  hidder=document.getElementById('hider');
  $("#hider").css('display','block');
  if(document.all && !window.opera){ 
     hidder.style.filter = "alpha(opacity=" + 70 + ");"
	 hidder.style.width=document.body.clientWidth;
	 hidder.style.height=(document.getElementById('hautGM').offsetHeight) + 500; 
  }else{ 
     var Val = 70/100; 
     hidder.style.setProperty( "-moz-opacity", Val, ""); 
     hidder.style.setProperty( "-khtml-opacity", Val, ""); 
     hidder.style.setProperty( "opacity", Val, "");
	 hidder.style.width=document.body.clientWidth+"px";
	 hidder.style.height=((document.body.scrollHeight) + 500)+"px";
  }
  var top = 0;
  if(document.body.scrollTop) top = document.body.scrollTop;
  else if(document.documentElement.scrollTop) top = document.documentElement.scrollTop;
  $('#popup').css('top',(top + 10) + 'px');
}

function close_popup(){
  $('#popup').html('');
  $("#hider").css('display','none');
}

function moovPopup(){
	$('#contents').Resizable(
	    {
				dragHandle: '#deplace',
				handlers: {},
				onResize : function(position) {}
		}
	);
}

function prechargimg() {
var doc=document;
if(doc.images){ if(!doc.precharg) doc.precharg=new Array();
var i,j=doc.precharg.length,x=prechargimg.arguments; for(i=0; i<x.length; i++)
if (x[i].indexOf("#")!=0){ doc.precharg[j]=new Image; doc.precharg[j++].src=x[i];}}
}
