/*********************************************************************************************
//////////////////////////////////////////////////////////////////////////////////////////////
***	* Café Central library
	* @package		Library
	* @copyright	2004-2009 This website
	* @licence		Under licence, as specified in the licence.txt file
	* @description	From here, you'll find the available variables to work, in the  array
	* @help			Check http://www.cafecentral.fr/fr/wiki/ for help
//////////////////////////////////////////////////////////////////////////////////////////////
*********************************************************************************************/

/*********************************************************************************************
//////////////////////////////////////////////////////////////////////////////////////////////	
	General
//////////////////////////////////////////////////////////////////////////////////////////////
*********************************************************************************************/

/*********************************************************************************************
/**	* ONoff
 	* @author	mvd@cafecentral.fr
 	* @param	string	xxx
 	* @return	xxx
**#******************************************************************************************/
function onoff(FNTname, FNTid, FNTaction) {
	cpt=0;
	while (document.getElementById(FNTname+cpt)) {
		Element.hide(FNTname+cpt);
		if (document.getElementById('bt_'+FNTname+cpt)) document.getElementById('bt_'+FNTname+cpt).className = '';
		cpt++;
	}
	
	if (FNTid != -1) {
		
		if (document.getElementById('bt_'+FNTname+FNTid)) document.getElementById('bt_'+FNTname+FNTid).className = 'on';
		if (FNTaction != 'restore'){ 
			new Element.show(FNTname+FNTid);
		}
	}
}

/*********************************************************************************************
/**	* Tabs
 	* @author	mvd@cafecentral.fr
 	* @param	string	xxx
 	* @return	xxx
**#******************************************************************************************/
	function alternclass(cssid, id) {
		//alert(document.getElementById(cssid).className);
		var cpt = 0;
		while (document.getElementById(cssid+cpt)) {
			document.getElementById(cssid+cpt).className='off';
			cpt++;
		}
		document.getElementById(cssid+id).className='on';
	}
