<?xml version="1.0"?>
<layout version="0.1.0">
    <default>
        <reference name="head">
            <action method="addJs" ifconfig="cms/modal/enabled">
                <script>prototype/window.js</script>
            </action>
            <action method="addItem" ifconfig="cms/modal/enabled">
                <type>js_css</type>
                <name>prototype/windows/themes/lighting.css</name>
            </action>
            <action method="addItem" ifconfig="cms/modal/enabled">
                <type>skin_js</type>
                <name>js/somethingdigital_modal/modal.js</name>
            </action>
        </reference>
        <reference name="before_body_end">
            <block type="somethingdigital_modal/modal" name="somethingdigital_modal">
                <action method="setTemplate" ifconfig="cms/modal/enabled">
                    <template>somethingdigital/modal/modal.phtml</template>
                </action>
            </block>
        </reference>
    </default>
</layout>

<?xml version="1.0"?>
<layout version="0.1.0">
    <default>
        <reference name="head">
            <action method="addJs" ifconfig="cms/modal/enabled">
                <script>prototype/window.js</script>
            </action>
            <action method="addItem" ifconfig="cms/modal/enabled">
                <type>js_css</type>
                <name>prototype/windows/themes/default.css</name>
            </action>
            <action method="addItem" ifconfig="cms/modal/enabled">
                <type>skin_js</type>
                <name>js/somethingdigital_modal/modal.js</name>
            </action>
        </reference>
        <reference name="before_body_end">
            <block type="somethingdigital_modal/modal" name="somethingdigital_modal">
                <action method="setTemplate" ifconfig="cms/modal/enabled">
                    <template>somethingdigital/modal/modal.phtml</template>
                </action>
            </block>
        </reference>
    </default>
</layout>

Load correct theme for Window.js
Load correct theme for Window.js

lighting.js doesn't actually position the modal correctly.

Fixes #4