function showroom_zoom(pieceId){
	datas = $('datas' + pieceId).getElementsByTagName('span');
	var oBody =document.getElementsByTagName("body")[0]; 
	var src = datas[1].innerHTML;
	if (src.indexOf('/msmmedias')==-1) 	src = '/msmedias/showroom/' + src;
	var texte = '<strong>' + datas[0].innerHTML +'</strong><br />'+datas[2].innerHTML; 
	showroom_CreateBodyMask()
	var d = new Element('div', { 'id': 'showroomZoom' });d.hide();
	d.setPosition=function(){}
	var a = new Element('a', {'class': 'close', 'href': 'javascript:showroom_zoomClose()' });
	var i = new Element('img');
	var t = new Element('p', {'id': 'texte'}).update(texte);
	d.appendChild(a);
	d.appendChild(i);
	d.appendChild(t);
	oBody.appendChild(d);
	oBody.style.cursor='wait';
	i.onload=function(){
		var s = d.getDimensions();
		d.style.marginLeft = -(parseInt(s.width)  / 2) + "px";
		d.style.marginTop =  -(parseInt(s.height)  /2) + document.documentElement.scrollTop +"px";  
		d.show();
		oBody.style.cursor='default';
	}
	i.src = '/lib/animanet/lib/createResizedPicture.php?src='+src+'&max=450';
}
function  showroom_zoomClose(){
	if ($("showroomZoom")) document.getElementsByTagName("body")[0].removeChild($("showroomZoom"));
	showroom_DestroyBodyMask()
}
function showroom_CreateBodyMask(){
	docSize = getDocumentSize();
	var mskWidth = Math.max(docSize[0], screen.width);
	var mskHeight = Math.max(docSize[1], screen.height);
	var e = new Element('div', {'id': 'showroomBodyMask',"style" : "position:absolute; top=0px; left:0px; width:"+mskWidth+"px; height:"+mskHeight+"px;background-color:#505050; opacity:0.6;filter : alpha(opacity=60);z-index:1000" });
	// e.onmousemove = promptbox_mouser; // DRAG AN DROP
	document.getElementsByTagName("body")[0].appendChild(e);
}
function showroom_DestroyBodyMask(){
	if ($("showroomBodyMask")) document.getElementsByTagName("body")[0].removeChild($("showroomBodyMask"));
	showroomBodyMask = null;
}

