$(document).ready(function() {

    // Cufon setting
    Cufon.replace('.top-menu a', { fontFamily: 'NettoOT', hover: true });
    Cufon.replace('h1, h2, h3, h4, h5, h6,  .top-banner .descrpt,\n\
                    .left-col .text-block p, .bottom-cell .phone-n, .cat-list ul, #page-submenu a, #top-menu ul li a, .agency-addr li .mail-addr', { fontFamily: 'NettoOT', hover: { color: '#000000'} });
    Cufon.replace('#main-menu .label', { fontFamily: 'NettoOT', textShadow: '#000 0px -1px' });

    Cufon.replace('.bottom-cell .more, .cat-list h4, .page-subheading', { fontFamily: 'NettoOT-Light', hover: { color: '#000000'} });
    Cufon.replace('.top-box .item-link, #sidebar li a, .agency-addr li p.phone-num, h2.page-subheading', { fontFamily: 'NettoOT', hover: { color: '#ffffff'} });
    Cufon.replace('.bottom-footer .contact-col p', { fontFamily: 'NettoOT-Light', hover: { color: '#ffffff'} });
    Cufon.replace('.top-footer .login, .top-footer .contact, .bottom-footer .contact-col p strong, .subscribe label, .share', { fontFamily: 'NettoOT', hover: { color: '#ffffff'} });


    function beforeFnc(cEl, nEl) {
        text = $('p', nEl).html();
        $('.info-line .descrpt').html('<p>' + text + '</p>');
        Cufon.replace('.top-banner .descrpt', { fontFamily: 'NettoOT' });
    }
    var coutn = $('.top-banner .cycle-item').size() + 1;
    $('.cycle').cycle({
        pager: '.pager',
        timeout: 15000,
        autostop: 1,
        autostopCount: coutn,
        before: beforeFnc
    });
    $('.cycle-text').cycle({
        pager: '.bullet-nav',
        next: '.next-button',
        fx: 'scrollLeft',
        timeout: 0,
        speed: 1000
    });
    $('.app-slider-box').cycle({
        pager: '.bullet-nav',
        timeout: 0,
        fx: 'scrollHorz',
        next: '.app-next',
        prev: '.app-prev'
    });
});
