function doSlider( tmpItem ){

  var tmpViewWidth = 0;
  var tmpScrollerWidth = 0;
  
  // initialize scrollable 
  $(tmpItem).each(function(){
    // Set up scroller      
    tmpPrev = $(this).prevAll(".prevPage");
    tmpNext = $(this).nextAll(".nextPage");
    tmpViewWidth = tmpViewWidth + $(this).width();
    $(this).find("a").each(function(){
      tmpScrollerWidth = tmpScrollerWidth + $(this).width() + parseInt(($(this).css("margin-left")).replace("px", "")) + parseInt(($(this).css("margin-right")).replace("px", ""));
    });
    
    tmpScroller = $(this).find(".items");
    tmpScroller.css("left", eval(tmpScrollerWidth * -1 ) + tmpViewWidth);
    tmpNext.css("visibility","hidden");
    
    // Actions
    tmpPrev.click(function(){
      tmpCurrent = parseInt((tmpScroller.css("left")).replace("px", ""))
      
      if( (tmpCurrent + tmpViewWidth) >= 0 ) {
        tmpScroller.animate({ left: 0}, 800 );
        tmpPrev.css("visibility","hidden");
        tmpNext.css("visibility","visible");
      } else {
        tmpScroller.animate({ left: (tmpCurrent + tmpViewWidth)}, 800 );
        tmpPrev.css("visibility","visible");
        tmpNext.css("visibility","visible");
      }
      
    });
  
    tmpNext.click(function(){    
      tmpCurrent = parseInt((tmpScroller.css("left")).replace("px", ""))
      
      if( (tmpCurrent - tmpViewWidth) <= ((tmpScrollerWidth * -1 ) + tmpViewWidth) ){
        tmpCurrent = parseInt((tmpScroller.css("left")).replace("px", ""))
        tmpScroller.animate({ left: ((tmpScrollerWidth * -1 ) + tmpViewWidth) }, 800 );
        tmpNext.css("visibility","hidden");
        tmpPrev.css("visibility","visible");
      } else {
        tmpCurrent = parseInt((tmpScroller.css("left")).replace("px", ""))
        tmpScroller.animate({ left: (tmpCurrent - tmpViewWidth)}, 800 );
        tmpPrev.css("visibility","visible");
        tmpNext.css("visibility","visible");
      }
      
  
    });
  });

}

function enlargeWindow(){
  window.moveTo(0,0);
  window.resizeTo(screen.availWidth,screen.availHeight);
}