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 : "/restricted/look/save.do",     
            urlWww : "http://looklet.com",     
            urlErrorLogging : "/restricted/flash/error/save",
            languageCode : this.languageCode,    
            countryCode : this.countryCode,    
            initLook : '',
            crossdomainFiles : 'http://looklet.com/crossdomain.xml,http://gb.looklet.com/crossdomain.xml,http://es.looklet.com/crossdomain.xml,http://cdn.looklet.com/crossdomain.xml,http://files.looklet.com/crossdomain.xml,http://files.looklet.com.s3.amazonaws.com/crossdomain.xml'
        };
                
        // merge options with flashvars
        for (attrname in this.options) { 
            flashvars[attrname] = this.options[attrname]; 
        }

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

        if (this.className != null) {
            attributes.className = this.className;
        }

        swfobject.embedSWF("http://cdn.looklet.com/flash/looklet.swf?rev=117"
            ,this.containerId, "990", "630", "10.0.0"
            ,"http://cdn.looklet.com/flash/expressInstall.swf"
            ,flashvars, this.params, attributes);
    }

    ,containerId : "lookletApp"

    ,languageCode : "en"
           
    ,countryCode : ""

    ,className : null

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

/*
var lookletLip = {
    embed : function() {
        var flashvars = {
            urlClientApi : "http://cdn.looklet.com/client-api",
            urlFiles : "http://files.looklet.com",
            crossdomainFiles : 'http://looklet.com/crossdomain.xml,http://gb.looklet.com/crossdomain.xml,http://es.looklet.com/crossdomain.xml,http://cdn.looklet.com/crossdomain.xml,http://files.looklet.com/crossdomain.xml,http://files.looklet.com.s3.amazonaws.com/crossdomain.xml'    
        };
                
        // merge options with flashvars
        for (attrname in this.options) { 
            flashvars[attrname] = this.options[attrname]; 
        }

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

        if (this.className != null)
        {
            attributes.className = this.className;
        }

        swfobject.embedSWF("http://cdn.looklet.com/flash/lookInProgress.swf?rev=117"
            ,this.containerId, "0", "0", "10.0.0"
            ,"http://cdn.looklet.com/flash/expressInstall.swf"
            ,flashvars, {allowScriptAccess  : "always"}, {});

    }

    ,containerId : "lip_proxy"
}
*/
