$(document).ready(function() {
    $('.pngfix').pngFix();
    $('.flash').animate({'opacity': '1.0'},4000).fadeOut();
    
    $('.faq-container h3 a').click(function(){
        p = $(this).parent().parent().find('div.answer');
        if (p.css('display') == 'block') {
            p.hide('fast');
            $(this).css('border-bottom', '1px dashed #999999')
        } else {
            $('div.answer').hide();
            p.show('fast');
            $(this).css('border-bottom', 'none')
        }
    });
    
    $('.place-image-caption').animate({'opacity' : 0.2}, 1000);
    
    $('.place-image').hover(
        function(){
            $(this).find('img').animate({'width' : 50, 'height' : 50, 'marginLeft' : '-20px', 'borderWidth' : '2px'}, 250)
            $(this).parent().find('.place-image-caption').animate({'paddingTop' : 15, 'paddingRight' : 25, 'opacity' : 1.0, 'fontSize' : '16px'}, 250);
        }
        ,
        function(){
            $(this).find('img').animate({'width' : 25, 'height' : 25, 'marginLeft' : 0, 'borderWidth' : 0}, 250)
            $(this).parent().find('.place-image-caption').animate({'paddingTop' : '5px', 'paddingRight' : '5px', 'opacity' : 0.2, 'fontSize' : '12px'}, 350);
        }
    );
    
});

function mapFancyBoxes() {
	$(".fancy").fancybox({'overlayOpacity' : 0.8});
}
