/*
 * jQuery ctRotator Plugin briget
 * Convert an ul or ol list to a useable data source for ctRotator
 * 
 * Under MIT license http://www.opensource.org/licenses/mit-license.php
 *
 * @author: Cuong Tham
 * @version: 1.0
 * @requires jQuery v1.2.6 or later
 * @requires ctRotator
 *
 * @headsTip: Examples and documentation at: http://thecodecentral.com
 */

function ctRotatorBridgeLi(container){
  this.container = container;
}

ctRotatorBridgeLi.prototype = {
  getDataSource:function(){
    var dataSource = [];
    this.container.find('li').each(function(){
//	  var e = $(this);
//          alert($(this).html());
//	  if(e.children('a').size() == 0){
//	    dataSource.push({title:e.text()});
//	  }else{
//	    e = e.children('a');
//	    dataSource.push({title:e.text(), url:e.attr('href')});
//	  }
          dataSource.push({title:$(this).html()});
          
	});
	return dataSource;
  }
};

