
jQuery(function(){	
	$('.side-contact a[href^="mailto:"]').addClass('mail');
	Cufon.replace("address, #mainnav, .reviews, .news, .side-contact a[href^='mailto:'], .prodbox, .pagetitle", {
	hover: true
	});
	$('#mainnav > li:first-child').addClass('first');
	$('#mainnav > li:last-child').addClass('last');
	$(document).ready(function(){
	// Remove link from gallery images
	$(".gallery-icon a").each(function () {
		$(this).replaceWith($(this.childNodes));
	});
	});
});

$(document).ready(function() {
	$("a[rel=example_group]").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>';
		}
	});
	
	$(".fancybox").fancybox({
		'width'				: 600,
		'height'			: 500,
		'autoScale'     	: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});
	
	$(".fancybox-image").fancybox({
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
	});
});




