jQuery(document).ready(function () {
    jQuery('ul.photo li:odd').css('margin-left', '0');
});


jQuery(document).ready(function () {
    jQuery("").sortable({
        revert: true
    });

    jQuery('.tooltip').tipsy({
        gravity: 'nw',
        fade: true
    });
    
});



jQuery(function () {
    jQuery(".menu").megamenu();
});

jQuery(document).ready(function () {
    jQuery("ul#menu ul ").css({
        display: "none"
    });
    jQuery("ul#menu li").hover(function () {
        jQuery(this).find('ul:first').css({
            visibility: "visible",
            display: "none"
        }).show(400);
    }, function () {
        jQuery(this).find('ul:first').css({
            visibility: "hidden"
        });
    });
});

jQuery(document).ready(function () {
	jQuery('#slider').nivoSlider({
		effect:'random', //Specify sets like: 'fold,fade,sliceDown'
		slices:15,
		animSpeed:500, //Slide transition speed
		pauseTime:3000,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:false, //Next & Prev
		directionNavHide:false, //Only show on hover
		controlNav:true, //1,2,3...
		controlNavThumbs:false, //Use thumbnails for Control Nav
      controlNavThumbsFromRel:false, //Use image rel for thumbs
		controlNavThumbsSearch: '.jpg', //Replace this with...
		controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
		keyboardNav:true, //Use left & right arrows
		pauseOnHover:true, //Stop animation while hovering
		manualAdvance:false, //Force manual transitions
		captionOpacity:0.8, //Universal caption opacity
		beforeChange: function(){},
		afterChange: function(){},
		slideshowEnd: function(){} //Triggers after all slides have been shown
	});
});


jQuery(function () {
    jQuery('ul.photo li').hover(function () {
        jQuery(".hover", this).stop().animate({
            top: '0px'
        }, {
            queue: false,
            duration: 160
        });
    }, function () {
        jQuery(".hover", this).stop().animate({
            top: '60px'
        }, {
            queue: false,
            duration: 160
        });
    });
});
jQuery(function () {
    jQuery('a.lightbox').lightBox({
        imageLoading: 'images/lightbox/loading.gif',
        imageBtnClose: 'images/lightbox/closelabel.gif',
        imageBtnPrev: 'images/lightbox/lightbox-btn-prev.gif',
        imageBtnNext: 'images/lightbox/lightbox-btn-next.gif'
    });
});
