$(function(){
	//display last tweet
	$.getJSON("http://twitter.com/statuses/user_timeline/texascampground.json?callback=?", function(data) {
     $("#twitter").html(data[0].text);
});
	
	//zebra striping for rates table
	$("#rateTable tr:odd").addClass('zebraTable');

	//image rotator
	$(function(){
    $('#beautyShot img:gt(0)').hide();
    setInterval(function(){
      $('#beautyShot :first-child').fadeOut()
         .next('img').fadeIn()
         .end().appendTo('#beautyShot');}, 
      5000);
});

// weather widget
	
		$(function() {
			
			
			$.simpleWeather({
				zipcode: '78382',
				unit: 'f',
				success: function(weather) {
					html = '<h2>'+weather.city+', '+weather.region+'</h2>';
					html += '<img width="125px" src="'+weather.image+'">';
					html += '<p>'+weather.temp+'&deg; '+weather.units.temp+'<br /><span>'+weather.currently+'</span></p>';
					
					$("#weather").html(html);
				},
				error: function(error) {
					$("#weather").html('<p>'+error+'</p>');
				}
			});
		});

	
});



