/*** inline image zooming ***/

//display image zoom icon on hover

$(window).load(function() {
	$("a.zoomimage").append("<span></span>");
    $("a.zoomimage").hover(function(){
        $(this).children("span").fadeIn(300);
    },function(){
        $(this).children("span").fadeOut(200);
    });
});


//trigger fancybox to load pix into lightbox and show caption

$(window).load(function() {
$("a.zoomimage").fancybox({
	'titlePosition'	:	'over',
	'onComplete'	:	function() {
		$("#fancybox-wrap").hover(function() {
			$("#fancybox-title").show();
		}, function() {
			$("#fancybox-title").hide();
		});
	}
});
});


/*** end inline image zooming stuff ***/



/*** trigger fancybox for contact and feedback popups ***/

$(window).load(function(){

	$("#contact").fancybox({
		'width' : '50%',
		'height' : '50%',
		'autoScale' : true,
		'transitionIn' : 'none',
		'transitionOut' : 'none',
		'type' : 'inline'
	});
	
	$("#feedback").fancybox({
		'width' : '50%',
		'height' : '50%',
		'autoScale' : true,
		'transitionIn' : 'none',
		'transitionOut' : 'none',
		'type' : 'inline'
	});	
	
});
 
/*** end contact and feedback popups ***/




