// var jQuery = jQuery.noConflict();

jQuery(document).ready( function() {
 jQuery.easing.twitch = function (x, t, b, c, d) { 
    var s = 1.20158;  
    if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 
    return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 
};
var api = jQuery("#nav_tronixr").scrollable({
items: '#nav_content',
size: 1,
clickable: false,
easing: 'twitch'
}).navigator({api: true});
       			
api.onStart(function(e, i) {
if (i) { 
jQuery("#intro_nav").fadeOut(300); 
} else {
jQuery("#intro_nav").fadeIn(1200); }
jQuery("#t0").toggleClass("active", i == 0);
});
jQuery("#t0").click(function() { jQuery("#nav_tronixr").scrollable().begin(); 
});
/* SCROLLING API FOR SHOP NAV */
jQuery(".a1").click(function() {jQuery("#nav_tronixr").scrollable().move(1);});
jQuery(".a2").click(function() {jQuery("#nav_tronixr").scrollable().move(2);});
jQuery(".a3").click(function() {jQuery("#nav_tronixr").scrollable().move(3);});
jQuery(".a4").click(function() {jQuery("#nav_tronixr").scrollable().move(4);});
jQuery(".a5").click(function() {jQuery("#nav_tronixr").scrollable().move(5);});
jQuery(".a6").click(function() {jQuery("#nav_tronixr").scrollable().move(6);});
jQuery(".a7").click(function() {jQuery("#nav_tronixr").scrollable().move(7);});
jQuery(".a8").click(function() {jQuery("#nav_tronixr").scrollable().move(8);});
//            jQuery(".a9").click(function() {jQuery("#nav_tronixr").scrollable().move(9);});
});

/* TRONIXR BOUNCY EFFECT */
//jQuery.easing.bouncy = function (x, t, b, c, d) { 
//var s = 1.70158; 
//if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 
//return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 
//} 
//
///* ADD BOUNCY */
//jQuery(document).ready(function() {
//jQuery.tools.tooltip.addEffect("bouncy", 
//function(done) { 
//this.getTip().animate({top: '+=20'}, 500, 'bouncy', done).show(); 
//}, 
//function(done) { 
//this.getTip().animate({top: '-=20'}, 500, 'bouncy', function()  { 
//jQuery(this).hide(); 
////jQuery(this).fadeOut(); 
//done.call(); 
//});});
//});
//;
///* CREATE SNEAKPEEK TOOLTIP */
//jQuery(document).ready(function() {
//jQuery("#nav_details a").tooltip({
////onShow: function() { this.getTrigger().fadeTo("slow", 0.8); } 
//tip: 'div#details_tip', 
//predelay: 3000,
//relative: false,
////position: 'top',
//opacity: 0.90,
//delay: 0,
//offset: [-20, 0],
//effect: 'bouncy'
////onShow: function() { this.getTrigger().fadeTo("slow", 0.5); } 
//}).dynamic( {
//bottom: {
//direction: 'down',
//bounce: true,
//}
//});
//});