// eCardOne User interface
var eCardOne = {
     
    /**
     * Tabs rotation time in milliseconds
     */         
    tabs_rotation_time: 7000,      

    /**
     * Init functions
     */         
    init: function () {
        eCardOne.homeTabs();
    },
    
    /**
     * Rotating home tabs
     */         
    init: function () {    
        $('.home #tabs').tabs({
            fx: {opacity: 'toggle', duration: 500},
            event : 'mouseover'
        });
        $('.home #tabs').tabs('rotate', eCardOne.tabs_rotation_time);
        
        $('.tab').bind('click', function() {
            $('.home #tabs').tabs('rotate', 0);
        });
    }
}

function unFadeTabs () {
    // Set tabs fading function to null -- no fading
    $('.home #tabs').tabs('option', 'fx', null);
    // And unbound mouseover event.
    $('.home #tabs a').unbind('mouseover', unFadeTabs);
}

$(document).ready(function () {
    eCardOne.init();

    $('.home #tabs a').click(function () {
        window.location=$(this).attr('linkto');
    });

    $('.home #tabs a').bind('mouseover', unFadeTabs);
});


