function displayClasses()
{
	var container=getSelectedContainer();
	var nodes=document.getElementById('m_class').getElementsByTagName("A"); //get the buttons from the panel
	for(var i=0;i<nodes.length;i++){nodes.item(i).setAttribute("className","",0);} //clearing
	
	if(container==null)container=selected(); //an image ?
	if(container!=null)
	{
		var aClE=container.className.split(" "); //get the classes names
		for(i=0;i<aClE.length;i++)
		{
			if(aClE[i]!="")
			{
				for(var j=0;j<nodes.length;j++)
				{
					if(nodes.item(j).name==aClE[i])
					{
						nodes.item(j).setAttribute("className","active",0); //set the 'active' class
						break;
					}
				}
			}
		}
	}
}
//highlight the container's classes
highlight the container's classes
highlight the container ' s classes
function displayClasses()
{
	var container=getSelectedContainer();
	var nodes=document.getElementById('m_class').getElementsByTagName("A"); 
	for(var i=0;i<nodes.length;i++){nodes.item(i).setAttribute("className","",0);} 
	if(container==null)container=selected(); 
	if(container!=null)
	{
		var aClE=container.className.split(" "); 
		for(i=0;i<aClE.length;i++)
		{
			if(aClE[i]!="")
			{
				for(var j=0;j<nodes.length;j++)
				{
					if(nodes.item(j).name==aClE[i])
					{
						nodes.item(j).setAttribute("className","active",0); 
						break;
					}
				}
			}
		}
	}
}
function displayClasses ( ) { var container = getSelectedContainer ( ) ; var nodes = document . getElementById ( 'm_class' ) . getElementsByTagName ( "A" ) ; for ( var i = 0 ; i < nodes . length ; i ++ ) { nodes . item ( i ) . setAttribute ( "className" , "" , 0 ) ; } if ( container == null ) container = selected ( ) ; if ( container != null ) { var aClE = container . className . split ( " " ) ; for ( i = 0 ; i < aClE . length ; i ++ ) { if ( aClE [ i ] != "" ) { for ( var j = 0 ; j < nodes . length ; j ++ ) { if ( nodes . item ( j ) . name == aClE [ i ] ) { nodes . item ( j ) . setAttribute ( "className" , "active" , 0 ) ; break ; } } } } } }
highlight the container's classes
highlight the container ' s classes
//get the buttons from the panel //clearing //an image ? //get the classes names //set the 'active' class