$(document).ready(function () {

    // Remove login default text on click
    $('#loginPanel .inner .txt').one("focus", function () {
        $(this).addClass('focus').val('');
    });

    // Determine width of header
    var viewport = $(window).width();
    if (viewport < 1200) {
        $('body').addClass('smallScreen');
    }

    // Hover effect to thumbnails
    $('.thumb a img').hover(function () {
        $(this).stop().fadeTo('opacity', 0.7);
    }, function () {
        $(this).stop().fadeTo('opacity', 1);
    });

    // Hover effect to holes thumbnails
    $('ul.holes li a.img').hover(function () {
        $(this).stop().fadeTo('opacity', 0.7);
    }, function () {
        $(this).stop().fadeTo('opacity', 1);
    });

    // Indent Lists
    $('.templateHome .zoneSplit ul li').hover(function () {
        $(this).stop().animate({ marginLeft: '5px' }, 200);
    }, function () {
        $(this).stop().animate({ marginLeft: '0px' }, 200);
    });

    // Indent Navigation
    $('.subNav ul li a:not(.on)').hover(function () {
        $(this).stop().animate({ marginLeft: '5px' }, 200);
    }, function () {
        $(this).stop().animate({ marginLeft: '0px' }, 200);
    });

});

// Hole Galleries
$(function () {
    $('#holeGallery').after('<div id="galNav">').cycle({
        fx: 'fade',
        speed: 'slow',
        timeout: 5000,
        pager: '#galNav'
    });
});


