jQuery(document).ready(function(){
    jQuery('#mycarousel').jcarousel({
        vertical: false,
        scroll: 1
    });

	jQuery("a#form_result").fancybox({
		'hideOnContentClick': true
	});

if ((jQuery(".errortext").is(":parent")) || (jQuery(".notetext").is(":parent"))) {

/*hack to avoid bitrix bug*/
if (jQuery(".errortext").is(":parent")) {jQuery(".notetext").remove();}

jQuery("#form_result").trigger("click");
}

	jQuery("a#single_image").fancybox();

	jQuery("a.grouped_images").fancybox({
		'transitionIn'	:	'none',
		'transitionOut'	:	'none',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	false
	});

/*	jQuery("a.iframe").fancybox({
      'width': 610,
      'height': 750,
      'autoScale': false,
      'hideOnOverlayClick': false,
      'hideOnContentClick': false,
      'transitionIn': 'none',
      'transitionOut': 'none',
      'type': 'ajax',
      'margin': 0, 'padding': 0,
      'transitionIn': 'fade'
	});


*/
});


/*jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        vertical: false,
        scroll: 1
    });

});*/
