var lookletApp = {
    embed : function() {
        var flashvars = {
            urlClientApi : "http://cdn.looklet.com/client-api",
            urlFiles : "http://files.looklet.com",
            urlItems : "http://files.looklet.com",
            urlModels : "http://files.looklet.com",
            urlBackgrounds : "http://files.looklet.com",
            urlLooks : "http://files.looklet.com",
            urlContests : "http://files.looklet.com",
            urlSaveImage : "http://looklet.com/customer/saveImage",
            urlSaveLook : "http://looklet.com/restricted/look/save.do",     
            urlWww : "http://looklet.com",     
            languageCode : this.languageCode,    
            countryCode : this.countryCode,    
            initLook : '',
            crossdomainFiles : 'http://looklet.com/crossdomain.xml,http://cdn.looklet.com/crossdomain.xml,http://files.looklet.com/crossdomain.xml'    
        };
                
        // merge options with flashvars
        for (attrname in this.options) { 
            flashvars[attrname] = this.options[attrname]; 
        }

        var attributes = {id : this.containerId + 'Flash'};

        swfobject.embedSWF("http://cdn.looklet.com/flash/looklet.swf?rev=78"
            ,this.containerId, "980", "600", "9.0.0"
            ,"http://cdn.looklet.com/flash/expressInstall.swf"
            ,flashvars, this.params, attributes);

    }

    ,containerId : "lookletApp"

    ,languageCode : ""
           
    ,countryCode : ""

                ,options : {}
    
    ,params : {
        bgcolor : "#ffffff",
        menu : false,
        scale : "noScale",
        allowScriptAccess  : "always"
    }
    
}