﻿// For Rollover Fade In/Out

$(document).ready(function(){

    //Set opacity on each span to 0%
    $(".rollover").css({'opacity':'0'});

	$('.nav a').hover(
		function() {
			$(this).find('.rollover').stop().fadeTo(200, 1);
		},
		function() {
			$(this).find('.rollover').stop().fadeTo(200, 0);
		}
	)

});		


// For ColorBox

    $(document).ready(function() {
    //Examples of how to assign the ColorBox event to elements
        $("a[rel='example1']").colorbox({ width: "650px", height: "460px", iframe: true, scrollbars: false });

        //Example of preserving a JavaScript event for inline calls.
        $("#click").click(function() {
            $('#click').css({ "background-color": "#f00", "color": "#fff", "cursor": "inherit" }).text("Open this window again and this message will still be here.");
            return false;
        });
    });
