$(document).ready(function(){
	
	$(function(){
		itemsPerPage = 5;
		paginatorStyle = 3;
		paginatorPosition = 'bottom';
		enableGoToPage = false;
	
		$(".side_calendar_list").pagination();
		
	});
	
	$('ul.side_calendar_list li.calendar_item').hover(
	  function () {
		$(this).addClass("hover");
		
	  }, 
	  function () {
		$(this).removeClass("hover");
	  }
	);

	
	
	 if ($("#box-weather").length) {
        $.simpleWeather({
            zipcode: '34135 ',
            unit: 'f',
            success: function(weather) {
                $("#box-weather").append('<div class="weatherpic"><img width="120" src="'+weather.image+'" /></div>');
                $("#box-weather").append('<h2>'+weather.temp+'&deg; '+weather.units.temp+'</h2>');
                $("#box-weather").append("<span>"+weather.currently+"</span>");
            
               	$("#box-weather").append('<a href="'+weather.link+'" target="_blank">View Forecast &raquo;</a>');
               	
               	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
                    var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
                    if (ieversion==6) {
                        DD_belatedPNG.fix('#box-weather .weatherpic img');
                        $("#box-weather a").css("color", "#000000");
                        $("#box-weather a").css("font-weight", "bold");
                    }
                }
            },
            error: function(error) {
                $("#box-weather").html('<p>'+error+'</p>');
            }
        });
    }
	
});
