$(document).ready(function(){

	$(".btn-slide").click(function(){
		$("#panel").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	 
});

$(document).ready(function(){	
		$("#slider").easySlider();
	});




(function($){
    $.fn.hoverFadeColor = function(settings){
        var config = {
            'color': '#003f6f',
            'fadeToSpeed': 300,
            'fadeFromSpeed': 700
        };
        
        if (settings) 
            $.extend(config, settings);
        
        this.each(function(){
            var originalColor = $(this).css("color");
            $(this).hover(function(){
                $(this).stop().animate({
                    color: config.color
                }, config.fadeToSpeed);
            }, function(){
            
                $(this).stop().animate({
                
                    color: originalColor
                }, config.fadeFromSpeed);
            });
        });
        return this;
    };
})(jQuery);


 $(document).ready(function() {
    $("a").hoverFadeColor();
  });
  
  
  
  
   $(document).ready(function(){
        $(".tweet").tweet({
            username: "rboconsulting",
            join_text: "auto",
            count: 1,
            auto_join_text_default: "", 
            auto_join_text_ed: "",
            auto_join_text_ing: "",
            auto_join_text_reply: "",
            auto_join_text_url: "",
            loading_text: "<img src='../_images/icons/ajax-loader.gif' alt='' />"
        });
    });







var mouseOvers = new Array();
	var mouseOuts = new Array();

	function MouseOvers (section) {
		if (document.getElementById(section)) { 
			var nav = document.getElementById(section);
			var imgs = nav.getElementsByTagName("img");


		for (i = 0; i < imgs.length; i++) {

			if (imgs[i].src.search(/on.gif$/) == -1) { 
			imgs[i].onmouseover = function () {
				this.src = mouseOvers[this.number + section].src;
			}
			imgs[i].onmouseout = function () {
				this.src = mouseOuts[this.number + section].src;
			}
		}
			var suffix = imgs[i].src.substring(imgs[i].src.lastIndexOf('.'));
			mouseOuts[i + section] = new Image();
			mouseOuts[i + section].src = imgs[i].src;
			mouseOvers[i + section] = new Image();
			mouseOvers[i + section].src = imgs[i].src.substring(0, imgs[i].src.lastIndexOf('.')) + "_on" + suffix;
			imgs[i].number = i;
		}
		}
	}



	        function pageup(e) {
		        UAGENT = navigator.userAgent.toUpperCase();
		        if (UAGENT.indexOf("MSIE") >=0) { posi = event.y; }
		        else { posi = e.pageY; }
		        moveObje(posi);
	        }
		        function moveObje(position) {
		        move = position / 15;
		        point = parseInt(position - move);
		        scrollTo(0,point);
		        if (point > 0) { setTimeout("moveObje(point)",15); }
	        }






