/*
Acco - Christophe "Dyo" Lefevre (http://bleebot.com/)
*/
var AccoCache = new Array();

function $AccoInit(str) {
   accomax = str.match(/[;]/g).length;
   for (var i = 0; i < accomax; i++) {
      pos = str.indexOf(";");
      AccoCache.push(str.substring(0, pos));
      str = str.substring(pos + 1, str.length);
   }
}   
function $accopush(accobjnum, elastic) {
   for (var i = 0; i < AccoCache.length; i++) {
      if (i != accobjnum) {
         $blindup(AccoCache[i], 200);
      }
      else {
         if (elastic == true) STO("$blinddown('" + AccoCache[i] + "', 200)", 400);
         else $blinddown(AccoCache[i], 200);
      }
   }
}
function $(id){
	return document.getElementById(id);
}
function STO(_24,_25){
	return window.setTimeout(_24,_25);
}
function DecToHexa(_26){
var _27=parseInt(_26).toString(16);
if(_26<16){
_27="0"+_27;
}
return _27;
}
function act_height(id){
	height=$(id).clientHeight;
	if(height==0){
		height=$(id).offsetHeight;
	}
	return height;
}
function act_width(id){
	width=$(id).clientWidth;
	if(width==0){
		width=$(id).offsetWidth;
	}
	return width;
}
function max_height(id){
	var ids=$(id).style;
	ids.overflow="hidden";
	if(act_height(id)!=0){
		return act_height(id);
	}else{
		origdisp=ids.display;
		origheight=ids.height;
		origpos=ids.position;
		origvis=ids.visibility;
		ids.visibility="hidden";
		ids.height="";
		ids.display="block";
		ids.position="absolute";
		height=act_height(id);
		ids.display=origdisp;
		ids.height=origheight;
		ids.position=origpos;
		ids.visibility=origvis;
		return height;
	}
}
function $blindup(id,_2f){
	if(!_2f){
		_2f=200;
	}
	acth=act_height(id);
	maxh=max_height(id);
	if(acth==maxh){
		$(id).style.display="block";
		var _30;
		_30=Math.ceil(_2f/acth);
		for(i=0;i<=acth;i++){
			newh=acth-i;
			STO("$('"+id+"').style.height='"+newh+"px'",_30*i);
		}
	}
}
function $blinddown(id,_32){
	if(!_32){
	_32=200;
	}
	acth=act_height(id);
	if(acth==0){
		maxh=max_height(id);
		$(id).style.display="block";
		$(id).style.height="0px";
		var _33;
		_33=Math.ceil(_32/maxh);		
		for(i=1;i<=maxh;i++){
			STO("$('"+id+"').style.height='"+i+"px'",_33*i);
		}
	}
}