function PreloadImg(){
        //$.ImagePreload("imghome/imghome2.jpg");
        //$.ImagePreload("imghome/imghome3.jpg");
        //$.ImagePreload("imghome/imghome4.jpg");
        //$.ImagePreload("imghome/imghome5.jpg");
}

$(document).ready(function(){
    //PreloadImg();
    //setInterval(StartAds,6000);
/*
    $("#fotoslide").easySlider({
        auto: true,
        continuous: false,
        controlsShow: false,
        orientation: 'vertical',
        vertical: true,
        pause: 4000,
        speed: 2500
    });
    $("#slider2").easySlider({
        auto: true,
        continuous: true,
        controlsShow: false,
        pause: 4000,
        speed: 1500
    });
    */

    $('#fotoslide').nivoSlider({
        effect: 'sliceUpLeft',
        slices: 1, // For slice animations
        animSpeed: 2000, // Slide transition speed
        pauseTime: 4500, // How long each slide will show
        startSlide: 0, // Set starting Slide (0 index)
        directionNav: false, // Next & Prev navigation
        controlNav: false, // 1,2,3... navigation
        keyboardNav: false, // Use left & right arrows
        pauseOnHover: true, // Stop animation while hovering
        lastSlide: function(){$('#fotoslide').data('nivo:vars').stop = true;}
    });


    $('#slider2').nivoSlider({
        effect: 'fold',
        slices: 5, // For slice animations
        animSpeed: 1000, // Slide transition speed
        pauseTime: 4000, // How long each slide will show
        startSlide: 0, // Set starting Slide (0 index)
        directionNav: true, // Next & Prev navigation
        controlNav: true, // 1,2,3... navigation
        keyboardNav: true, // Use left & right arrows
        pauseOnHover: true, // Stop animation while hovering
        lastSlide: function(){$('#slider2').data('nivo:vars').stop = true;}
    });

    $("a.fancy").fancybox();


    $(".clickMe").each(function(){
        $(this).parent().next('.nextDate').hide();
        $(this).click(function () {
            $(this).parent().next('.nextDate').slideToggle('slow');
            return false;
        });
    });

});

ddsmoothmenu.init({
	mainmenuid: "menu", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
});

Cufon.replace('#menu li a,#txtunderfoto div,#head a',{ hover: 'true' });



$(document).ready(function(){
  // Reset Font Size
  var originalFontSize = $('html').css('font-size');
    $(".resetFont").click(function(){
    $('html').css('font-size', originalFontSize);
  });
  // Increase Font Size
  $(".increaseFont").click(function(){
    var currentFontSize = $('html').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*1.2;
    $('html').css('font-size', newFontSize);
    return false;
  });
  // Decrease Font Size
  $(".decreaseFont").click(function(){
    var currentFontSize = $('html').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*0.8;
    $('html').css('font-size', newFontSize);
    return false;
  });
});



