$(document).ready(function() {
    //Flowplayer
    var player = $f("player", {
        src: "App_Themes/flowplayer-3.2.2.swf",
        wmode: 'opaque'
    }, {
        play: {
            height: '100',
            wight: '100'
        },
        clip: {
            autoPlay: true,
            autoBuffering: true
         },
        plugins: {
            controls: null
            /* {
            autoHide: 'always',
            hideDelay: 0
            }*/
        }
    });

    //Tabs  
    $(".slidetabs").tabs(".images > div", {
        effect: "fade",
        fadeOutSpeed: 1500,
        fadeInSpeed: 1100,
        rotate: true
    }).slideshow({
        autoplay: false,
        interval: 3000,
        clickable: false
    });

    $(".slidetabs").data("slideshow").play()

    $('a#player').click(function() {
        $('ktnVid').fadeOut('slow');
         
        if($(".slidetabs").hasClass('playing')== false){
            $(".slidetabs").data("slideshow").stop();
            $(".slidetabs").addClass('playing');
        }else{
            $(".slidetabs").data("slideshow").play()
            $(".slidetabs").removeClass('playing');
        }
        
    });

});