﻿function mainmenu() {
  $("#menu ul").css({display: "none"}); // Opera Fix
  $("#menu li").hover(function() {
    $(this).find('ul:first').css({visibility: "visible", display: "none"}).fadeIn(300);
	},function() {
	  $(this).find('ul:first').css({visibility: "hidden"}).fadeOut(300);
	});
}

$(document).ready(function() {
    mainmenu();
    $('#ctl00_ContentPlaceHolder1_ModPropertyDisplay1_img_main a, a.normlink').lightBox(); // Select all links in object with gallery ID
    $('.rounded').corners();

    $('#tabs div').hide();
    $('#tabs div:first').show();
    $('#tabs ul li:first').addClass('active');

    $('#tabs ul li a').click(function(){
    $('#tabs ul li').removeClass('active');
    $(this).parent().addClass('active');
    var currentTab = $(this).attr('href');
    $('#tabs div').hide();
    $(currentTab).show();
    return false;
});

    $(window).load(function () {
        $('#slider p').nivoSlider({
            effect: 'boxRainGrow', // Specify sets like: 'fold,fade,sliceDown'
            boxCols: 15, // For box animations
            boxRows: 6, // For box animations
            animSpeed: 500, // Slide transition speed
            pauseTime: 7000, // How long each slide will show
            startSlide: 0, // Set starting Slide (0 index)
            directionNav: false, // Next &amp; Prev navigation
            controlNav: false // 1,2,3... navigation
        });
    });

});
