$(document).ready(
	function() {
		$('.gopro-video').flash(
      {
        swf:'/jmks_vid.swf',
        width:447,
        height:255
      }
    );
    $('#bio').jcarousel({scroll:1});
		$('#bio').flash(
      {
        swf:'/bio.swf',
        width:800,
        height:350
      }
    );
  $('.teaser').condense({
              condensedLength: 100,
              moreText: '',
              lessText: '',
              ellipsis: "..."
              });
  //$('.news_headline').condense({
  //            condensedLength: 30,
  //            moreText: '',
  //            lessText: '',
  //            ellipsis: "..."
  //            });
	}
);
/* Cufon */
Cufon.replace('.side-con p.date, #content h2, #content h5 ', {
			  hover: 'true',
			  fontFamily: 'FranklinConGothic'
			   } )

Cufon.replace('ul.sf-menu li, #content h3 , #content h4, .side-con p.time, .detail-text h2 ', {
			  hover: 'true',
			  fontFamily: 'FranklinMedCon'
			   } );

/* Drop Down */

        $('ul.sf-menu').superfish({ 
            delay:       1000,                            // one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
            speed:       'fast',                          // faster animation speed 
            autoArrows:  false,                           // disable generation of arrow mark-up 
            dropShadows: false                            // disable drop shadows 
        }); 
 

/* Fancybox */
$(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">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});

		
		});


