var $j = jQuery.noConflict();
/*** CREATE NAVIGATION SYSTEM */
$j(document).ready(function() { 
var api = $j("#scroll").scrollable({
items: '#tools',
size: 1,
clickable: false
}).navigator({api: true});
api.onStart(function(e, i) {
if (i) {
$j("#intro").fadeOut("slow");
} else {
$j("#intro").fadeIn(1000);
}
$j("#t0").toggleClass("active", i == 0);
});
$j("#t0").click(function() {
$j("#scroll").scrollable().begin();

});
//$j("#download_now").tooltip({ effect: 'slide'});  
});

/*** CREATE DROP EFFECT FOR OVERLAY */
$j(document).ready(function() { 
$j.easing.drop = function (x, t, b, c, d) { 
    return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; 
}; 
 
$j.tools.overlay.addEffect("drop",   
    function(done) {  
        var animateProps = { top: '+=20', opacity: 1
            //width: '+=20' 
        }
        this.getOverlay().animate(animateProps, 600, 'drop', done).show(); 
    },  
    function(done) { 
        var animateProps = { 
            top: '-=20',  
            opacity: 0
            //width: '-=20' 
        }
        this.getOverlay().animate(animateProps, 300, 'drop', function()  { 
            $j(this).hide(); 
            done.call();         
        }); 
    } 
);
});

/*** CREATE OVERLAYS */
$j(document).ready(function() { 
$j("p.more_info a[rel]").overlay({
api: true,
absolute: true,
//left: center,
effect: 'apple',
top: '12%'
//expose: '#789',
//speed: 400
});});

/*** CREATE BOUNCY EFFECT */
$j(document).ready(function() {
$j.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; 
} 
$j.tools.tooltip.addEffect("bouncy", 
function(done) { 
this.getTip().animate({top: '+=20'}, 1000, 'bouncy', done).show(); 
}, 
function(done) { 
this.getTip().animate({top: '-=15'}, 1000, 'bouncy', function()  { 
$j(this).hide(); 
done.call(); 
}); 
} 
);
/*** CREATE DETAILS TOOLTIP */				
$j("#nav_details a[title]").tooltip({
tip: '#details_tip', 
predelay: 100,
relative: false,
delay: 2000,
offset: [10, 2],
effect: 'bouncy'
}).dynamic( {
bottom: {
direction: 'down',
bounce: true
}
});});