title: How do I get the 'Flexslider' current image number into a variable which I can use in a function?
body: <p>I am using <a href="http://www.woothemes.com/flexslider/">flexslider</a>. There is an example under the advanced tap on <a href="http://www.woothemes.com/flexslider/">this</a> page (in the section <strong>"The new, robust Callback API"</strong> where they use <code>slider.currentSlide</code> to get the number of the current slide. </p>
  
  <p>How can I access this value in a completely different function? I am thinking of a global variable but I don't know if that will work and I don't know if it's possible to declare a variable within a function as global.</p>