			   <br/>
			   <br/>
					   									   									   				
 			   <div class="container">
				 <div class="form-inline">
					  <div class="form-group col-xs-2" >
					     <br>
					     <label class="labelEtiqueta">Revenue Share</label>		    
					  </div>	
					  <div class="col-xs-4"></div>		  					  
					  <div class="form-group col-xs-6">					    
					    <div class="col-xs-2"><button type="button" class="btn btn-primary btn-sm btn-agregar" ng-click="abrirModalExcepcion(tablaExcepcionesLib)" >T&iacute;tulos</button></div>
					    <div class="col-xs-2"></div>
					  	<div class="col-xs-2"><button type="button" class="btn btn-primary btn-sm btn-agregar" ng-click="abrirModalRevenue('libreria')" >Agregar Periodo</button></div>
					  </div>					  					  
					  				  					  
				 </div>
			   </div>	
			   <div class="container">
				 <div class="form-inline">					  					  
					  <div class="form-group col-xs-2">
					     <label class="radio-inline"><input type="radio" id="globalRevenueLibreria" value="global" ng-model="tipoRevenueLib" ng-click="actualizarGlobal()" >Global</label>
					  </div>
					  <div class="form-group col-xs-4">		    
					  </div>
					  <div class="form-group col-xs-2" id="dbox">
					     <label class="radio-inline"><input type="radio" id="boxRevenueLibreria" value="box" ng-model="tipoRevenueLib" ng-click="actualizarBox()">Box Office</label>
					  </div>					  
				 </div>
			   </div>				
			   			   
			   <br>
				<!-- Revenu -->	   	   				
			   <div class="container">
				 <div class="form-inline">					  					  
					  <div class="form-group col-xs-2">
					                        				
					                 <table class="table table-responsive feesT">
					                 	<col style="width: 100px; min-width: 100px;"/>
					                 	<col style="width: 50px; min-width: 50px;"/>
					                 	<col style="width: 50px; min-width: 50px;"/>
					                 
					                	<thead class="">                		
								      		<tr>
								      			<th class="encabezados encabezadoTabla" style="width: 130px; min-width: 130px;">Periodos</th>
												<th class="encabezados encabezadoTabla" >% DLA</th>
												<th class="encabezados encabezadoTabla" >% Estudio</th>																									     	                			 	
								    		</tr>				    		
								        <thead>								        
								        <tbody>
						                    <tr ng-repeat="datum in tablaRevenueLibGl.datos"  >                                                                        		                        		                      		                  		
						                        <td  ng-repeat="field in datum" >	
						                        	<input class="tdEditable" type="text" ng-if=" $index == 0" ng-model="field.valor" ng-click="abrirModalRevenueFechas('libreria', tablaRevenueLibGl.datos, $parent.$parent.$index, null)" readonly />
						                            <input class="tdEditable" type="text" ng-if=" $index == 1" ng-model="field.valor" ng-change="calculaRevenueCelda($parent.$parent.$index, $index, tablaRevenueLibGl.datos)" ng-model-options="{updateOn: 'blur'}"/>
						                            <input class="tdEditable" type="text" ng-if=" $index == 2" ng-model="field.valor" readonly/>		                            		             						                  		</td>		                  		
						                    </tr>	
						                    	                    
					                    </tbody>
					                </table>						                                    					     					     					     
					  </div>
					  <div class="form-group col-xs-3">		    
					  </div>
					  <div class="form-group col-xs-5">
					     					                        								     					                  
				             <table class="table table-responsive feesT" id="tRevBox">
				                	<thead class="">                		
							      		<tr>
											<th class="encabezados encabezadoTabla" colspan="2">Box Office</th>
											<th class="encabezados encabezadoTabla" colspan="1">Categoria</th>
											<th class="encabezados encabezadoTabla" colspan="2" ng-repeat="y in tablaRevenueLibBox.encabezados track by $index" ng-click="abrirModalRevenueFechas('libreria', tablaRevenueLibBox.encabezados , null, $index)">{{y.valor}}</th>
											<th class="encabezados encabezadoTabla"></th>																	     	                			 	
							    		</tr>
							    		<tr>
											<th class="encabezados encabezadoTabla"></th>
											<th class="encabezados encabezadoTabla"></th>
											<th class="encabezados encabezadoTabla"></th>																													
											<th class="encabezados encabezadoTabla"  ng-repeat="y in tablaRevenueLibBox.subEncabezadosPrecio track by $index">{{y}}</th>
											<th class="encabezados encabezadoTabla"></th>													     	                			 	
							    		</tr>
							        <thead>
							        <tbody>
					                    <tr ng-repeat="datum in tablaRevenueLibBox.datos">                                                                        
					                        <td ng-repeat="field in datum" ">					                            
					                             <input ng-if="$index == 0 || $index == 1 || $index == 2" ng-model="field.valor" readonly/>
					                  		 
					                  		 	 <input class="tdEditable" ng-if="($index % 2) == 0 && $index != 0 && $index != 2" type="text" ng-model="field.valor" readonly />
		                            			 <input class="tdEditable" ng-if="($index % 2) != 0 && $index != 1" type="text" ng-model="field.valor" ng-change="calculaRevenueCelda($parent.$parent.$index, $index, tablaRevenueLibBox.datos)" ng-model-options="{updateOn: 'blur'}" />					                            	                           	                           	                          					                                              		
					                  		 
					                  		 
					                  		 </td>
					                         <td> 
		                  		    			<label>{{ tablaRevenueLibBox.mensajes[$index]}}</label> 
		                  		 			</td>		
		                  		 		</tr>					                    
				                    </tbody>
				                </table>	    	           			 					     					     
					  </div>					  
				 </div>
			   </div>