$(document).ready(function()
    {
        // Die Satzung FR
        $("div#node-321 .content").click(function ()
        {
            $(this).children("div.node-321_body").slideToggle();
            $(this).children("div.node-321_teaser").slideToggle();
            return false;
        });
    
    
    
        // MouseOver Effect Download der Satzung FR
        $("#content .download-button img").hover(
            function()
            {
                $(this).attr({
                    src: "/fileadmin/templates/main/theme/images/content/fr/but_download_satzung_omo.gif"
                });
            },
            function()
            {
                $(this).attr({
                    src: "/fileadmin/templates/main/theme/images/content/fr/but_download_satzung.gif"
                });
            });
    

        // MouseOver Effect Download des Profils

        $("#content .download-button-profile img").hover(
            function()
            {
                $(this).attr({
                    src: "/fileadmin/templates/main/theme/images/content/fr/but_download_profil_omo.gif"
                });
            },
            function()
            {
                $(this).attr({
                    src: "/fileadmin/templates/main/theme/images/content/fr/but_download_profil.gif"
                });
            });
    
        // MouseOver Effect Mitgliedsantrag zum Formular Button FR
        $(".node-405 .goto-button img").hover(
            function()
            {
                $(this).attr({
                    src: "/fileadmin/templates/main/theme/images/content/fr/but_mitgliedsantrag_omo.gif"
                });
            },
            function()
            {
                $(this).attr({
                    src: "/fileadmin/templates/main/theme/images/content/fr/but_mitgliedsantrag.gif"
                });
            });
    
    
    
        // MouseOver Effect Mitgliedsantrag Formular Submit Button FR
        $(".node-409 input.form-submit").hover(
            function()
            {
                $(this).css({
                    "background": "url('/fileadmin/templates/main/theme/images/content/fr/but_druck_omo.gif') no-repeat left top"
                });
            },
            function()
            {
                $(this).css({
                    "background": "url('/fileadmin/templates/main/theme/images/content/fr/but_druck.gif') no-repeat left top"
                });
            });
    
    

        // MouseOver Effect Patenschaft zum Formular Button FR
        $(".node-407 .goto-button img").hover(
            function()
            {
                $(this).attr({
                    src: "/fileadmin/templates/main/theme/images/content/fr/but_anmeldeform_omo.gif"
                });
            },
            function()
            {
                $(this).attr({
                    src: "/fileadmin/templates/main/theme/images/content/fr/but_anmeldeform.gif"
                });
            });
    
    
    
        // MouseOver Effect Projektpatenschaft Formular Submit Button FR
        $(".node-410 input.form-submit").hover(
            function()
            {
                $(this).css({
                    "background": "url('/fileadmin/templates/main/theme/images/content/fr/but_einzugsermaechtigung_omo.gif') no-repeat left top"
                });
            },
            function()
            {
                $(this).css({
                    "background": "url('/fileadmin/templates/main/theme/images/content/fr/but_einzugsermaechtigung.gif') no-repeat left top"
                });
            });


        // MouseOver Effect Kontakt Formular Submit Button FR
        $(".contactform input.form-submit").hover(
            function()
            {
                $(this).css({
                    "background": "url('/fileadmin/templates/main/theme/images/content/fr/but_senden_omo.gif') no-repeat left top"
                });
            },
            function()
            {
                $(this).css({
                    "background": "url('/fileadmin/templates/main/theme/images/content/fr/but_senden.gif') no-repeat left top"
                });
            });


    
        // MouseOver Effect Newsletter-Bestell-Formular Submit Button FR
        $("#address_collector_signin input#edit-submit").hover(
            function()
            {
                $(this).css({
                    "background": "url('/fileadmin/templates/main/theme/images/content/fr/but_newsletter_order_omo.gif') no-repeat left top"
                });
            },
            function()
            {
                $(this).css({
                    "background": "url('/fileadmin/templates/main/theme/images/content/fr/but_newsletter_order.gif') no-repeat left top"
                });
            });

    
    
        // Druckansicht des Mitgliedsantrag-Formulars FR
        $("form#webform-client-form-409").submit(function()
        {
            // Elemente ausblenden
            $("div#header").css({
                display: "none"
            });
            $("div#header_node-409").css({
                "display": "none"
            });
            $("div#primary").css({
                "display": "none"
            });
            $("div.back-button").css({
                "display": "none"
            });
            $("div#sidebar-left").css({
                "display": "none"
            });
            $("div#sidebar-right").css({
                "display": "none"
            });
            $("input.form-submit").css({
                "display": "none"
            });
		
            // Elemente beeinflussen
            $("body").css({
                "font-size": "12pt"
            });
            $("input").css({
                "font-size": "12pt"
            });
            $("div#text2image-ps1").css({
                "margin-left": "0"
            });
            $("div#node-409").css({
                "width": "100%"
            });
            $("div.node-409 label").css({
                "width": "150px"
            });
		
            $("div#content .node-409 input").css({
                "width": "512px",
                "background": "none",
                "border-bottom": "1px dotted #333333"
            });

            $("div#node-409 #webform-component-plz .form-item input").css({
                "width": "60px"
            });
            $("div#node-409 #webform-component-wohnort .form-item input").css({
                "width": "430px"
            });
		
            $("div#node-409 #webform-component-telefon input").css({
                "width": "195px"
            });
            $("div#node-409 #webform-component-mobil input").css({
                "width": "195px"
            });
            $("div#node-409 #webform-component-geburtsdatum input").css({
                "width": "195px"
            });
            $("div#node-409 #webform-component-beruf input").css({
                "width": "195px"
            });
            $("div#node-409 #webform-component-blz input").css({
                "width": "195px"
            });


            $("div#node-409 #webform-component-fax label").css({
                "width": "100px"
            });
            $("div#node-409 #webform-component-e_mail label").css({
                "width": "100px"
            });
            $("div#node-409 #webform-component-nationalitat label").css({
                "width": "100px"
            });
            $("div#node-409 #webform-component-konto label").css({
                "width": "100px"
            });

            $("div#node-409 #webform-component-fax input").css({
                "width": "195px"
            });
            $("div#node-409 #webform-component-e_mail input").css({
                "width": "195px"
            });
            $("div#node-409 #webform-component-nationalitat input").css({
                "width": "195px"
            });
            $("div#node-409 #webform-component-konto input").css({
                "width": "195px"
            });
		
            $("label.option").css({
                "width": "100%"
            });
            $("input.form-radio").css({
                "width": "30px"
            });

            $("div#content #webform-component-zahlungswunsch .form-radios input").css({
                "border-bottom": "none"
            });

            // Seite ausdrucken
            window.print();
		
            // Seite neu laden
            window.location.href = window.location.pathname;

            // Formular abschicken vermeiden
            return false;
        });
    	



        // Druckansicht des Projektpatenschafts-Formulars FR
        $("form#webform-client-form-410").submit(function()
        {
            // Elemente ausblenden
            $("div#header").css({
                display: "none"
            });
            $("div#header_node-410").css({
                "display": "none"
            });
            $("div#primary").css({
                "display": "none"
            });
            $("div.back-button").css({
                "display": "none"
            });
            $("div#sidebar-left").css({
                "display": "none"
            });
            $("div#sidebar-right").css({
                "display": "none"
            });
            $("input.form-submit").css({
                "display": "none"
            });
		
            // Elemente beeinflussen
            $("body").css({
                "font-size": "12pt"
            });
            $("input").css({
                "font-size": "12pt"
            });
            $("div#text2image-ps1").css({
                "margin-left": "0"
            });
            $("div#node-410").css({
                "width": "695px"
            });
            $("div.node-410 label").css({
                "width": "150px"
            });
		
            $("div#content .node-410 input").css({
                "width": "512px",
                "background": "none",
                "border-bottom": "1px dotted #333333"
            });

            $("div#node-410 #webform-component-projektauswahl label").css({
                "width": "375px"
            });

            $("div#node-410 #webform-component-plz .form-item input").css({
                "width": "60px"
            });
            $("div#node-410 #webform-component-wohnort .form-item input").css({
                "width": "430px"
            });
		
            $("div#node-410 #webform-component-telefon input").css({
                "width": "195px"
            });
            $("div#node-410 #webform-component-blz input").css({
                "width": "195px"
            });


            $("div#node-410 #webform-component-monatsbeitrag label").css({
                "width": "340px"
            });

            $("div#node-410 #webform-component-e_mail label").css({
                "width": "100px"
            });
            $("div#node-410 #webform-component-e_mail input").css({
                "width": "195px"
            });
            $("div#node-410 #webform-component-geldinstitut label").css({
                "width": "100px"
            });
            $("div#node-410 #webform-component-geldinstitut input").css({
                "width": "195px"
            });

            $("div#node-410 #webform-component-anderer_betrag input").css({
                "width": "195px"
            });
		
            //$("label.option").css({ "width": "100%"});
            $("input.form-radio").css({
                "width": "30px"
            });

            $("div#content #webform-component-monatsbeitrag .form-radios input").css({
                "border-bottom": "none",
                "margin-bottom": "10px"
            });
            $("div#content #webform-component-monatlich_zum .form-radios input").css({
                "border-bottom": "none",
                "margin-bottom": "10px"
            });
		
            $("div#content #webform-component-monatlich_zum #edit-submitted-monatlich-zum-15-wrapper").css({
                "width": "85px"
            });
		
            $("div#content #webform-component-vom_folgenden_konto_ab").css({
                "width": "180px"
            });
		
            $("div#node-410 #webform-component-datum input").css({
                "width": "60px",
                "border-bottom": "1px dotted #333333"
            });
            $("div#node-410 #webform-component-unterschrift .form-item input").css({
                "width": "430px"
            });

            // Ausnahmen fuer den heiss geliebten Internet Explorer
            //alert("So, so, Sie verwenden also " + navigator.userAgent);
            if(navigator.userAgent.search(/MSIE/) > 0)
            {
                $("div#node-410 #webform-component-bundesland").css({
                    "clear": "both"
                });
                $("div#node-410 #webform-component-monatsbeitrag").css({
                    "clear": "both"
                });
                $("div#node-410 #webform-component-blz").css({
                    "margin-left": "-355px",
                    "margin-top": "45px"
                });
                $("div#node-410 #webform-component-geldinstitut").css({
                    "margin-left": "13px",
                    "margin-top": "15px"
                });
                $("div#node-410 #webform-component-vom_folgenden_konto_ab").css({
                    "margin-right": "20px"
                });
                $("div#node-410 #webform-component-kontonummer").css({
                    "clear": "both",
                    "margin-top": "0px"
                });
                $("div#node-410 #webform-component-unterschrift").css({
                    "margin-bottom": "20px"
                });
                $("div#container").css({
                    "padding-bottom": "20px"
                });
            }

            if(navigator.userAgent.search(/MSIE 6/) > 0)
            {
                //alert(navigator.userAgent.search(/MSIE 6/));
                $("div#node-410 #webform-component-blz").css({
                    "margin-left": "-450px",
                    "margin-top": "45px"
                });
                $("div#node-410 #webform-component-geldinstitut").css({
                    "margin-left": "-85px",
                    "margin-top": "15px"
                });
            }

            // Seite ausdrucken
            window.print();
		
            // Seite neu laden
            window.location.href = window.location.pathname;

            // Formular abschicken vermeiden
            return false;
        });



    });
