// bx-slider for home page banners

$(function(){

  $('#slides_home').bxSlider({ // homepage slider with arrow nav
    mode: 'fade',
    pager: true,
	speed: 2000,                     // amount of time slide transition lasts (in milliseconds)
	auto: true,                    // determines if slides will move automatically
	pause: 5000,                    // time between each slide transition (auto mode only) 
	auto_hover: true               // determines if slideshow will pause while mouse is hovering over slideshow
  });

});

// fancybox

jQuery(document).ready(function() {

	$("a.fbox_normal").fancybox({
		'titleShow'		: false,
		// 'titlePosition'	: 'over',
        'transitionIn'   : 'fade',
        'transitionOut'  : 'fade'
	});

});

// opacify

jQuery(document).ready(function () {
  jQuery(".opacify").fadeTo(1, 0.5);
  jQuery(".opacify").hover(
    function () {
      jQuery(this).fadeTo("fast", 1);
    },
    function () {
      jQuery(this).fadeTo("normal", 0.5);
    }
  );
});

jQuery(document).ready(function () {
  jQuery(".opacify2").fadeTo(0.0, 1);
  jQuery(".opacify2").hover(
    function () {
      jQuery(this).fadeTo("fast", 0.0);
    },
    function () {
      jQuery(this).fadeTo("normal", 1);
    }
  );
});

// pikachoose

$(document).ready(function (){
    var preventStageHoverEffect = function(self){
            self.wrap.unbind('mouseenter').unbind('mouseleave');
            self.imgNav.show();
    };
    $(".pikame").PikaChoose({bindsFinished: preventStageHoverEffect, autoPlay:false, speed:3000});
});

 // keep pikachoose nav elements visible
 
	
