// JavaScript Document
Cufon.replace('h1,h2,h3',{
    textShadow: '0px 1px 0px #f5f5f5'
});
Cufon.replace('ul.tab_nav li a,#footer p,p.tagline');

$(document).ready(function() {

    //Fancybox for image gallery
    $("a.simple_image,a.simple_image_big").fancybox({
        'width' : '500',
        'height' : '1033',
        'opacity'		: true,
        'overlayShow'	       : true,
        'overlayColor': '#000000',
        'overlayOpacity'     : 0.9,
        'titleShow':true,
        'transitionIn'	: 'fade',
        'transitionOut'	: 'fade',
        'titlePosition' : 'over',
        'autoScale' : 'false',
        'autoDimensions' : 'true'
    });


    //Tipsy plugin
    $('.tipsy_hover').tipsy({
        fade: true, 
        gravity: 's'
    });

    //Nivo slider
    $('#slider').nivoSlider({
        effect:'random', // Specify sets like: 'fold,fade,sliceDown'
        slices:15, // For slice animations
        boxCols: 8, // For box animations
        boxRows: 4, // For box animations
        animSpeed:500, // Slide transition speed
        pauseTime:3000, // How long each slide will show
        pauseOnHover:true,
        directionNav:true, // Next & Prev navigation
        directionNavHide:true, // Only show on hover
        controlNav:false // 1,2,3... navigation
    });

    // Tabs
    $('.tab_nav').each(function() {
        var $links = $(this).find('a'),
        mainIds = $links.map(function() {
            return this.hash;
        }).get().join(","),
        $content = $(mainIds),
        $contentwrapper = $content.filter(':first').parent(),
        delay = 500;
			
        $content.hide();

        $links.click(function() {
            var $link = $(this),
            link = (this);
				
            if ($link.is('.current')) {
                return;
            }
                        
                        
                        
		
            $links.removeClass('current');
            $link.addClass('current');
                        
			
            $content.animate({
                opacity : 0
            }, delay);
            $contentwrapper.animate({
                height: 0
            }, delay, function() {
                // var height = $panels.hide().filter(link.hash).show().css('opacity', 1).outerHeight();
				
                var filtered = $content.hide().filter(link.hash).show().css('opacity', 1);
                if ($.browser.msie)
                    filtered.each(function() {
                        this.style.removeAttribute('filter');
                    });
                var height = filtered.outerHeight();
							
                $contentwrapper.animate({
                    height: height
                }, delay);
            });	
			
            return false;
        });
		
        var showtab = window.location.hash ? '[hash=' + window.location.hash + ']' : ':first';
		
        $links.filter(showtab).click();
	
    });

    //List animation
    $('ul.bullet_list li,#social_list li').hover(function() { //mouse in
        $(this).animate({
            marginLeft: '5px'
        }, 200);
    }, function() { //mouse out
        $(this).animate({
            marginLeft: 0
        }, 200);
    });

    //Bar graph
    $(".abilities").horizontalBarGraph({
        interval: 0.8 
    });

    //On hover event for photo 
    $('#home img').hover(function(){
        $(this).animate({
            opacity: 0.7
        }, 400);
    }, function () {
        $(this).animate({
            opacity: 1
        }, 400);
    });
 
    //Gallery - on hover event 
    $('ul.gallery li a,ul.gallery_recent li a').mouseenter(function(e) {
        $(this).children('img').animate(300);
        $(this).children('span').fadeIn(400);
    }).mouseleave(function(e) {
        $(this).children('img').animate(300);
        $(this).children('span').fadeOut(400);
    });

});	//document ready closed
	
	
	
			
	
<!--
getTwitters('twitter', {
    id: 'NeilHanlon', 
    count: 3, 
    enableLinks: true, 
    ignoreReplies: false,
    template: '<span class="twitterPrefix"><span class="twitterStatus">%text%</span> <span class="username"><a href="http://twitter.com/%user_screen_name%"><br/><span style=""">- Follow %user_screen_name%</span></a></span>',
    newwindow: true
});
-->
