// fancybox

jQuery(document).ready(function() {

	$("a.fbox_normal").fancybox({
		'titleShow'     : false,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic'	
	});
	
	$("a.fbox_boards").fancybox({
		'titleShow'     : false,
        'transitionIn'   : 'fade',
        'transitionOut'  : 'fade',
        'overlayOpacity':	1
	});

});


// 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.5, 1);
  jQuery(".opacify2").hover(
    function () {
      jQuery(this).fadeTo("fast", 0.5);
    },
    function () {
      jQuery(this).fadeTo("normal", 1);
    }
  );
});


// qtip 

$(document).ready(function()
{
   $('li.qtip a[title], td.qtip a[title], span.qtip a[title]').qtip({
      position: {
         corner: {
            target: 'topMiddle',
            tooltip: 'bottomMiddle'
         }
      },
      style: {
	      width: 200,
	      padding: 8,
	      background: '#faf6e7',
	      color: '#6b6860',
	      textAlign: 'center',
	      border: {
	         width: 1,
	         radius: 1,
	         color: '#c5bead'
	      },
	      tip: 'bottomMiddle'
      }
   });
   
});

// jcarousel

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        // Configuration goes here
    });
});


// superfish

    $(document).ready(function() { 
        $('ul.sf-menu').superfish({ 
            delay:       1000,                            // one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
            speed:       'fast',                          // faster animation speed 
            autoArrows:  false                           // disable generation of arrow mark-up 
        }); 
    }); 



// slide banners

$(document).ready(function(){
	$('#slides1').bxSlider({
		alignment: 'horizontal',        // 'horizontal', 'vertical' - direction in which slides will move
		controls: false,                 // determines if default 'next'/'prev' controls are displayed
		speed: 800,                     // amount of time slide transition lasts (in milliseconds)
		pager: true,                    // determines if a numeric pager is displayed (1 2 3 4...)
		pager_short: false,             // determines if a 'short' numeric pager is displayed (1/4)
		pager_short_separator: ' / ',   // text to be used to separate the short pager
		margin: 0,                      // if 'horizontal', applies a right margin to each slide, if 'vertical' a
		                                // bottom margin is applied. example: margin: 50
		next_text: 'next',              // text to be displayed for the 'next' control
		next_image: '',                 // image to be used for the 'next' control
		prev_text: 'prev',              // text to be displayed for the 'prev' control
		prev_image: '',                 // image to be used for the 'prev' control
		auto: true,                    // determines if slides will move automatically
		pause: 15000,                    // time between each slide transition (auto mode only) 
		auto_direction: 'next',         // order in which slides will transition (auto mode only)
		auto_hover: true,               // determines if slideshow will pause while mouse is hovering over slideshow
		auto_controls: false,           // determines if 'start'/'stop' controls are displayed (auto mode only)
		ticker: false,                  // determines if slideshow will behave as a constant ticker
		ticker_controls: false,         // determines if 'start'/'stop' ticker controls are displayed (ticker mode only)
		ticker_direction: 'next',       // order in which slides will transition (ticker mode only)
		ticker_hover: true,             // determines if slideshow will pause while mouse is hovering over slideshow
		stop_text: 'stop',              // text to be displayed for the 'stop' control
		start_text: 'start',            // text to be displayed for the 'start' control
		wrapper_class: 'slides1_wrap'  // class name to be used for the outer wrapper of the slideshow
	});
});



