﻿jQuery(document).ready( function() {
	
	Cufon.replace('.myriadPro' , { fontFamily: 'myriadpro', hover: true } );	
	
	jQuery(window).resize( function() {
		
		var contentAreaWidth = parseInt(jQuery(window).width()) - (parseInt(jQuery("#leftArea").outerWidth()) + parseInt(jQuery("#welcomeArea").outerWidth()));
		
		jQuery("#contentArea").css("width",contentAreaWidth);
		
	});
	
	jQuery(window).resize();
	
	fancyBoxImage = jQuery("a.zoom");
	
	if ( fancyBoxImage.length > 0 )
	{
		fancyBoxImage.fancybox({
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'titlePosition' 	: 'over',
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				return '<span id="fancybox-title-over"> ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
			}
		});
	}
	
});
