anchor.diff:          </aside>
   	</div>
   	<c:import url="/resources/js-includes.jsp" />
  +	<script src="<c:url value="/resources/lib/dhtmlxGantt_v3.1.1_gpl/dhtmlxgantt.js" />"type="text/javascript"></script>
   	<script>
   		function submitAjax(id) {
   			var formObj = $('#'+id);
  
positive.code:                                 		<li><a href="#tab_2" data-toggle="tab">Tasks</a></li>
  		                                <li><a href="#tab_6" data-toggle="tab">Calendar</a></li>
  		                                <li><a href="#tab_timeline" data-toggle="tab">Timeline</a></li>
  		                                <li><a href="#tab_5" data-toggle="tab">Timeline</a></li>
  		                                <li><a href="#tab_3" data-toggle="tab">Files</a></li>
  		                                <li><a href="#tab_4" data-toggle="tab">Photos</a></li>
  <!-- 		                                <li><a href="#tab_7" data-toggle="tab">Map</a></li> -->
  
negative.code:             });
          });
      </script>
      
      <script type="text/javascript">
      var demo_tasks = {
      		"data":[
      			{"id":11, "text":"Project #1", "start_date":"28-03-2013", "duration":"11", "progress": 0.6, "open": true},
      			{"id":1, "text":"Project #2", "start_date":"01-04-2013", "duration":"18", "progress": 0.4, "open": true},
  
      			{"id":2, "text":"Task #1", "start_date":"02-04-2013", "duration":"8", "parent":"1", "progress":0.5, "open": true},
      			{"id":3, "text":"Task #2", "start_date":"11-04-2013", "duration":"8", "parent":"1", "progress": 0.6, "open": true},
      			{"id":4, "text":"Task #3", "start_date":"13-04-2013", "duration":"6", "parent":"1", "progress": 0.5, "open": true},
      			{"id":5, "text":"Task #1.1", "start_date":"02-04-2013", "duration":"7", "parent":"2", "progress": 0.6, "open": true},
      			{"id":6, "text":"Task #1.2", "start_date":"03-04-2013", "duration":"7", "parent":"2", "progress": 0.6, "open": true},
      			{"id":7, "text":"Task #2.1", "start_date":"11-04-2013", "duration":"8", "parent":"3", "progress": 0.6, "open": true},
      			{"id":8, "text":"Task #3.1", "start_date":"14-04-2013", "duration":"5", "parent":"4", "progress": 0.5, "open": true},
      			{"id":9, "text":"Task #3.2", "start_date":"14-04-2013", "duration":"4", "parent":"4", "progress": 0.5, "open": true},
      			{"id":10, "text":"Task #3.3", "start_date":"14-04-2013", "duration":"3", "parent":"4", "progress": 0.5, "open": true},
      			
      			{"id":12, "text":"Task #1", "start_date":"03-04-2013", "duration":"5", "parent":"11", "progress": 1, "open": true},
      			{"id":13, "text":"Task #2", "start_date":"02-04-2013", "duration":"7", "parent":"11", "progress": 0.5, "open": true},
      			{"id":14, "text":"Task #3", "start_date":"02-04-2013", "duration":"6", "parent":"11", "progress": 0.8, "open": true},
      			{"id":15, "text":"Task #4", "start_date":"02-04-2013", "duration":"5", "parent":"11", "progress": 0.2, "open": true},
      			{"id":16, "text":"Task #5", "start_date":"02-04-2013", "duration":"7", "parent":"11", "progress": 0, "open": true},
  
      			{"id":17, "text":"Task #2.1", "start_date":"03-04-2013", "duration":"2", "parent":"13", "progress": 1, "open": true},
      			{"id":18, "text":"Task #2.2", "start_date":"06-04-2013", "duration":"3", "parent":"13", "progress": 0.8, "open": true},
      			{"id":19, "text":"Task #2.3", "start_date":"10-04-2013", "duration":"4", "parent":"13", "progress": 0.2, "open": true},
      			{"id":20, "text":"Task #2.4", "start_date":"10-04-2013", "duration":"4", "parent":"13", "progress": 0, "open": true},
      			{"id":21, "text":"Task #4.1", "start_date":"03-04-2013", "duration":"4", "parent":"15", "progress": 0.5, "open": true},
      			{"id":22, "text":"Task #4.2", "start_date":"03-04-2013", "duration":"4", "parent":"15", "progress": 0.1, "open": true},
      			{"id":23, "text":"Task #4.3", "start_date":"03-04-2013", "duration":"5", "parent":"15", "progress": 0, "open": true}
      		],
      		"links":[
      			{"id":"1","source":"1","target":"2","type":"1"},
      			{"id":"2","source":"2","target":"3","type":"0"},
      			{"id":"3","source":"3","target":"4","type":"0"},
      			{"id":"4","source":"2","target":"5","type":"2"},
      			{"id":"5","source":"2","target":"6","type":"2"},
      			{"id":"6","source":"3","target":"7","type":"2"},
      			{"id":"7","source":"4","target":"8","type":"2"},
      			{"id":"8","source":"4","target":"9","type":"2"},
      			{"id":"9","source":"4","target":"10","type":"2"},
      			{"id":"10","source":"11","target":"12","type":"1"},
      			{"id":"11","source":"11","target":"13","type":"1"},
      			{"id":"12","source":"11","target":"14","type":"1"},
      			{"id":"13","source":"11","target":"15","type":"1"},
      			{"id":"14","source":"11","target":"16","type":"1"},
      			{"id":"15","source":"13","target":"17","type":"1"},
      			{"id":"16","source":"17","target":"18","type":"0"},
      			{"id":"17","source":"18","target":"19","type":"0"},
      			{"id":"18","source":"19","target":"20","type":"0"},
      			{"id":"19","source":"15","target":"21","type":"2"},
      			{"id":"20","source":"15","target":"22","type":"2"},
      			{"id":"21","source":"15","target":"23","type":"2"}
      		]
      	};
  
      	var users_data = {
      		"data":[
      			{"id":1, "text":"Project #1", "start_date":"01-04-2013", "duration":"11", "progress": 0.6, "open": true, "users": ["John", "Mike", "Anna"], "priority": "2"},
      			{"id":2, "text":"Task #1", "start_date":"03-04-2013", "duration":"5", "parent":"1", "progress": 1, "open": true, "users": ["John", "Mike"], "priority": "1"},
      			{"id":3, "text":"Task #2", "start_date":"02-04-2013", "duration":"7", "parent":"1", "progress": 0.5, "open": true, "users": ["Anna"], "priority": "1"},
      			{"id":4, "text":"Task #3", "start_date":"02-04-2013", "duration":"6", "parent":"1", "progress": 0.8, "open": true, "users": ["Mike", "Anna"], "priority": "2"},
      			{"id":5, "text":"Task #4", "start_date":"02-04-2013", "duration":"5", "parent":"1", "progress": 0.2, "open": true, "users": ["John"], "priority": "3"},
      			{"id":6, "text":"Task #5", "start_date":"02-04-2013", "duration":"7", "parent":"1", "progress": 0, "open": true, "users": ["John"], "priority": "2"},
      			{"id":7, "text":"Task #2.1", "start_date":"03-04-2013", "duration":"2", "parent":"3", "progress": 1, "open": true, "users": ["Mike", "Anna"], "priority": "2"},
      			{"id":8, "text":"Task #2.2", "start_date":"06-04-2013", "duration":"3", "parent":"3", "progress": 0.8, "open": true, "users": ["Anna"], "priority": "3"},
      			{"id":9, "text":"Task #2.3", "start_date":"10-04-2013", "duration":"4", "parent":"3", "progress": 0.2, "open": true, "users": ["Mike", "Anna"], "priority": "1"},
      			{"id":10, "text":"Task #2.4", "start_date":"10-04-2013", "duration":"4", "parent":"3", "progress": 0, "open": true, "users": ["John", "Mike"], "priority": "1"},
      			{"id":11, "text":"Task #4.1", "start_date":"03-04-2013", "duration":"4", "parent":"5", "progress": 0.5, "open": true, "users": ["John", "Anna"], "priority": "3"},
      			{"id":12, "text":"Task #4.2", "start_date":"03-04-2013", "duration":"4", "parent":"5", "progress": 0.1, "open": true, "users": ["John"], "priority": "3"},
      			{"id":13, "text":"Task #4.3", "start_date":"03-04-2013", "duration":"5", "parent":"5", "progress": 0, "open": true, "users": ["Anna"], "priority": "3"}
      		],
      		"links":[
      			{"id":"10","source":"11","target":"12","type":"1"},
      			{"id":"11","source":"11","target":"13","type":"1"},
      			{"id":"12","source":"11","target":"14","type":"1"},
      			{"id":"13","source":"11","target":"15","type":"1"},
      			{"id":"14","source":"11","target":"16","type":"1"},
  
      			{"id":"15","source":"13","target":"17","type":"1"},
      			{"id":"16","source":"17","target":"18","type":"0"},
      			{"id":"17","source":"18","target":"19","type":"0"},
      			{"id":"18","source":"19","target":"20","type":"0"},
      			{"id":"19","source":"15","target":"21","type":"2"},
      			{"id":"20","source":"15","target":"22","type":"2"},
      			{"id":"21","source":"15","target":"23","type":"2"}
      		]
      	};
      	
      	
  	gantt.config.work_time = true;
  	gantt.setWorkTime({hours : [8, 12, 13, 17]});//global working hours. 8:00-12:00, 13:00-17:00
  
  	gantt.config.scale_unit = "day";
  	gantt.config.date_scale = "%l, %F %d";
  	gantt.config.min_column_width = 20;
  	gantt.config.duration_unit = "hour";
  	gantt.config.scale_height = 20*3;
  
  	gantt.templates.task_cell_class = function(task, date){
  		var css = [];
  		if(date.getHours() == 7){
  			css.push("day_start");
  		}
  		if(date.getHours() == 16){
  			css.push("day_end");
  		}
  		if(!gantt.isWorkTime(date, 'day')){
  			css.push("week_end");
  		}else if(!gantt.isWorkTime(date, 'hour')){
  			css.push("no_work_hour");
  		}
  		return css.join(" ");
  	};
  
  	var weekScaleTemplate = function(date){
  		var dateToStr = gantt.date.date_to_str("%d %M");
  		var weekNum = gantt.date.date_to_str("(week %W)");
  		var endDate = gantt.date.add(gantt.date.add(date, 1, "week"), -1, "day");
  		return dateToStr(date) + " - " + dateToStr(endDate) + " " + weekNum(date);
  	};
  
  	gantt.config.subscales = [
  		{unit:"week", step:1, template:weekScaleTemplate},
  		{unit:"hour", step:1, date:"%G"}
  
  	];
  
  	function showAll(){
  		gantt.ignore_time = null;
  		gantt.render();
  	}
  	
  	function hideWeekEnds(){
  		gantt.ignore_time = function(date){
  			return !gantt.isWorkTime(date, "day");
  		};
  		gantt.render();
  	}
  	
  	function hideNotWorkingTime(){
  		gantt.ignore_time = function(date){
  			return !gantt.isWorkTime(date);
  		};
  		gantt.render();
  	}
  
  	gantt.init("gantt-chart");
  	gantt.parse(demo_tasks);
  </script>
  </body>
  </html>