/********** jquery tooltip plugin function **********/

    $(function(){
    $(".tooltip").tipTip();
});

/********** jquery captify plugin function **********/
$(function(){
	$('img.captify').captify({
		// all of these options are... optional
		// ---
		// speed of the mouseover effect
		speedOver: 'fast',
		// speed of the mouseout effect
		speedOut: 'normal',
		// how long to delay the hiding of the caption after mouseout (ms)
		hideDelay: 500,
		// 'fade', 'slide', 'always-on'
		animation: 'slide',
		// text/html to be placed at the beginning of every caption
		prefix: '',
		// opacity of the caption on mouse over
		opacity: '0.7',
		// the name of the CSS class to apply to the caption box
		className: 'caption-bottom',
		// position of the caption (top or bottom)
		position: 'bottom',
		// caption span % of the image
		spanWidth: '100%'
	});
});

/********** footer image fading function **********/
    jQuery(document).ready(function(){
    jQuery(".footerinner img").fadeTo("slow", 0.8);
    jQuery(".footerinner img").hover(function(){
    jQuery(this).fadeTo("medium", 1); // This should set the opacity to 80% on hover
    },function(){
    jQuery(this).fadeTo("slow", 0.8); // This should set the opacity back to 50% on mouseout
    });
        });

/********** footer image fading function **********/
    jQuery(document).ready(function(){
    jQuery(".footerwidgets img").fadeTo("slow", 0.8);
    jQuery(".footerwidgets img").hover(function(){
    jQuery(this).fadeTo("medium", 1); // This should set the opacity to 80% on hover
    },function(){
    jQuery(this).fadeTo("slow", 0.8); // This should set the opacity back to 50% on mouseout
    });
        });
/********** buttons fading function **********/
    jQuery(document).ready(function(){
    jQuery(".button").fadeTo("slow", 1);
    jQuery(".button").hover(function(){
    jQuery(this).fadeTo("medium", 0.8); // This should set the opacity to 80% on hover
    },function(){
    jQuery(this).fadeTo("slow", 1); // This should set the opacity back to 50% on mouseout
    });
        });
/********** navigation fading function **********/
    jQuery(document).ready(function(){
    jQuery("#topnavigation a").fadeTo("slow", 1);
    jQuery("#topnavigation a").hover(function(){
    jQuery(this).fadeTo("medium", 0.4); // This should set the opacity to 80% on hover
    },function(){
    jQuery(this).fadeTo("slow", 1); // This should set the opacity back to 50% on mouseout
    });
        });
