$(document).ready(function () {

    // PRETTY PHOTO
    $("a[rel^='gallery']").prettyPhoto();

    // PNG FIX
    $(document).pngFix();

    $('a[href*=#]').click(function () {
        if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
            var $target = $(this.hash);
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']');
            if ($target.length) {
                var targetOffset = $target.offset().top - 30;
                $('html,body').animate({
                    scrollTop: targetOffset
                }, 750);
                return false;
            }
        }
    });

    // CUFON
    Cufon.replace('h1, #navigation li', {
        hover: true,
        fontFamily: 'TradeGothic LT CondEighteen'
    });
    Cufon.replace('.content_body ul li strong, h2, h3, h4, h5, h6', {
        hover: true,
        fontFamily: 'TradeGothic LT CondEighteen'
    });

    Cufon.now();

    //FOOTER
    $("#trigger").toggle(function () {
        $(this).addClass("active");
    }, function () {
        $(this).removeClass("active");
    });

    $("#trigger").click(function () {
        $(this).next("#footer").slideToggle("slow");
    });

    //NETWORK

	$("#socialLinks").hide();

	$(".contact_btn").click(function(){

		$("#socialLinks").slideToggle();

	});
	
	$('#cu3er-wrapper').css({
			background:'none',
			height:'auto'
		}).html('<center><a href="/images/FP-poster.jpeg" rel="gallery" id="fp"><img src="/images/FP-poster.jpeg" height="440" /></a></center>');
	
	$('#fp').css('border','none').prettyPhoto();

	$("iframe").parent("p").css({
		width:'200px',
		margin:'20px',
		float:'left'
		});

    //TABLE DOM
    $("td").next().addClass('red');

}); //END SCRIPT
