document.ondragstart = function () { return false; };
$.ifixpng(webroot + 'img/pixel.gif');
$(function(){

    $('#page').ifixpng();
    
    $('input:text').addClass('sample').one('focus', function(){
        $(this).val('').removeClass('sample');
    })

    $('a').click(function(){$(this).blur();});

    $('.slideshow').cycle({
        speed: 1200
        , timeout: 2500
        , delay: -2000
        , containerheight: '405px'
    });
    
    $('.credit, .credit_photo').hover(
        function()
        {
            $(this).animate({
                backgroundPosition: "0px 10px",
                width: "150px",
                opacity: ".8"
                }, 300);
            },
        function()
        {
            $(this).css({
                backgroundPosition: "-153px 10px",
                width: "11px",
                opacity: "0.4"
                });
        }
    ).css('cursor', 'default').click(function(){
        return false;
    });
    
    // alert($('#txtblock').innerHeight());
    
    if ($("#txtblock").innerHeight() >= 400)
    {
        $("#txtblock").css({'height': '300px', 'overflow':'auto'}).jScrollPane({
            dragMaxHeight: 40
        });
    }

 
});
