$(document).ready(function() {

    $("#header a, a.main_href").fadeTo(0, 0);
	$("#header a, a.main_href").hover(
		function () {
		$(this).queue([]).fadeTo("fast", 1);
		},
		function () {
			$(this).fadeTo("fast", 0);
	});
    
	$("img.noscale.qtip").each(function() {
		$(this).qtip({
			content: '<img src="/images/zoom.png"/>',
			position: 'bottomLeft',
			hide: {
				fixed: true
			},
			style: {
				padding: 0,
				color: '',
				border: {
					width: 0,
					radius: 0,
					color: ''
				},
				background: '',
				title: { width: 754}
			}
		});
	});
	
	$("a#single_image").fancybox();
	$("a#inline").fancybox({
		'hideOnContentClick': true
	});
    $("a.group").fancybox({
        'overlayOpacity'	:	0.9,
        'overlayColor'		:	'#123e3d',
        'padding'           :   3,
        'showCloseButton'   :   false,
        'cyclic'            :   true,
        'titleShow'         :   false
    });
	
});