function drawme(ledivid,limageid,leleft,lewidth){

	var a,pos,w;
	a = getObj(ledivid);
	if( a == null ) return false; 
	lasourceid = document.getElementById(limageid);
	pos = getPosAbsolute(lasourceid,0,0); 
	w = Math.min(250,a.offsetWidth); 
	a.style.width = w; 

	a.style.left = pos[0]+leleft;
	a.style.width = lasourceid.width-lewidth;
	a.style.top = pos[1]; 
	a.style.visibility = "visible"; 
	return true; 

}

function draw_souscat(ledivid,divsourceid,leleft,lewidth,letop){

	var a,marge,w;
	a = getObj(ledivid);
	if( a == null ) return false; 
	lasourceid = document.getElementById(divsourceid).style;
	marge = 5; 
	w = Math.min(250,a.offsetWidth); 
	a.style.width = w; 
	a.style.left = parseFloat(lasourceid.left) + parseFloat(lasourceid.width)-2+ "px";
	a.style.width = parseFloat(lasourceid.width) - parseFloat(lewidth)+ "px";
	a.style.top = parseFloat(lasourceid.top) + parseFloat(letop)+ "px"; 
	a.style.visibility = "visible"; 
	return true; 

}


function clearalldiv(){
	a = getObj('onglet_piercing');
	a.style.visibility = "hidden";
	
	b = getObj('onglet_bijoux');
	b.style.visibility = "hidden";	
	
	c = getObj('onglet_pap');
        if(c)
		c.style.visibility = "hidden";
	
	d = getObj('onglet_lin');
	d.style.visibility = "hidden";
}

function cleardiv(nomdivclear){
	a1 = getObj(nomdivclear);
	a1.style.visibility = "hidden";
}

