$(document).ready(function(){
    $(document).pngFix();
    $("div.articleBody").hide();
    $("div.article").each(function(){

		var thisArticle = this;

		// Initially, hide the "Show" link
		$("p.hide", thisArticle).hide();

		// The show and hide links both toggle themselves and the article body
		$("p.show a, p.hide a", thisArticle).click(function(){
			$("p.show, p.hide, div.articleBody", thisArticle).toggle();
			return false;
		});

	});


    $("#slider").easySlider({
            continuous: true,
            numeric: true
        });
        $("#slider1").easySlider({
            continuous: true,
            numeric: true,
            numericId: 'control1'
        });
        $("#slider2").easySlider({
            continuous: true,
            numeric: true,
            numericId: 'control2'
        });
        $("#slider3").easySlider({
            continuous: true,
            numeric: true,
            numericId: 'control3'
    });

    $("#act01").hover(
         function() { $(".hpprojectlist1").show(); },
         function() { $(".hpprojectlist1").hide(); }
    );

    $("#act02").hover(
         function() { $(".hpprojectlist2").show(); },
         function() { $(".hpprojectlist2").hide(); }
    );

        /* Home Page Tabs */
    $(function () {
    var tabContainers = $('div.tabs > div.mslide');

    $('div.tabs ul.mtabNavi a').click(function () {
        tabContainers.hide().filter(this.hash).show();

        $('div.tabs ul.mtabNavi a').removeClass('selected');
        $(this).addClass('selected');

        return false;
        }).filter(':first').click();
    });

    $(".blinkimg").mouseenter(
        function () {
            $(this).fadeTo("fast", 0.5);
        }
    );
    $(".blinkimg").mouseleave(
        function () {
            $(this).fadeTo("fast", 1);
        }
    );


});

$(function () {
    $('.fade').hover(function() {
	$(this).fadeTo("fast", 0.5);
	}, function() {
	$(this).fadeTo("fast", 1);
    });
});

/* HOME PAGE SLIDER */
function formatText(index, panel) {
    return index + "";
};

    $(function () {
        $('.anythingSlider').anythingSlider({
            easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
            autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
            delay: 7000,                    // How long between slide transitions in AutoPlay mode
            startStopped: false,            // If autoPlay is on, this can force it to start stopped
            animationTime: 800,             // How long the slide transition takes
            hashTags: false,                 // Should links change the hashtag in the URL?
            buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
            pauseOnHover: false,             // If true, and autoPlay is enabled, the show will pause on hover
            startText: "Go",                // Start text
    		stopText: "Stop",               // Stop text
    		navigationFormatter: formatText // Details at the top of the file on this use (advanced use)
        });
        $("#slide-jump").click(function(){
            $('.anythingSlider').anythingSlider(6);
        });
    });


