$(document).ready(function() {

    $("a.grouped").fancybox({
        'overlayOpacity'   : '0.9' ,
        'overlayBackgroundColor'    : '#000000',
        'overlayColor' : '#333',
        'transitionIn'      : 'elastic',
        'transitionOut'     : 'elastic',
        'titlePosition'     : 'outside',
            'speedIn'           : '600',
            'speedOut'          : '600',        
        'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
            return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
        }
    });

	$("#framous").fancybox({
        'overlayOpacity'   : '0.9' ,
        'overlayBackgroundColor'    : '#000000',
        'overlayColor' : '#333',
		'width'				: 700,
		'height'			: 600,
        'autoScale'     	: false,
        'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'type'				: 'iframe'
	});        


  
    $('a[href=#topanchor]').click(function(){
        $('html, body').animate({scrollTop:0}, 'slow');
        return false;

    });
    

        $('#content ul.linklist li.refteaser').mouseover(function(){
            $(this).css('border', 'solid 1px #d0d0d0');
            $(this).css('background-color', '#e9e9e9');
            $(this).css('cursor', 'pointer')
    
        });

        $('#content ul.linklist li.refteaser').mouseout(function(){
            $(this).css('border', 'solid 1px #e0e0e0');
            $(this).css('background-color', '#f6f6f6');
        });
        
        $('#content ul.linklist li.refteaser').click(function(){
            location.href = $(this).find('a').attr('href');
        });
});



