/*	$('#rssdata').ready(function()
		{
			var pipe_url = 'http://pipes.yahoo.com/pipes/pipe.run?_id=jMDUIYI03BG6Ml0Ro_NLYQ&_render=json&_callback=?';
			
			$.getJSON(pipe_url,function(data)
			{
				$(data.value.items).each(function(index,item)
				{
					var item_html = '<li><a href="'+item.link+'">'+item.title+'</a></li>'+item.description;
                         
					//should also add the description?
					$('#rssdata ul.rss-items').append(item_html);
				});
				$('#rssdata div.loading').fadeOut();
				$('#rssdata ul.rss-items').slideDown();
			});
			
		});
        */
        /* global variables */
        
        
        
/*        
var descList = new Array();
var itemList = "";

$('#rssdata').ready(function() {
  var content = "";
  //var pipe_url = 'http://pipes.yahoo.com/pipes/pipe.run?_id=jMDUIYI03BG6Ml0Ro_NLYQ&_render=json&_callback=?';
  	var pipe_url = 'http://pipes.yahoo.com/pipes/pipe.run?_id=69af6fd5fdec963fe9ae0339328d0b85&_render=json&_callback=?';
		
  $.getJSON(pipe_url,
   function(json){
     if(json.count > 0) {
       content = output_feed_items(json);
     } else {
       content = "The request did not return results.";
     }
  	 $('#rssdata ul.rss-items').html(content);// append(item_html);
     //$("#pipes-feed-content").html(content);
     	$('#rssdata div.loading').fadeOut();
		$('#rssdata ul.rss-items').slideDown();
   }
  );
});

function output_feed_items(json) {
  document.title = json.value.title;
  var heading = '<h3>' + json.value.title + '</h3>';
  for (i=0;i<json.count;i++) {
    itemList += make_feed_item(json.value.items[i], i);
    descList.push(make_feed_desc(json.value.items[i], i));
  }
  return heading + itemList;
}

function make_feed_item(item, item_id) {
  return '<h4 id="heading-' + item_id + '">' +
      '<a href="#heading-' + item_id +
      '" onclick="toggle_feed_desc(' + item_id + ');">' +
      item.title + '</a></h4>';
}

function make_feed_desc(item, item_id) {
  var desc_info = 
  '<span="item-submitted">Published: ' +
    item.pubDate + '</span>';
  desc_info += ' - <a href="' + item.link + '">Link to Article</a>';
  var desc_info = '<div class="item-info">' + desc_info + '</div>';
  var test=item.thumbnail.url;
  return '<div id="desc-' + item_id + '">' +
    desc_info + item.description + '</div>';
}

function toggle_feed_desc(item_id) {
  var heading = '#heading-' + item_id;
  var item_div = 'div#desc-' + item_id;
  if ($(item_div).html()) {
    $(item_div).remove();
  } else {
    $(heading).after(descList[item_id]);
  }
}
        
 */  
    /* get rid of the yahoo banner -doesn't work ?*/
    $('.ybad').ready(function(){

         $('.ybad').hide();
         $('.gt').hide();      
        
        });

$(document).ready(function() { 
   $("#homeAccordion").accordion({
    active:false,   
    event:"mouseover",
    // fillSpace: true,   
    //collapsible: true,
    clearStyle: true 

   });  
    //$('.fade').cycle('fade');
   $('.fade').cycle({
    fx:     'scrollUp', 
    timeout: 6000, 
    delay:  -2000 
    });
   $('.homepage_pics').cycle({ 
    fx:    'fade', 
    delay: -4000 
    
   
        });
        
       
});

