var embedded = new Class({
    Extends: element,
    Implements: Options,
    'height': 460,
    options: {
        "src": "styles/kmap.swf",
        "oParams": {
            menu: "false",
            scale: "noscale",
            allowScriptAccess: "none",
            quality: "HIGH"
        },
        "oFlashvars": { //vars
            lcid: "1025",
            langURL: "http://localhost:8080/kempinski/data/lang.xml",
            enURL: "http://localhost:8080/kempinski/data/en01.xml",
            fontDir: "http://localhost:8080/kempinski/fonts/",
            configURL: "http://localhost:8080/kempinski/data/configTest.xml",
            HotelDirectory: "Hotel Directory",
            Close: "Back",
            All: "All",
            hotel: "hotel",
            hotels: "hotels",
            FindOutMore: "Find out more"
        },
        "oAttributes": {
            id: "flashMap", // what to call with External Interface,
            name: "flashMap",
            style: "width:960px;height:460px;background-color: #000000;"
        }
    },
    "initialize": function(options) {
        this.setOptions(options);

        if (src_map) this.options.src = src_map;

        if (flashvars_map) options.oFlashvars = flashvars_map;
        if (params_map) options.oParams = params_map;
        if (attributes_map) options.oAttributes = attributes_map;

        var obj = new Swiff(this.options.src, {
            id: options.object, //"flashMap"
            width: 960,
            height: 462,
            params: options.oParams,
            vars: options.oFlashvars/*,
			attributes: options.oAttributes,
			callBacks: {
				load: myOnloadFunc
			}*/
        }).toElement();

        var menuHeight = $$(".mainnav")[0].getCoordinates().height + $$(".topnav")[0].getCoordinates().height + $("semitrans_strip").getCoordinates().height + 20;
        var leftPos = 0; //$("middleground").getCoordinates().left;
        options.object.adopt(obj).setStyles({ top: menuHeight, left: leftPos });

        /*options.trigger.addEvent("click", function() {
            options.object.morph('.opaque');
			// need to get static_content again
			if(options.object.getCoordinates().height > $("static_content").getCoordinates().height)
			{
				$("static_content").setStyle("height",options.object.getCoordinates().height + 50);
				$("background").setStyle("height", options.object.getCoordinates().height + coords.header.height + coords.subnav.height + coords.footer.height + 110);
			}
            return false;
        });*/
    }
});

            
