/*
Tauscht die Texte für Partnerbuchungen aus
*/

$(document).ready(function() {

    if (PARTNER == "143") {
        /* Es handelt sich um den Partner Alpin Rentals */
        
        var $title_h1 = $("div.title h1");
        var title = $title_h1.html();
        var $discount_tag = $("strong#partner_discount_text");
        var discount = $discount_tag.html();
        
        // Titel ergänzen
        if (title == "Herzlich willkommen bei Ihrer Online-Buchung!") {
            title = 'Herzlich willkommen bei Ihrer <br />' + 
                '<span style="color: red;">Alpin Rentals</span> Online-Buchung!';
            $title_h1.html(title);
        } else if (title == "Welcome to your online booking!") {
            title = 'Welcome to your <br />' + 
                '<span style="color: red;">Alpin Rentals</span> online booking!';
            $title_h1.html(title);
        } else if (title == "Hartelijk welkom bij uw online-boeking!") {
            title = 'Hartelijk welkom bij uw <br />' + 
                '<span style="color: red;">Alpin Rentals</span> online-boeking!';
            $title_h1.html(title);
        }
        
        // Rabatttext austauschen
        if (discount == "5 Prozent Rabatt") {
            discount = "10 Prozent Rabatt";
            $discount_tag.html(discount);
        } else if (discount == "5 percent discount") {
            discount = "10 percent discount";
            $discount_tag.html(discount);
        } else if (discount == "5 procent korting") {
            discount = "10 procent korting";
            $discount_tag.html(discount);
        }
    }
    
});

