﻿////------------------------------------------------------ 

$(document).ready(function()
{
    /*
     * POP UP
     */ 

    $("#LoginPopUpAnchor").open({
        left: 360, top: 140,
        width: 290, height: 200
    });
     
    $("#MultiPlayerPopUp").open({
        left: 450, top: 200,
        width: 410, height: 263
    });

    /*
     * Flash embedding
     */ 

    $("#XBarPlaceHolder").flashembed(
        {
            src: "Flash/XBarSalsa4te2.swf",
            expressInstall: "Flash/ExpressInstall.swf",
            allowfullscreen: "false"
            //wmode: "transparent"
        }); 

    /*
     * Styling
     */ 
     
    /*
     * Info Box lwRTE
     */

    $("#InfoBoxUpdateAnchor").attr("href","RTEForm.aspx?file=infobox&width=240&height=235");
    $("#InfoBoxUpdateAnchor").open(
    {
        left: 300, top: 100
    });

    /*
     * Salsa Tube 
     */
    
    if ($("#SalsaTubeWidget").length != 0)
    {
        // scrollable
         
        $("#salsaTubeScrollable").scrollable(
        { 
            size: 3, 
            vertical: true,
            clickable: false,
            speed: 600
        });
    
        // embedding

        setTimeout(function()
        {
            // flash embedding                        
            var api = $("#salsaTubePlayer").flashembed(
                // configuration (flashembed and flash parameters)
                {
                    src: "http://www.youtube.com/v/ShsZ5PeSwG4&enablejsapi=1&playerapiid=ytplayer1&disablekb=1&showinfo=0&iv_load_policy=3&showsearch=0&rel=1&fs=1",
                    expressInstall: "Flash/ExpressInstall.swf",
                    allowfullscreen: "true",
                    allowscriptaccess: "always",
                    wmode: "opaque"
                },
                // flashvars
                {
                }); 
                
            // get apis            
            window.salsatubePlayerApi = api.getApi();
        },2500);            
    }
    
    /*
     * Tag cloud
     */
     
    //  $("#taglist").tagcloud({type:"list",height:250,sizemin:7,sizemax:17,colormin:"9a9a9a",colormax:"fafafa"}).find("li").tsort();
     
});

////------------------------------------------------------ ...
