$(document).ready(function(){
	$("#subnav > ul").css({display:"none"});
	$(".rose .content").css({display:"none"});
	$("#subnav-title").css({marginBottom:"0px"});
	$("#subnav-title").hover(
		function(event){
			$(event.target).addClass("hover");
		},
		function(event){
			$(event.target).removeClass("hover")
		}
	);
	
    $("#subnav-title").toggle(
        function(event){
            $("#subnav-title span").html("&#9650;");
		    $("#subnav-title").animate({marginBottom:"10px"});
            $("#subnav > ul").css({display:"none"}).slideDown();
        },
        function(event) {
            $("#subnav-title span").html("&#9660;");
		    $("#subnav-title").animate({marginBottom:"0px"});
            $("#subnav > ul").slideUp();
        }
    );
    
    $(".rose h3").after("<small>Show Details</small><br />")
    
    $(".rose small").toggle(
    	function(event){
    		$(event.target).siblings(".content").slideDown();
    		$(event.target).html("Hide Details");
    	},
    	function(event){
    		$(event.target).siblings(".content").slideUp();    	
    		$(event.target).html("Show Details");

    	}
    );
    
    $('img.captify, img.captify-ten-m-l, img.captify-ten-m-r').captify({
		// all of these options are... optional
		// ---
		// speed of the mouseover effect
		speedOver: 150,
		// speed of the mouseout effect
		speedOut: 200,
		// how long to delay the hiding of the caption after mouseout (ms)
		hideDelay: 100,
		// 'fade' or 'slide'
		animation: 'fade',	  	
		// text/html to be placed at the beginning of every caption
		prefix: '',	
		// the name of the CSS class to apply to the caption box
		className: 'caption'
	});
	
    /* FancyB settings*/
    $("a.fbsingle").fancybox({
        'zoomSpeedIn':	300,
        'zoomSpeedOut':	300,
        'overlayShow':	true
    });

    $("a.group").fancybox({
        'zoomSpeedIn':	300,
        'zoomSpeedOut':	300,
        'overlayShow':	true
    });
    /* END FancyB settings*/
    	
});