// JavaScript Document

$(function () {
	$(function(){
        $('.slide-out-div').tabSlideOut({
            tabHandle: '.handle',                     //class of the element that will become your tab
            tabLocation: 'right',                      //side of screen where tab lives, top, right, bottom, or left
            speed: 400,                               //speed of animation
            action: 'click',                          //options: 'click' or 'hover', action to trigger animation
            fixedPosition: false                   //options: true makes it stick(fixed position) on scroll
        });

    });
				
        if ($.browser.msie && $.browser.version < 7) return;
        
        $('#mainnav li')
            .removeClass('highlight')
            .find('a')
            .append('<span class="hover" />').each(function () {
                    var $span = $('> span.hover', this).css('opacity', 0);
                    $(this).hover(function () {
                        // on hover
                        $span.stop().fadeTo(500, 1);
                    }, function () {
                        // off hover
                        $span.stop().fadeTo(500, 0);
                    });
                });
         	//Check for IE 7 and above
	if ($.browser.msie && $.browser.version < 7){$.sevenUp();}
	else{return;}       
    });
