﻿/**
 * init Javascript
 *
 * (c) 2008 by Michal Luberda
 */
 
$ (document).ready (
    function () {
        // pl button
        if ($ ("#div-euroticket .p-submit input").length) {
            $ ("#div-euroticket .p-submit input").hover (
                function () {
                    $ (this).css ({
                        background: "url(image/content/euroticket-submit-hover.jpg) no-repeat 0 0"
                    });
                },
                function () {
                    $ (this).css ({
                        background: "url(image/content/euroticket-submit.jpg) no-repeat 0 0"
                    });
                }
            );
        }
        // en button
        if ($ ("#div-euroticket .p-submit-en input").length) {
            $ ("#div-euroticket .p-submit-en input").hover (
                function () {
                    $ (this).css ({
                        background: "url(image/content/euroticket-submit-hover-en.jpg) no-repeat 0 0"
                    });
                },
                function () {
                    $ (this).css ({
                        background: "url(image/content/euroticket-submit-en.jpg) no-repeat 0 0"
                    });
                }
            );
        }
        // footer
        var in_height = $ (document).height ();
        var in_height_wrapper = $ ("#div-wrapper").height ();
        if (in_height > in_height_wrapper) {
            $ ("#div-fill").css ({
                height: in_height - in_height_wrapper + "px"
            });
        }
    }
);

