<style>
/* Scroller Box */
#scroller_container3 {
 height: 120px;
 overflow: hidden;
}
/* Scoller Box */

/* CSS Hack Safari */
#dummy {;# }

#scroller_container3 {
 overflow: auto;
}
</style>

<div class="col-md-12 col-sm-6" style="padding:20px 0px;">
                         <!-- NEWS THUMB -->
                         <div class="news-thumb wow fadeInUp" data-wow-delay="0.4s">
                         		<div class="news-info">
                                     <h3>JPC Events</h3>
                               </div>
                          
                               <?php
									if(count($events)>0){
									?>
                             <div style="padding:15px;">    
									<div id="scroller_container3">
												<div class="jscroller2_up jscroller2_speed-50 jscroller2_mousemove">
									<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0" style="padding-left:15px;">
									  <?php 
									  foreach($events as $event){
									  ?>
									  <tr>
										<td class="date-txt"><?php echo date('d.m.Y',strtotime($event->startdate))?></td>
									  </tr>
									  <tr>
										<td class="news-txt"><a href="#" onclick="gotolink_incl('eventdetails','<?php echo $event->id;?>')" class="bnav"><?php echo $event->title?>.</a></td>
									  </tr>
									  <tr>
									   <!-- <td align="right" class="news-txt"><em>- by <?php //echo $event->member?></em></td>-->
									  </tr>
									  <tr>
										<td>&nbsp;</td>
									  </tr>
									  <?php
									  }
									  ?>
									</table>
									</div></div></div>
									<?php }else{echo "Not Available";}?>
									</td>
								  </tr>
								</table>
                               
                          </div>
                       </div>

<br><br>
	
<form name="frmevent_incl" id="frmevent_incl" method="post">
<input type="hidden" id="event_id" name="event_id" />
</form>
<script>
function gotolink_incl(u,event_id)
{
	document.frmevent_incl.event_id.value=event_id;
	document.frmevent_incl.action = u;
	
	document.frmevent_incl.submit();
}
</script>