$(document).ready(function(){
    $("menu").attr({
        id: "menu"
    }).append('<li class="end">&nbsp;</li>');
    $('menu li a:not(.active)').hover(function() {
        $(this).animate({
            paddingLeft: "3px"
        }, 100);
    }, function() {
        $(this).animate({
            paddingLeft: "0px"
        }, 100);
    });

    $('.box').addClass('box-top box-bottom').wrap('<div class="box-r"><div class="box-l">');
    $('.box dl').addClass('box-top box-bottom').each(function() {
        $('dt:first', this).addClass('box-top');
        $('dd:last', this).addClass('box-bottom');
    });

    $('#dyk p:first').wrap('<b>');

    $('.tip').prepend('<span class="tip"></span>');
    $('.news').prepend('<span class="news"></span>');
    $('.newsletter').prepend('<span class="newsletter"></span>');

    $('a.button').fancyZoom();

    $("a.photo").each(function(i) {
        $("body").append('<div id="photo'+i+'"><img style="width: 100%;" src="' + $(this).attr('href') + '" alt=""/>' + $(this).attr('title') + '</div>');
        $(this).attr('href', '#photo' + i)
        $(this).fancyZoom({
            scaleImg: true,
            closeOnClick: true
        });
    });
});

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-18916886-1']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);

(function() {
    var ga = document.createElement('script');
    ga.type = 'text/javascript';
    ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(ga, s);
})();
