
$(function() { 
    // initialize scrollable 
    $("div.scrollable").scrollable({
        size: 4,
        nextPage: '.nav-scroller-next',
        prevPage: '.nav-scroller-prev',
        keyboard: false,
        disabledClass: 'nav-scroller-disabled'
    }); 

    // bind events to scrollable items
    $('div.scrollable div.items a').click(
        function (ev) {
            // Clear selected item and flag current as selected
            $(this).parents('div.items').children('div').removeClass('selected');
            $(this).parent().addClass('selected');
            
        }
    )
});

function playvideo(f,i) {
  document.getElementById("flash-video-content").innerHTML='<embed src="http://video.helsinki.fi/player.swf" width="489" height="295"  allowscriptaccess="always" allowfullscreen="true" flashvars="file='+f+'&streamer=rtmp://flashvideo.it.helsinki.fi/vod&image='+i+'&autostart=true&backcolor=000000&frontcolor=aaaaaa&screencolor=000000" />'
}


