jQuery(function(){
   jQuery('.slider-one').movingBoxes({
    startPanel  : 3,      // start with this panel
    width       : 800,    // overall width of movingBoxes  
    imageRatio  : 0.77,   // Image ration set to 1:1
    panelWidth  : 0.20,
    reducedSize : .8
   });
   
   var i, t = '', len = jQuery('.slider-one .panel').length + 1;
   for ( i=1; i<len; i++ ){
    t += '<a href="#" rel="' + i + '">' + i + '</a> ';
   }
   jQuery('.dlinks')
    .find('span').html(t).end()
    .find('a').click(function(){
     jQuery('.slider-one').data('movingBoxes').currentPanel( jQuery(this).attr('rel') );
     
	 return false;
    });
});

function reloadSlider(){
   jQuery('.slider-one').movingBoxes({
    startPanel  : 3,      // start with this panel
    width       : 800,    // overall width of movingBoxes  
    imageRatio  : 0.77,   // Image ration set to 1:1
    panelWidth  : 0.20,
    reducedSize : .8
   });
   
   var i, t = '', len = jQuery('.slider-one .panel').length + 1;
   for ( i=1; i<len; i++ ){
    t += '<a href="#" rel="' + i + '">' + i + '</a> ';
   }
   jQuery('.dlinks')
    .find('span').html(t).end()
    .find('a').click(function(){
     jQuery('.slider-one').data('movingBoxes').currentPanel( jQuery(this).attr('rel') );
     
	 return false;
    });
}
	
