﻿/// <reference path="../ClientScript/jquery-1.3.2-vsdoc.js" />
/// <reference path="../ClientScript/jquery-1.3.2.js" />
/// <reference path="../ClientScript/jquery-ui-1.7.2.custom.min.js" />


var schedule_carrousel;
$(document).ready(function() {


    $("#news-tabs a.tab-ajax").each(function() {
        this.href = this.href + "?type=index";
    });

    $("#news-tabs").tabs({
        load: function(event, ui) { $(this).pngFix(); },
        fx: { opacity: 'toggle'},
        cache: true,
        cookie: { expires: 30 } ,
        spinner: '<span class="loadingIndicator">&nbsp;&nbsp;&nbsp; </span>'
    });

     $("#act-tabs a.tab-ajax").each(function() {
                this.href = this.href + "&type=index";
            });
           $("#act-tabs").tabs({
                load: function(event, ui) { $(this).pngFix(); },
                fx: { opacity: 'toggle'},
                cache: true,
        cookie: { expires: 30 } ,
        spinner: '<span class="loadingIndicator">&nbsp;&nbsp;&nbsp; </span>'
            });


    /// star carousel
    var star_carrousel = jQuery("#jqStar > .Carousel").carrousel({

        easing: 'easeOutBounce',
        speed: 500,
        dispTimeout: 1000,
        dispNumber: 8,
        scroll: 1,
        auto: false,
        api: true,
        mode: 'div'
    });
    $('#Apistar-right > #Starnext').click(function() {
        star_carrousel.next();
        return false;
    });
    $('#Apistar-left > #Starprev').click(function() {
        star_carrousel.prev();
        return false;
    });

    /// schedule carrousel 
    schedule_carrousel = jQuery("#jqSchedule > .Carousel").carrousel({

        easing: 'easeOutBounce',
        speed: 500,
        dispTimeout: 1000,
        dispNumber: 3,
        scroll: 1,
        auto: false,
        api: true,
        mode: 'div',
        direction : 'left'

    });

    $('#Schedule-right > #Schedulenext').click(function() {
        schedule_carrousel.next();
        return false;
    });
    $('#Schedule-left > #Scheduleprev').click(function() {
        schedule_carrousel.prev();
        return false;
    });
    /// drama clip carrousel
    var clip_carrousel = jQuery("#jqClips > .Carousel").carrousel({

        easing: 'easeOutBounce',
        speed: 500,
        dispTimeout: 1000,
        dispNumber: 2,
        scroll: 1,
        auto: false,
        api: true,
        mode: 'div'

    });
    // carrousel.moveTo(1);
    $('#dramaclip-right > #dramaclipnext').click(function() {
        clip_carrousel.next();
        return false;
    });
    $('#dramaclip-left > #dramaclipprev').click(function() {
        clip_carrousel.prev();
        return false;
    });
});