/**
 * Javascript for Default Theme
 */
jQuery(document).ready(function(){
    jQuery("ul.sf-menu").supersubs({
        minWidth:    12,                                // minimum width of sub-menus in em units
        maxWidth:    27,                                // maximum width of sub-menus in em units
        extraWidth:  1                                  // extra width can ensure lines don't sometimes turn over
    }).superfish({
        delay:       250,                               // delay on mouseout
        animation:   {opacity:'show',height:'show'},    // fade-in and slide-down animation
        speed:       'fast',                            // faster animation speed
        autoArrows:  true,                             // disable generation of arrow mark-up
        dropShadows: true                              // disable drop shadows
    });
});

jQuery(document).ready(function(){
			jQuery("a#example1").fancybox({
				'titleShow'		: false
			});
			jQuery("a[rel=example_group]").fancybox({
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'titlePosition' 	: 'over',
				'easingIn'			: 'swing',
				'easingOut'			: 'swing',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
});

jQuery(document).ready(function(){
			jQuery("a.view_video").fancybox({
				'titleShow'		: false
			});
});
jQuery(document).ready(function(){
			jQuery("a.computation").fancybox({
				'titleShow'		: false,
				'autoDimensions'	: false,
				'width'       		: 500,
				'height'       		: 'auto',
			});
});
jQuery(document).ready(function(){
			jQuery(".map_me").fancybox({
				'titleShow'		: false,
				'autoDimensions'	: false,
				'width'       		: 500,
				'height'       		: 350,
			});
});


