//jQuery Functions for PHP/MySql Pagination


$(function(){
	  $('#pagerFirst').click(function(){
             
                location.href = '/manageassets/index/page/1/display/'+currentDisplayNumber;

              
          })
        })
$(function(){
	  $('#pagerPrev').click(function(){
	        previousOff = currentOffset-currentDisplayNumber;
                if((currentPage-1)>0){previous = currentPage-1; } 
                else { previous = 1;}
                document.location = '/manageassets/index/page/'+previous+'/display/'+currentDisplayNumber;
          })
        })

$(function(){
	  $('#pagerNext').click(function(){
               nextOff = currentOffset+currentDisplayNumber;
               if( (currentOffset+1) > totalCount){ return false;}
               next = currentPage + 1;  
               document.location = '/manageassets/index/page/'+next+'/display/'+currentDisplayNumber;
          
            
          })
        })
        
$(function(){
	  $('#pagerLast').click(function(){
            last =   Math.ceil(totalCount/currentDisplayNumber);
            URL = '/manageassets/index/page/'+last+'/display/'+currentDisplayNumber;
            window.location.href = URL; 
             
          })
        })
