//***************************************************************************
// ProjectAttributes Constructor											*
// comments:																*
//***************************************************************************
function ProjectAttributes() {
	
}

//***************************************************************************
// ProjectAttributes doAttr													*
// @type	'string'														*
// @definition	'string'													*
// @action	'string'														*
// @doAction	'string'													*
// @disabled	'string'													*
// comments: 	if the attribute type exists, do something with the 		*
//				attributes
//***************************************************************************
ProjectAttributes.prototype.doAttr = function (type, definition, action, doAction, disabled) {

}

var projectAttributes = new ProjectAttributes();


resetItemsMenu = function(){
	
	var container	= (resetItemsMenu.arguments[0]) ? resetItemsMenu.arguments[0] : 'list_container';
	var anchors		= $(container).getElementsByTagName('a');	
	var aLen 		= anchors.length;
		
	for(var i = 0; i < aLen; i++){
				
		if(anchors[i].className == 'bold itemSelected'){
			anchors[i].className = 'bold';
		}
		
		if(anchors[i].className == 'plain'){
			anchors[i].className = 'plain itemSelected';
		}				
	}
}

setItemsMenuBold = function(listItem){	
			
	var anchors	= listItem.getElementsByTagName('a');
	
	for(var i = 0; i < anchors.length; i++){
		if(anchors[i].className == 'plain itemSelected'){			
			anchors[i].className = 'plain'
		}
		
		if(anchors[i].className == 'bold'){			
			anchors[i].className = 'bold itemSelected'
		}		
	}
}

resetThumbs = function(){
		
	var colorDiv	= $$('.thumb.show.color')[0];
	var grayDiv		= colorDiv.parentNode.getElementsByTagName('div')[1];
	
	colorDiv.className 	= 'thumb hide color';
	grayDiv.className	= 'thumb show gray';
			
}

setColor = function(anchor){
	
	var thumbs = anchor.parentNode.parentNode.getElementsByTagName('div');
	
	thumbs[0].className = 'thumb show color';
	thumbs[1].className = 'thumb hide gray';
}