$(document).ready(
    function () {
	$(".more-button").click(
	    function () {
		if($(this).text()=="click to see more"){
		    $(".more").stop(true, true).show("blind");   
		    $(this).text("click to see less");
		} else {
		    $(".more").stop(true, true).hide("blind");   
		    $(this).text("click to see more");
		}
	    });
	$(".more-button2").click(
	    function () {
		if($(this).text()=="click to see more"){
		    $(".more2").stop(true, true).show("blind");   
		    $(this).text("click to see less");
		} else {
		    $(".more2").stop(true, true).hide("blind");   
		    $(this).text("click to see more");
		}
	    });
	//slidingMenu enabling code
	$('.slidingMenu li:not(.subMenu li)').hover(
	    function() {    
		if ($(this).is(':animated')) {
		    $(this).stop().animate({width: "310px"}, {duration: 450, easing:"easeOutQuad", complete: "callback"});
		} else {
		    $(this).stop().animate({width: "310px"}, {duration: 400, easing:"easeOutQuad", complete: "callback"});
		}
	    }, function () {
		if ($(this).is(':animated')) {
		    $(this).stop().animate({width: "78px"}, {duration: 400, easing:"easeInOutQuad", complete: "callback"});
		} else {
		    $(this).stop(':animated').animate({width: "78px"}, {duration: 450, easing:"easeInOutQuad", complete: "callback"});
		}
	    });
	$(".lightBox").each(
	    function () {
		$(this).fancybox({ title: $(this).children("img").attr("alt") });
	    });

        $('.map').maphilight();
        //$('#squidheadlink').mouseover(function(e) {
        //    $('#squidhead').mouseover();
        //}).mouseout(function(e) {
        //    $('#squidhead').mouseout();
        //}).click(function(e) { e.preventDefault(); });

	$('.anythingSlider').anythingSlider({
						easing: "swing",
						autoPlay: true,
						startStopped: false,
						delay: 3000,
						animationTime: 600,
						hashTags: false,
						buildNavigation: true,
						pauseOnHover: true,
						startText: "Start",
						stopText: "Stop",
						navigationFormatter: null
					    });
	$('input:text, input:password').addClass("textBox"); //instead of doing it manually in the markup
    });
