 		jQuery.noConflict();
    jQuery(document).ready(function() { 


jQuery("ul.sf-menu").supersubs({ 
            minWidth:    5,   // minimum width of sub-menus in em units 
            maxWidth:    6,   // maximum width of sub-menus in em units 
            extraWidth:  3     // extra width can ensure lines don't sometimes turn over 
    }); 
// end super subs



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

			
	jQuery('.fade').innerfade({ animationtype: 'fade', speed: 'slow', timeout: 5000}); 


				jQuery('#newspane').jScrollPane({scrollbarOnLeft:true,scrollbarWidth:8,animateTo:true});

                jQuery('.scroll-by').bind(
                    'click',
                    function()
                    {
                        jQuery('#newspane')[0].scrollBy(parseInt(jQuery(this).attr('rel')));
                        return false;
                    }
                );



// tooltip 
jQuery('#social a').hover(function(){
	jQuery(this).find('.tooltip').animate({	opacity: 'show', left: '54px' }, 300);
	},function(){
		jQuery(this).find('.tooltip').animate({	opacity: 'hide', left: '20px' }, 300);
	});
// end tooltip


jQuery("a.inline").fancybox({});


jQuery("a.video").click(function() {
	jQuery.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'title'			: this.title,
			'width'		: 680,
			'height'		: 495,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});



jQuery('#sharethis,#mailinglist').hover(function(){
	jQuery(this).find('.tooltip').animate({	opacity: 'show', left: '100px' }, 300);
	},function(){
		jQuery(this).find('.tooltip').animate({	opacity: 'hide', left: '20px' }, 300);
	});
// end tooltip


	}); 


