var timer;
var left;

function pop_up(page,width,height){
var top=((screen.height-height)/2)-(height);
left = (screen.width-width)/2;
document.getElementById("definition").style.top=top+"px";
html="<a href='#' onclick='slideIn()'>close</a><br /><hr style='background-color:#FFFFFF;color:#FFFFFF' />"
html=html+"<object data='"+page+"' type='text/html' style='width:"+width+"px;height:"+height+"px;overflow:auto;' />"
document.getElementById("definition").innerHTML=html;
slideOut();
}

function pop_flash(page,width,height,option){
var top=(screen.height-height)/2;
var left=(screen.width-width)/2;
window.open(page,"","top="+top+",left="+left+",width="+width+",height="+height+","+option);
}

function pop_source(txt,height,width){
	var top=((screen.height-height)/2)-(height);
     left = (screen.width-width)/2;
	 document.getElementById("definition").style.height=height+"px";
	 document.getElementById("definition").style.width=width+"px";
    document.getElementById("definition").style.top=top+"px";	html="<div style='color:#FFFFFF;font-size:14px;font-weight:bold;text-align:center;'>Source :</div><hr style='background-color:#FFFFFF;color:#FFFFFF' />";
	html=html+"<div style='color:#FFFFFF;font-size:14px;font-weight:bold;text-align:center;'>"+txt+"</div>";
	document.getElementById("definition").innerHTML=html;
	slideOut();
}

function slideOut(){
clearTimeout(timer);
taille=parseInt(document.getElementById("definition").style.left);
if(taille<left){
	taille=taille+35;
	document.getElementById("definition").style.left=taille+"px";
	timer=setTimeout("slideOut()",30);
}
}

function slideIn(){
clearTimeout(timer);
taille=parseInt(document.getElementById("definition").style.left);
  if(taille>-450){
	taille=taille-50;
	document.getElementById("definition").style.left=taille+"px";	
	timer=setTimeout("slideIn()",30);
  }
}