jQuery.fn.fadeToggle = function(speed, easing, callback) {
    return this.animate({opacity: 'toggle'}, speed, easing, callback);
};

//results per 'page' when there is paginated data
var currentUrl = window.location.pathname;
$(document).ready(function(){
	
	setTimeout(function(){ $(".success").fadeOut(500);}, 5000);
	$(document).pngFix();
	
	$('#cycle').cycle({ 
		fx:    'fade', 
		speed:  1800, //speed of transition
		timeout: 3500, //how long the image stays for
		cleartypeNoBg:  true
	 });
	
	
	
	$("#fgtPwd").click(function(){
		$("#fgtPwdDiv").fadeToggle(250);
	return false; 
	})
	
	$("ul#nav object").hover(
      function () {
        //alert("hovered");
      }, 
      function () {
        //alert("hovered off");
      }
    );

	
	
	
})

function show_month(month){
	$('.month').hide();
	$('#'+month).fadeIn(250);
	sifr_update();
	
}

function sifr_update(){

	//main navigation links
	sIFR.replace(oregon, {
	  transparent:true,
	  selector: 'ul#nav li',
	  preventWrap:true,
	  fitExactly:true,
	  tuneWidth:+9,
	  css: [
		   'a:link { color: #06559a; cursor:pointer; text-decoration:none; font-size:14px; }'
		  ,'a:hover { color: #72a4cf; text-decoration:none; }'
		  ,'.current { color: #72a4cf; text-decoration:none; font-size:15px }'
	 ]
	});
	
	//h1
	sIFR.replace(oregon, {
	  transparent:true,
	  selector: '#main h1',
	  fitExactly:true,
	  css: '.sIFR-root { color: #035295; width:auto; font-size:30px; leading:5; }'
	
	});
	
	//h2
	sIFR.replace(oregon, {
	  transparent:true,
	  selector: 'h2',
	  fitExactly:true,
	  tuneHeight:-3,
	  css: '.sIFR-root { color: #035295; width:auto; font-size:17px; leading:5; }'
	
	});
	
	//h3
	sIFR.replace(oregon, {
	  transparent:true,
	  selector: 'h3',
	  fitExactly:true,
	  tuneHeight:-3,
	  css: '.sIFR-root { color: #6195c2; width:auto; font-size:14px; leading:5; }'
	
	});
	
}