text: // Build the yc.ui.createHeaderView function
  // Param @Object includes /*String*/ title, /*Object*/ leftbutton { show, callback }
  
  function headerView(_args) {
  	var header = Ti.UI.createView($$.header);
  	var margin = 5;
  	
  	var rightbutton = _args.rightbutton || {};
  	var leftbutton = _args.leftbutton || {};		
  	
  	if (leftbutton.callback && leftbutton.show === true) {
  		if (_args.leftbutton.image === undefined) {
  			_args.leftbutton.image = '/images/button_back.png';
  		}
  		
  		var hbutton = Ti.UI.createButton({
  			left: margin,
  			width: 35, height: 35,
  			backgroundImage: _args.leftbutton.image,
  			backgroundColor: 'transparent',
  			backgroundSelectedColor: yc.style.colors.highlightColor,
  			borderRadius: 5
  		});
  		
  		hbutton.addEventListener('click', _args.leftbutton.callback);
  		
  		header.add(hbutton);
  		margin += 40;
  	}		
  	
  	var hlabel = Ti.UI.createLabel(yc.combine($$.hlabel, {
  		left: margin,
  		text: _args.title
  	}));
  	
  	header.add(hlabel);
  	margin = 5;
  	
  	for(var i=0; i<rightbutton.length; i++) {
  		if (rightbutton[i].callback && rightbutton[i].show === true) {
  			var hrbutton = Ti.UI.createButton({
  				right: margin,
  				width: 35, height: 35,
  				backgroundColor: 'transparent',
  				backgroundSelectedColor: yc.style.colors.highlightColor,
  				backgroundImage: rightbutton[i].image,
  				borderRadius: 5
  			});
  			
  			hrbutton.addEventListener('click', rightbutton[i].callback);
  			header.add(hrbutton);
  		}
  		
  		margin += 40;
  	}
  
  	return header;
  }
  
  module.exports = headerView;
  