/* This is the javascript scrolling code, courtesty of http://tympanus.net/codrops/2010/06/02/smooth-vertical-or-horizontal-page-scrolling-with-jquery/ */

var $j = jQuery.noConflict()
/* adding this variable here to avoid conflicts with lightbox and scrolling.js. Otherwise both will conflict and fail.*/


$j(function() {
    $j('ul.nav a, #phwarp a, #mobileworks a, #drainbrain a, #fluid_mobileapp a, #fashion a, #kenmore a, #personas a, #bspace a, #terrascope a, #mozhomepage a, #mozillastore a').bind('click',function(event){
        var $janchor = $j(this);
        
        $j('html, body').stop().animate({
            scrollTop: $j($janchor.attr('href')).offset().top
        }, 1500,'easeInOutExpo');
        /*
        if you don't want to use the easing effects:
        $('html, body').stop().animate({
            scrollTop: $($anchor.attr('href')).offset().top
        }, 1000);
        */
        event.preventDefault();
    });
});
