 /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * 
 * RSSLibrary Javascript framework, version 0.1
 * jsRss.js - version 0.1                   
 * 
 * 17th May, 2008 - Omar Adobati
 *
 * RSSLibrary is freely distributable under the terms of Apache-2 License.
 * For details, see the RSSLibrary web site: http://labs.adobati.it/jsRSS
 *
 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
 
Element.observe(window, 'onload', initRSS());

function initRSS(){
  var js = ['RSSUtils.js',
            'RSSParser.js',                      
            'RSSChannelOptionalImage.js',  
            'RSSChannelOptionalCloud.js',
            'RSSChannelOptionalTextInput.js',
            'RSSChannelOptional.js',                                   
            'RSSChannel.js',
            'RSSItem.js'                        
           ];
  var path = 'js/RSSLibrary/';
           
  var head = document.getElementsByTagName('head')[0];
  
  for(var i=0; i<js.length; i++){
    var tmpjs = document.createElement('script');
      tmpjs.setAttribute('src', path+js[i]);
      tmpjs.setAttribute('language', 'javascript');
      tmpjs.setAttribute('type', 'text/javascript');
      Element.insert(head, eval(tmpjs));
  }          
}
