<?xml version="1.0" encoding="utf-8"?>
<includes>
    <variable name="MediaFlag_MPAA_ExtendedInfo">
        <!-- US (IMDB) -->
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.StartsWith(Window.Property(mpaa),Rated R)] | [String.IsEmpty(Window.Property(mpaa)) + String.StartsWith(VideoPlayer.mpaa,Rated R)]">badges/content_rating/us/r.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.StartsWith(Window.Property(mpaa),Rated PG-13)] | [String.IsEmpty(Window.Property(mpaa)) + String.StartsWith(VideoPlayer.mpaa,Rated PG-13)]">badges/content_rating/us/pg13.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.StartsWith(Window.Property(mpaa),Rated PG)] | [String.IsEmpty(Window.Property(mpaa)) + String.StartsWith(VideoPlayer.mpaa,Rated PG)]">badges/content_rating/us/pg.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.StartsWith(Window.Property(mpaa),Rated NC)] | [String.IsEmpty(Window.Property(mpaa)) + String.StartsWith(VideoPlayer.mpaa,Rated NC)]">badges/content_rating/us/nc17.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.StartsWith(Window.Property(mpaa),Rated G)] | [String.IsEmpty(Window.Property(mpaa)) + String.StartsWith(VideoPlayer.mpaa,Rated G)]">badges/content_rating/us/g.png</value>
        <!-- US (TMDB) -->
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.IsEqual(Window.Property(mpaa),R)] | [String.IsEmpty(Window.Property(mpaa)) + String.IsEqual(VideoPlayer.mpaa,R)]">badges/content_rating/us/r.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.IsEqual(Window.Property(mpaa),PG-13)] | [String.IsEmpty(Window.Property(mpaa)) + String.IsEqual(VideoPlayer.mpaa,PG-13)]">badges/content_rating/us/pg13.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.IsEqual(Window.Property(mpaa),PG)] | [String.IsEmpty(Window.Property(mpaa)) + String.IsEqual(VideoPlayer.mpaa,PG)]">badges/content_rating/us/pg.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.IsEqual(Window.Property(mpaa),NC-17)] | [String.IsEmpty(Window.Property(mpaa)) + String.IsEqual(VideoPlayer.mpaa,NC-17)]">badges/content_rating/us/nc17.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.IsEqual(Window.Property(mpaa),G)] | [String.IsEmpty(Window.Property(mpaa)) + String.IsEqual(VideoPlayer.mpaa,G)]">badges/content_rating/us/g.png</value>
        <!-- US (TV) -->
        <value condition="!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),TV-)">badges/content_rating/tv/$INFO[Window.Property(mpaa),,.png]</value>
        <value condition="String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,TV-)">badges/content_rating/tv/$INFO[VideoPlayer.mpaa,,.png]</value>
        <!-- Germany -->
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),Germany:0)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,Germany:0)]">badges/content_rating/de/0.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),Germany:6)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,Germany:6)]">badges/content_rating/de/6.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),Germany:12)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,Germany:12)]">badges/content_rating/de/12.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),Germany:16)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,Germany:16)]">badges/content_rating/de/16.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),Germany:18)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,Germany:18)]">badges/content_rating/de/18.png</value>
        <!-- Australia -->
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),Australia:R)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,Australia:R)]">badges/content_rating/au/r.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),Australia:MA)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,Australia:MA)]">badges/content_rating/au/ma.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),Australia:M)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,Australia:M)]">badges/content_rating/au/m.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),Australia:PG)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,Australia:PG)]">badges/content_rating/au/pg.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),Australia:G)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,Australia:G)]">badges/content_rating/au/g.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),Australia:X)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,Australia:X)]">badges/content_rating/au/x.png</value>
        <!-- Italy -->
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.StartsWith(Window.Property(mpaa),Rated All)] | [String.IsEmpty(Window.Property(mpaa)) + String.StartsWith(VideoPlayer.mpaa,Rated All)]">badges/content_rating/it/t.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.StartsWith(Window.Property(mpaa),Rated T)] | [String.IsEmpty(Window.Property(mpaa)) + String.StartsWith(VideoPlayer.mpaa,Rated T)]">badges/content_rating/it/t.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),it/T)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,it/T)]">badges/content_rating/it/t.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),VM14)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,VM14)]">badges/content_rating/it/vm14.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),VM16)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,VM16)]">badges/content_rating/it/vm16.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),VM18)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,VM18)]">badges/content_rating/it/vm18.png</value>
        <!-- United Kingdom -->
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),UK:U)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,UK:U)]">badges/content_rating/uk/u.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),UK:PG)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,UK:PG)]">badges/content_rating/uk/pg.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),UK:12A)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,UK:12A)]">badges/content_rating/uk/12a.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),UK:12)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,UK:12)]">badges/content_rating/uk/12.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),UK:15)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,UK:15)]">badges/content_rating/uk/15.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),UK:18)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,UK:18)]">badges/content_rating/uk/18.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),UK:X)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,UK:X)]">badges/content_rating/uk/r18.png</value>
        <!-- Poland -->
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),Bez ograniczeń)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,Bez ograniczeń)]">badges/content_rating/pl/bo.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),7 lat)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,7 lat)]">badges/content_rating/pl/7.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),12 lat)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,12 lat)]">badges/content_rating/pl/12.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),16 lat)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,16 lat)]">badges/content_rating/pl/16.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),18 lat)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,18 lat)]">badges/content_rating/pl/18.png</value>
        <!-- NO RATING -->
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),Unrated)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,Unrated)]">badges/content_rating/unrated.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),unrated)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,unrated)]">badges/content_rating/unrated.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),Not Rated)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,Not Rated)]">badges/content_rating/notrated.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),not Rated)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,not Rated)]">badges/content_rating/notrated.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),Not rated)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,Not rated)]">badges/content_rating/notrated.png</value>
        <value condition="[!String.IsEmpty(Window.Property(mpaa)) + String.Contains(Window.Property(mpaa),not rated)] | [String.IsEmpty(Window.Property(mpaa)) + String.Contains(VideoPlayer.mpaa,not rated)]">badges/content_rating/notrated.png</value>
        <!--DEFAULT-->
        <value>badges/content_rating/norating.png</value>
    </variable>
    <variable name="MediaFlag_MPAA">
        <!-- US (IMDB) -->
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.StartsWith(ListItem.mpaa,Rated R)] | [String.IsEmpty(ListItem.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated R)]">badges/content_rating/us/r.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.StartsWith(ListItem.mpaa,Rated PG-13)] | [String.IsEmpty(ListItem.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated PG-13)]">badges/content_rating/us/pg13.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.StartsWith(ListItem.mpaa,Rated PG)] | [String.IsEmpty(ListItem.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated PG)]">badges/content_rating/us/pg.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.StartsWith(ListItem.mpaa,Rated NC)] | [String.IsEmpty(ListItem.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated NC)]">badges/content_rating/us/nc17.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.StartsWith(ListItem.mpaa,Rated G)] | [String.IsEmpty(ListItem.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated G)]">badges/content_rating/us/g.png</value>
        <!-- US (TMDB) -->
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.IsEqual(ListItem.mpaa,R)] | [String.IsEmpty(ListItem.mpaa) + String.IsEqual(VideoPlayer.mpaa,R)]">badges/content_rating/us/r.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.IsEqual(ListItem.mpaa,PG-13)] | [String.IsEmpty(ListItem.mpaa) + String.IsEqual(VideoPlayer.mpaa,PG-13)]">badges/content_rating/us/pg13.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.IsEqual(ListItem.mpaa,PG)] | [String.IsEmpty(ListItem.mpaa) + String.IsEqual(VideoPlayer.mpaa,PG)]">badges/content_rating/us/pg.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.IsEqual(ListItem.mpaa,NC-17)] | [String.IsEmpty(ListItem.mpaa) + String.IsEqual(VideoPlayer.mpaa,NC-17)]">badges/content_rating/us/nc17.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.IsEqual(ListItem.mpaa,G)] | [String.IsEmpty(ListItem.mpaa) + String.IsEqual(VideoPlayer.mpaa,G)]">badges/content_rating/us/g.png</value>
        <!-- US (TV) -->
        <value condition="!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,TV-)">$INFO[ListItem.mpaa,badges/content_rating/tv/,.png]</value>
        <value condition="String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,TV-)">$INFO[VideoPlayer.mpaa,badges/content_rating/tv/,.png]</value>
        <!-- Germany -->
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,Germany:0)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,Germany:0)]">badges/content_rating/de/0.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,Germany:6)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,Germany:6)]">badges/content_rating/de/6.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,Germany:12)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,Germany:12)]">badges/content_rating/de/12.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,Germany:16)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,Germany:16)]">badges/content_rating/de/16.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,Germany:18)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,Germany:18)]">badges/content_rating/de/18.png</value>
        <!-- Australia -->
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,Australia:R)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,Australia:R)]">badges/content_rating/au/r.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,Australia:MA)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,Australia:MA)]">badges/content_rating/au/ma.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,Australia:M)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,Australia:M)]">badges/content_rating/au/m.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,Australia:PG)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,Australia:PG)]">badges/content_rating/au/pg.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,Australia:G)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,Australia:G)]">badges/content_rating/au/g.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,Australia:X)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,Australia:X)]">badges/content_rating/au/x.png</value>
        <!-- Italy -->
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.StartsWith(ListItem.mpaa,Rated All)] | [String.IsEmpty(ListItem.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated All)]">badges/content_rating/it/t.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.StartsWith(ListItem.mpaa,Rated T)] | [String.IsEmpty(ListItem.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated T)]">badges/content_rating/it/t.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,it/T)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,it/T)]">badges/content_rating/it/t.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,VM14)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,VM14)]">badges/content_rating/it/vm14.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,VM16)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,VM16)]">badges/content_rating/it/vm16.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,VM18)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,VM18)]">badges/content_rating/it/vm18.png</value>
        <!-- United Kingdom -->
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,UK:U)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,UK:U)]">badges/content_rating/uk/u.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,UK:PG)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,UK:PG)]">badges/content_rating/uk/pg.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,UK:12A)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,UK:12A)]">badges/content_rating/uk/12a.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,UK:12)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,UK:12)]">badges/content_rating/uk/12.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,UK:15)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,UK:15)]">badges/content_rating/uk/15.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,UK:18)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,UK:18)]">badges/content_rating/uk/18.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,UK:X)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,UK:X)]">badges/content_rating/uk/r18.png</value>
        <!-- Poland -->
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,Bez ograniczeń)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,Bez ograniczeń)]">badges/content_rating/pl/bo.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,7 lat)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,7 lat)]">badges/content_rating/pl/7.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,12 lat)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,12 lat)]">badges/content_rating/pl/12.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,16 lat)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,16 lat)]">badges/content_rating/pl/16.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,18 lat)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,18 lat)]">badges/content_rating/pl/18.png</value>
        <!-- NO RATING -->
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,Unrated)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,Unrated)]">badges/content_rating/unrated.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,unrated)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,unrated)]">badges/content_rating/unrated.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,Not Rated)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,Not Rated)]">badges/content_rating/notrated.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,not Rated)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,not Rated)]">badges/content_rating/notrated.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,Not rated)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,Not rated)]">badges/content_rating/notrated.png</value>
        <value condition="[!String.IsEmpty(ListItem.mpaa) + String.Contains(ListItem.mpaa,not rated)] | [String.IsEmpty(ListItem.mpaa) + String.Contains(VideoPlayer.mpaa,not rated)]">badges/content_rating/notrated.png</value>
        <!--DEFAULT-->
        <value>badges/content_rating/norating.png</value>
    </variable>
    <variable name="MediaFlag_MPAAOSD">
        <!-- US (IMDB) -->
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated R)] | [String.IsEmpty(VideoPlayer.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated R)]">badges/content_rating/us/r.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated PG-13)] | [String.IsEmpty(VideoPlayer.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated PG-13)]">badges/content_rating/us/pg13.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated PG)] | [String.IsEmpty(VideoPlayer.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated PG)]">badges/content_rating/us/pg.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated NC)] | [String.IsEmpty(VideoPlayer.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated NC)]">badges/content_rating/us/nc17.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated G)] | [String.IsEmpty(VideoPlayer.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated G)]">badges/content_rating/us/g.png</value>
        <!-- US (TMDB) -->
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.IsEqual(VideoPlayer.mpaa,R)] | [String.IsEmpty(VideoPlayer.mpaa) + String.IsEqual(VideoPlayer.mpaa,R)]">badges/content_rating/us/r.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.IsEqual(VideoPlayer.mpaa,PG-13)] | [String.IsEmpty(VideoPlayer.mpaa) + String.IsEqual(VideoPlayer.mpaa,PG-13)]">badges/content_rating/us/pg13.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.IsEqual(VideoPlayer.mpaa,PG)] | [String.IsEmpty(VideoPlayer.mpaa) + String.IsEqual(VideoPlayer.mpaa,PG)]">badges/content_rating/us/pg.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.IsEqual(VideoPlayer.mpaa,NC-17)] | [String.IsEmpty(VideoPlayer.mpaa) + String.IsEqual(VideoPlayer.mpaa,NC-17)]">badges/content_rating/us/nc17.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.IsEqual(VideoPlayer.mpaa,G)] | [String.IsEmpty(VideoPlayer.mpaa) + String.IsEqual(VideoPlayer.mpaa,G)]">badges/content_rating/us/g.png</value>
        <!-- US (TV) -->
        <value condition="!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,TV-)">$INFO[VideoPlayer.mpaa,badges/content_rating/tv/,.png]</value>
        <value condition="String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,TV-)">$INFO[VideoPlayer.mpaa,badges/content_rating/tv/,.png]</value>
        <!-- Germany -->
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Germany:0)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Germany:0)]">badges/content_rating/de/0.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Germany:6)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Germany:6)]">badges/content_rating/de/6.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Germany:12)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Germany:12)]">badges/content_rating/de/12.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Germany:16)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Germany:16)]">badges/content_rating/de/16.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Germany:18)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Germany:18)]">badges/content_rating/de/18.png</value>
        <!-- Australia -->
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Australia:R)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Australia:R)]">badges/content_rating/au/r.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Australia:MA)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Australia:MA)]">badges/content_rating/au/ma.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Australia:M)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Australia:M)]">badges/content_rating/au/m.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Australia:PG)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Australia:PG)]">badges/content_rating/au/pg.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Australia:G)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Australia:G)]">badges/content_rating/au/g.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Australia:X)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Australia:X)]">badges/content_rating/au/x.png</value>
        <!-- Italy -->
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated All)] | [String.IsEmpty(VideoPlayer.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated All)]">badges/content_rating/it/t.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated T)] | [String.IsEmpty(VideoPlayer.mpaa) + String.StartsWith(VideoPlayer.mpaa,Rated T)]">badges/content_rating/it/t.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,it/T)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,it/T)]">badges/content_rating/it/t.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,VM14)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,VM14)]">badges/content_rating/it/vm14.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,VM16)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,VM16)]">badges/content_rating/it/vm16.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,VM18)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,VM18)]">badges/content_rating/it/vm18.png</value>
        <!-- United Kingdom -->
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,UK:U)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,UK:U)]">badges/content_rating/uk/u.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,UK:PG)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,UK:PG)]">badges/content_rating/uk/pg.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,UK:12A)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,UK:12A)]">badges/content_rating/uk/12a.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,UK:12)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,UK:12)]">badges/content_rating/uk/12.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,UK:15)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,UK:15)]">badges/content_rating/uk/15.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,UK:18)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,UK:18)]">badges/content_rating/uk/18.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,UK:X)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,UK:X)]">badges/content_rating/uk/r18.png</value>
        <!-- Poland -->
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Bez ograniczeń)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Bez ograniczeń)]">badges/content_rating/pl/bo.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,7 lat)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,7 lat)]">badges/content_rating/pl/7.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,12 lat)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,12 lat)]">badges/content_rating/pl/12.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,16 lat)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,16 lat)]">badges/content_rating/pl/16.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,18 lat)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,18 lat)]">badges/content_rating/pl/18.png</value>
        <!-- NO RATING -->
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Unrated)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Unrated)]">badges/content_rating/unrated.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,unrated)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,unrated)]">badges/content_rating/unrated.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Not Rated)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Not Rated)]">badges/content_rating/notrated.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,not Rated)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,not Rated)]">badges/content_rating/notrated.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Not rated)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,Not rated)]">badges/content_rating/notrated.png</value>
        <value condition="[!String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,not rated)] | [String.IsEmpty(VideoPlayer.mpaa) + String.Contains(VideoPlayer.mpaa,not rated)]">badges/content_rating/notrated.png</value>
        <!--DEFAULT-->
        <value>badges/content_rating/norating.png</value>
    </variable>
    <variable name="videocodec">
        <value condition="[String.Contains(ListItem(0).Filenameandpath,bluray) | String.Contains(ListItem(0).Filenameandpath,blu-ray) | String.Contains(ListItem(0).Filenameandpath,bdrip)]">bluray</value>
        <value condition="String.Contains(ListItem.Filenameandpath,web)">webtv</value>
        <value condition="String.Contains(ListItem.Filenameandpath,hdtv)">hdtv</value>
        <value condition="String.Contains(ListItem.Filenameandpath,dvd) | String.EndsWith(ListItem.Filenameandpath,.ifo) | String.EndsWith(ListItem.Filenameandpath,.iso)">dvd</value>
        <value condition="String.Contains(ListItem.Filenameandpath,4k)">4kbis</value>
        <value condition="[String.Contains(ListItem.VideoCodec,div) | String.IsEqual(ListItem.VideoCodec,dx50)]">divx</value>
        <value>$INFO[ListItem.VideoCodec]</value>
    </variable>
    <variable name="videocodecExtendedInfo">
        <value condition="[String.Contains(Window.Property(Filenameandpath),bluray) | String.Contains(Window.Property(Filenameandpath),blu-ray) | String.Contains(Window.Property(Filenameandpath),bdrip)]">bluray</value>
        <value condition="String.Contains(Window.Property(Filenameandpath),web)">webtv</value>
        <value condition="String.Contains(Window.Property(Filenameandpath),hdtv)">hdtv</value>
        <value condition="String.Contains(Window.Property(Filenameandpath),dvd) | String.EndsWith(Window.Property(Filenameandpath),.ifo) | String.EndsWith(Window.Property(Filenameandpath),.iso)">dvd</value>
        <value condition="String.Contains(Window.Property(Filenameandpath),4k)">4kbis</value>
        <value condition="[String.StartsWith(Window.Property(VideoCodec),div) | String.IsEqual(Window.Property(VideoCodec),dx50)]">divx</value>
        <value>$INFO[Window.Property(VideoCodec)]</value>
    </variable>
    <variable name="videocodecOSD">
        <value condition="[String.Contains(Player.Filenameandpath,bluray) | String.Contains(Player.Filenameandpath,blu-ray) | String.Contains(Player.Filenameandpath,bdrip)]">bluray</value>
        <value condition="String.Contains(Player.Filenameandpath,web)">webtv</value>
        <value condition="String.Contains(Player.Filenameandpath,hdtv)">hdtv</value>
        <value condition="String.Contains(Player.Filenameandpath,dvd) | String.EndsWith(Player.Filenameandpath,.ifo) | String.EndsWith(Player.Filenameandpath,.iso)">dvd</value>
        <value condition="String.Contains(Player.Filenameandpath,4k)">4kbis</value>
        <value condition="[String.StartsWith(VideoPlayer.VideoCodec,div) | String.IsEqual(VideoPlayer.VideoCodec,dx50)]">divx</value>
        <value>$INFO[VideoPlayer.VideoCodec]</value>
    </variable>
    <include name="Codecs">
        <control type="image">
            <visible>!String.IsEmpty(ListItem.VideoResolution)</visible>
            <description>Video rez Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>badges/video/$INFO[ListItem.VideoResolution,,.png]</texture>
        </control>
        <control type="image">
            <visible>!String.IsEmpty(ListItem.VideoCodec)|[[String.Contains(ListItem(0).Filenameandpath,bluray) | String.Contains(ListItem(0).Filenameandpath,blu-ray) | String.Contains(ListItem(0).Filenameandpath,bdrip)]|String.Contains(ListItem.Filenameandpath,web)|String.Contains(ListItem.Filenameandpath,hdtv)|String.Contains(ListItem.Filenameandpath,dvd) | String.EndsWith(ListItem.Filenameandpath,.ifo) | String.EndsWith(ListItem.Filenameandpath,.iso)|String.StartsWith(ListItem.Path,videodb://movies/sets)|String.Contains(Player.Filenameandpath,4k)]</visible>
            <description>Codec Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[videocodec,badges/video/,.png]</texture>
        </control>
        <control type="image">
            <visible>!String.IsEmpty(ListItem.AudioChannels)</visible>
            <description>Audio Codec Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[ListItem.AudioChannels,badges/audio/,.png]</texture>
        </control>
        <control type="image">
            <visible>!String.IsEmpty(ListItem.AudioCodec)</visible>
            <description>Audio Codec Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[ListItem.AudioCodec,badges/audio/,.png]</texture>
        </control>
        <control type="image">
            <description>MPAA Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[MediaFlag_MPAA]</texture>
        </control>
        <control type="image">
            <visible>ListItem.IsStereoscopic|String.Contains(ListItem.Filenameandpath,.3dbd.) | String.Contains(ListItem.Filenameandpath,.3d.)</visible>
            <description>3D Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>badges/video/3dbd.png</texture>
        </control>
        <control type="group" id="1">
            <width>120</width>
            <height>80</height>
            <visible>!String.IsEmpty(ListItem.Top250) + !String.StartsWith(ListItem.Top250,0)</visible>
            <control type="image" id="1">
                <width>120</width>
                <height>80</height>
                <aspectratio>keep</aspectratio>
                <texture>badges/imdb.png</texture>
            </control>
            <control type="label" id="1">
                <posx>0</posx>
                <top>15</top>
                <width>120</width>
                <height>80</height>
                <font>BadgeFont</font>
                <align>center</align>
                <label>$INFO[ListItem.Top250]</label>
                <textcolor>AlternateBrightColor</textcolor>
            </control>
        </control>
    </include>
    <include name="CodecsExtendedInfo">
        <control type="image">
            <visible>!String.IsEmpty(Window.Property(VideoResolution))</visible>
            <description>Video rez Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>badges/video/$INFO[Window.Property(VideoResolution),,.png]</texture>
        </control>
        <control type="image">
            <visible>!String.IsEmpty(Window.Property(VideoCodec))</visible>
            <description>Codec Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[videocodecExtendedInfo,badges/video/,.png]</texture>
        </control>
        <control type="image">
            <visible>!String.IsEmpty(Window.Property(AudioChannels))</visible>
            <description>Audio Codec Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[Window.Property(AudioChannels),badges/audio/,.png]</texture>
        </control>
        <control type="image">
            <visible>!String.IsEmpty(Window.Property(AudioCodec))</visible>
            <description>Audio Codec Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[Window.Property(AudioCodec),badges/audio/,.png]</texture>
        </control>
        <control type="image">
            <description>MPAA Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[MediaFlag_MPAA_ExtendedInfo]</texture>
        </control>
        <control type="image">
            <visible>Window.Property(IsStereoscopic)|String.Contains(Window.Property(Filenameandpath),.3dbd.) | String.Contains(Window.Property(Filenameandpath),.3d.)</visible>
            <description>3D Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>badges/video/3dbd.png</texture>
        </control>
        <control type="group" id="1">
            <width>120</width>
            <height>80</height>
            <visible>!String.IsEmpty(Window.Property(Top250)) + !String.StartsWith(Window.Property(Top250),0)</visible>
            <control type="image" id="1">
                <width>120</width>
                <height>80</height>
                <aspectratio>keep</aspectratio>
                <texture>badges/imdb.png</texture>
            </control>
            <control type="label" id="1">
                <posx>0</posx>
                <top>15</top>
                <width>120</width>
                <height>80</height>
                <font>BadgeFont</font>
                <align>center</align>
                <label>$INFO[Window.Property(Top250)]</label>
                <textcolor>AlternateBrightColor</textcolor>
            </control>
        </control>
    </include>
    <include name="CodecsView">
        <control type="image">
            <visible>!String.IsEmpty(ListItem.VideoResolution)</visible>
            <description>Video rez Image</description>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>badges/video/$INFO[ListItem.VideoResolution,,.png]</texture>
        </control>
        <control type="image">
            <visible>!String.IsEmpty(ListItem.VideoCodec)|[[String.Contains(ListItem(0).Filenameandpath,bluray) | String.Contains(ListItem(0).Filenameandpath,blu-ray) | String.Contains(ListItem(0).Filenameandpath,bdrip)]|String.Contains(ListItem.Filenameandpath,web)|String.Contains(ListItem.Filenameandpath,hdtv)|String.Contains(ListItem.Filenameandpath,dvd) | String.EndsWith(ListItem.Filenameandpath,.ifo) | String.EndsWith(ListItem.Filenameandpath,.iso)|String.StartsWith(ListItem.Path,videodb://movies/sets)|String.Contains(Player.Filenameandpath,4k)]</visible>
            <description>Codec Image</description>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[videocodec,badges/video/,.png]</texture>
        </control>
        <control type="image">
            <visible>!String.IsEmpty(ListItem.AudioCodec)</visible>
            <description>Audio Codec Image</description>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[ListItem.AudioChannels,badges/audio/,.png]</texture>
        </control>
        <control type="image">
            <visible>!String.IsEmpty(ListItem.AudioCodec)</visible>
            <description>Audio Codec Image</description>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[ListItem.AudioCodec,badges/audio/,.png]</texture>
        </control>
        <control type="image">
            <visible>!ListItem.IsParentFolder+[Container.Content(movies)|Container.Content(episodes)|Container.Content(musicvideos)]</visible>
            <description>MPAA Image</description>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[MediaFlag_MPAA]</texture>
        </control>
        <control type="image">
            <visible>ListItem.IsStereoscopic|String.Contains(ListItem.Filenameandpath,.3dbd.) | String.Contains(ListItem.Filenameandpath,.3d.)</visible>
            <description>3D Image</description>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>badges/video/3dbd.png</texture>
        </control>
        <control type="group" id="1">
            <width>100</width>
            <height>60</height>
            <visible>!String.IsEmpty(ListItem.Top250) + !String.StartsWith(ListItem.Top250,0)</visible>
            <control type="image" id="1">
                <width>100</width>
                <height>60</height>
                <aspectratio>keep</aspectratio>
                <texture>badges/imdb.png</texture>
            </control>
            <control type="label" id="1">
                <posx>0</posx>
                <top>11</top>
                <width>100</width>
                <height>60</height>
                <font>BadgeFont</font>
                <align>center</align>
                <label>$INFO[ListItem.Top250]</label>
                <textcolor>AlternateBrightColor</textcolor>
            </control>
        </control>
    </include>
    <include name="CodecsCard">
        <control type="image">
            <visible>!String.IsEmpty(ListItem.VideoResolution)</visible>
            <description>Video rez Image</description>
            <posx>0</posx>
            <posy>0</posy>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>badges/video/$INFO[ListItem.VideoResolution,,.png]</texture>
        </control>
        <control type="image">
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="String.IsEmpty(ListItem.VideoResolution)">Conditional</animation>
            <visible>!String.IsEmpty(ListItem.VideoCodec)|[[String.Contains(ListItem(0).Filenameandpath,bluray) | String.Contains(ListItem(0).Filenameandpath,blu-ray) | String.Contains(ListItem(0).Filenameandpath,bdrip)]|String.Contains(ListItem.Filenameandpath,web)|String.Contains(ListItem.Filenameandpath,hdtv)|String.Contains(ListItem.Filenameandpath,dvd) | String.EndsWith(ListItem.Filenameandpath,.ifo) | String.EndsWith(ListItem.Filenameandpath,.iso)|String.StartsWith(ListItem.Path,videodb://movies/sets)|String.Contains(Player.Filenameandpath,4k)]</visible>
            <description>Codec Image</description>
            <posx>102</posx>
            <posy>0</posy>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[videocodec,badges/video/,.png]</texture>
        </control>
        <control type="image">
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="String.IsEmpty(ListItem.VideoResolution)">Conditional</animation>
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="String.IsEmpty(ListItem.VideoCodec)|![[String.Contains(ListItem(0).Filenameandpath,bluray) | String.Contains(ListItem(0).Filenameandpath,blu-ray) | String.Contains(ListItem(0).Filenameandpath,bdrip)]|String.Contains(ListItem.Filenameandpath,web)|String.Contains(ListItem.Filenameandpath,hdtv)|String.Contains(ListItem.Filenameandpath,dvd) | String.EndsWith(ListItem.Filenameandpath,.ifo) | String.EndsWith(ListItem.Filenameandpath,.iso)|String.StartsWith(ListItem.Path,videodb://movies/sets)|String.Contains(Player.Filenameandpath,4k)]">Conditional</animation>
            <visible>!String.IsEmpty(ListItem.AudioChannels)</visible>
            <description>Audio Codec Image</description>
            <posx>204</posx>
            <posy>0</posy>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[ListItem.AudioChannels,badges/audio/,.png]</texture>
        </control>
        <control type="image">
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="String.IsEmpty(ListItem.VideoResolution)">Conditional</animation>
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="String.IsEmpty(ListItem.VideoCodec)|![[String.Contains(ListItem(0).Filenameandpath,bluray) | String.Contains(ListItem(0).Filenameandpath,blu-ray) | String.Contains(ListItem(0).Filenameandpath,bdrip)]|String.Contains(ListItem.Filenameandpath,web)|String.Contains(ListItem.Filenameandpath,hdtv)|String.Contains(ListItem.Filenameandpath,dvd) | String.EndsWith(ListItem.Filenameandpath,.ifo) | String.EndsWith(ListItem.Filenameandpath,.iso)|String.StartsWith(ListItem.Path,videodb://movies/sets)|String.Contains(Player.Filenameandpath,4k)]">Conditional</animation>
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="String.IsEmpty(ListItem.AudioChannels)">Conditional</animation>
            <visible>!String.IsEmpty(ListItem.AudioCodec)</visible>
            <description>Audio Codec Image</description>
            <posx>306</posx>
            <posy>0</posy>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[ListItem.AudioCodec,badges/audio/,.png]</texture>
        </control>
        <control type="image">
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="String.IsEmpty(ListItem.VideoResolution)">Conditional</animation>
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="String.IsEmpty(ListItem.VideoCodec)|![[String.Contains(ListItem(0).Filenameandpath,bluray) | String.Contains(ListItem(0).Filenameandpath,blu-ray) | String.Contains(ListItem(0).Filenameandpath,bdrip)]|String.Contains(ListItem.Filenameandpath,web)|String.Contains(ListItem.Filenameandpath,hdtv)|String.Contains(ListItem.Filenameandpath,dvd) | String.EndsWith(ListItem.Filenameandpath,.ifo) | String.EndsWith(ListItem.Filenameandpath,.iso)|String.StartsWith(ListItem.Path,videodb://movies/sets)|String.Contains(Player.Filenameandpath,4k)]">Conditional</animation>
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="String.IsEmpty(ListItem.AudioChannels)">Conditional</animation>
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="String.IsEmpty(ListItem.AudioCodec)">Conditional</animation>
            <visible>!ListItem.IsParentFolder+[Container.Content(movies)|Container.Content(episodes)|Container.Content(musicvideos)]</visible>
            <description>MPAA Image</description>
            <posx>408</posx>
            <posy>0</posy>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[MediaFlag_MPAA]</texture>
        </control>
        <control type="image">
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="String.IsEmpty(ListItem.VideoResolution)">Conditional</animation>
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="String.IsEmpty(ListItem.VideoCodec)|![[String.Contains(ListItem(0).Filenameandpath,bluray) | String.Contains(ListItem(0).Filenameandpath,blu-ray) | String.Contains(ListItem(0).Filenameandpath,bdrip)]|String.Contains(ListItem.Filenameandpath,web)|String.Contains(ListItem.Filenameandpath,hdtv)|String.Contains(ListItem.Filenameandpath,dvd) | String.EndsWith(ListItem.Filenameandpath,.ifo) | String.EndsWith(ListItem.Filenameandpath,.iso)|String.StartsWith(ListItem.Path,videodb://movies/sets)|String.Contains(Player.Filenameandpath,4k)]">Conditional</animation>
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="String.IsEmpty(ListItem.AudioChannels)">Conditional</animation>
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="String.IsEmpty(ListItem.AudioCodec)">Conditional</animation>
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="![!ListItem.IsParentFolder+[Container.Content(movies)|Container.Content(episodes)|Container.Content(musicvideos)]]">Conditional</animation>
            <visible>ListItem.IsStereoscopic|String.Contains(ListItem.Filenameandpath,.3dbd.) | String.Contains(ListItem.Filenameandpath,.3d.)</visible>
            <description>3D Image</description>
            <posx>510</posx>
            <posy>0</posy>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>badges/video/3dbd.png</texture>
        </control>
        <control type="group" id="1">
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="String.IsEmpty(ListItem.VideoResolution)">Conditional</animation>
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="String.IsEmpty(ListItem.VideoCodec)|![[String.Contains(ListItem(0).Filenameandpath,bluray) | String.Contains(ListItem(0).Filenameandpath,blu-ray) | String.Contains(ListItem(0).Filenameandpath,bdrip)]|String.Contains(ListItem.Filenameandpath,web)|String.Contains(ListItem.Filenameandpath,hdtv)|String.Contains(ListItem.Filenameandpath,dvd) | String.EndsWith(ListItem.Filenameandpath,.ifo) | String.EndsWith(ListItem.Filenameandpath,.iso)|String.StartsWith(ListItem.Path,videodb://movies/sets)|String.Contains(Player.Filenameandpath,4k)]">Conditional</animation>
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="String.IsEmpty(ListItem.AudioChannels)">Conditional</animation>
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="String.IsEmpty(ListItem.AudioCodec)">Conditional</animation>
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="![!ListItem.IsParentFolder+[Container.Content(movies)|Container.Content(episodes)|Container.Content(musicvideos)]]">Conditional</animation>
            <animation effect="slide" start="0,0" end="-102,0" time="0" condition="![ListItem.IsStereoscopic|String.Contains(ListItem.Filenameandpath,.3dbd.) | String.Contains(ListItem.Filenameandpath,.3d.)]">Conditional</animation>
            <posx>612</posx>
            <posy>0</posy>
            <visible>!String.IsEmpty(ListItem.Top250) + !String.StartsWith(ListItem.Top250,0)</visible>
            <control type="image" id="1">
                <width>100</width>
                <height>60</height>
                <aspectratio>keep</aspectratio>
                <texture>badges/imdb.png</texture>
            </control>
            <control type="label" id="1">
                <posx>0</posx>
                <top>11</top>
                <width>100</width>
                <height>60</height>
                <font>BadgeFont</font>
                <align>center</align>
                <label>$INFO[ListItem.Top250]</label>
                <textcolor>AlternateBrightColor</textcolor>
            </control>
        </control>
    </include>
    <include name="CodecsViewPanel">
        <control type="image">
            <visible>!String.IsEmpty(ListItem.VideoResolution)</visible>
            <description>Video rez Image</description>
            <width>90</width>
            <height>53</height>
            <aspectratio>keep</aspectratio>
            <texture>badges/video/$INFO[ListItem.VideoResolution,,.png]</texture>
        </control>
        <control type="image">
            <visible>!String.IsEmpty(ListItem.VideoCodec)|[[String.Contains(ListItem(0).Filenameandpath,bluray) | String.Contains(ListItem(0).Filenameandpath,blu-ray) | String.Contains(ListItem(0).Filenameandpath,bdrip)]|String.Contains(ListItem.Filenameandpath,web)|String.Contains(ListItem.Filenameandpath,hdtv)|String.Contains(ListItem.Filenameandpath,dvd) | String.EndsWith(ListItem.Filenameandpath,.ifo) | String.EndsWith(ListItem.Filenameandpath,.iso)|String.StartsWith(ListItem.Path,videodb://movies/sets)|String.Contains(Player.Filenameandpath,4k)]</visible>
            <description>Codec Image</description>
            <width>90</width>
            <height>53</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[videocodec,badges/video/,.png]</texture>
        </control>
        <control type="image">
            <visible>!String.IsEmpty(ListItem.AudioChannels)</visible>
            <description>Audio Codec Image</description>
            <width>90</width>
            <height>53</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[ListItem.AudioChannels,badges/audio/,.png]</texture>
        </control>
        <control type="image">
            <visible>!String.IsEmpty(ListItem.AudioCodec)</visible>
            <description>Audio Codec Image</description>
            <width>90</width>
            <height>53</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[ListItem.AudioCodec,badges/audio/,.png]</texture>
        </control>
        <control type="image">
            <visible>!ListItem.IsParentFolder+[Container.Content(movies)|Container.Content(episodes)|Container.Content(musicvideos)]</visible>
            <description>MPAA Image</description>
            <width>90</width>
            <height>53</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[MediaFlag_MPAA]</texture>
        </control>
        <control type="image">
            <visible>ListItem.IsStereoscopic|String.Contains(ListItem.Filenameandpath,.3dbd.) | String.Contains(ListItem.Filenameandpath,.3d.)</visible>
            <description>3D Image</description>
            <width>90</width>
            <height>53</height>
            <aspectratio>keep</aspectratio>
            <texture>badges/video/3dbd.png</texture>
        </control>
        <control type="group" id="1">
            <width>90</width>
            <height>50</height>
            <visible>!String.IsEmpty(ListItem.Top250) + !String.StartsWith(ListItem.Top250,0)</visible>
            <control type="image" id="1">
                <width>90</width>
                <height>53</height>
                <aspectratio>keep</aspectratio>
                <texture>badges/imdb.png</texture>
            </control>
            <control type="label" id="1">
                <posx>0</posx>
                <top>11</top>
                <width>90</width>
                <height>53</height>
                <font>BadgeFontSmall</font>
                <align>center</align>
                <label>$INFO[ListItem.Top250]</label>
                <textcolor>AlternateBrightColor</textcolor>
            </control>
        </control>
    </include>
    <include name="CodecsVideoOSD">
        <control type="image">
            <visible>!String.IsEmpty(VideoPlayer.VideoResolution)</visible>
            <description>Video rez Image</description>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>badges/video/$INFO[VideoPlayer.VideoResolution,,.png]</texture>
        </control>
        <control type="image">
            <visible>!String.IsEmpty(ListItem.VideoCodec)|[[String.Contains(ListItem(0).Filenameandpath,bluray) | String.Contains(ListItem(0).Filenameandpath,blu-ray) | String.Contains(ListItem(0).Filenameandpath,bdrip)]|String.Contains(ListItem.Filenameandpath,web)|String.Contains(ListItem.Filenameandpath,hdtv)|String.Contains(ListItem.Filenameandpath,dvd) | String.EndsWith(ListItem.Filenameandpath,.ifo) | String.EndsWith(ListItem.Filenameandpath,.iso)|String.StartsWith(ListItem.Path,videodb://movies/sets)|String.Contains(Player.Filenameandpath,4k)]</visible>
            <description>Codec Image</description>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[videocodecOSD,badges/video/,.png]</texture>
        </control>
        <control type="image">
            <visible>!String.IsEmpty(VideoPlayer.AudioChannels)</visible>
            <description>Audio Codec Image</description>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[VideoPlayer.AudioChannels,badges/audio/,.png]</texture>
        </control>
        <control type="image">
            <visible>!String.IsEmpty(VideoPlayer.AudioCodec)</visible>
            <description>Audio Codec Image</description>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[VideoPlayer.AudioCodec,badges/audio/,.png]</texture>
        </control>
        <control type="image">
            <description>MPAA Image</description>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[MediaFlag_MPAAOSD]</texture>
        </control>
        <control type="image">
            <visible>VideoPlayer.IsStereoscopic|String.Contains(VideoPlayer.Filenameandpath,.3dbd.) | String.Contains(VideoPlayer.Filenameandpath,.3d.)</visible>
            <description>3D Image</description>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>badges/video/3dbd.png</texture>
        </control>
        <control type="group" id="1">
            <width>100</width>
            <height>70</height>
            <visible>!String.IsEmpty(VideoPlayer.Top250) + !String.StartsWith(VideoPlayer.Top250,0)</visible>
            <control type="image" id="1">
                <width>100</width>
                <height>70</height>
                <aspectratio>keep</aspectratio>
                <texture>badges/imdb.png</texture>
            </control>
            <control type="label" id="1">
                <posx>0</posx>
                <top>15</top>
                <width>100</width>
                <height>70</height>
                <font>BadgeFont</font>
                <align>center</align>
                <label>$INFO[VideoPlayer.Top250]</label>
                <textcolor>AlternateBrightColor</textcolor>
            </control>
        </control>
        <control type="group" id="1">
            <width>100</width>
            <height>70</height>
            <visible>!String.IsEmpty(VideoPlayer.AudioLanguage)+!String.IsEqual(VideoPlayer.AudioLanguage,und)</visible>
            <control type="image" id="1">
                <width>100</width>
                <height>70</height>
                <aspectratio>keep</aspectratio>
                <texture>badges/empty.png</texture>
            </control>
            <control type="image" id="1">
                <posx>7</posx>
                <top>2</top>
                <width>38</width>
                <height>70</height>
                <aspectratio>keep</aspectratio>
                <texture>topbar/topbar_volume_down_focus.png</texture>
            </control>
            <control type="label" id="1">
                <posx>47</posx>
                <top>-2</top>
                <width>45</width>
                <height>70</height>
                <font>BadgeFont</font>
                <align>center</align>
                <label>$INFO[VideoPlayer.AudioLanguage]</label>
                <textcolor>AlternateBrightColor</textcolor>
            </control>
        </control>
        <control type="group" id="1">
            <width>100</width>
            <height>70</height>
            <visible>!String.IsEmpty(VideoPlayer.SubtitlesLanguage)+!String.IsEqual(VideoPlayer.SubtitlesLanguage,und)</visible>
            <control type="image" id="1">
                <width>100</width>
                <height>70</height>
                <aspectratio>keep</aspectratio>
                <texture>badges/empty.png</texture>
            </control>
            <control type="image" id="1">
                <posx>7</posx>
                <top>2</top>
                <width>38</width>
                <height>70</height>
                <aspectratio>keep</aspectratio>
                <texture>topbar/topbar_subtitles_focus.png</texture>
            </control>
            <control type="label" id="1">
                <posx>47</posx>
                <top>-2</top>
                <width>45</width>
                <height>70</height>
                <font>BadgeFont</font>
                <align>center</align>
                <label>$INFO[VideoPlayer.SubtitlesLanguage]</label>
                <textcolor>AlternateBrightColor</textcolor>
            </control>
        </control>
    </include>
    <include name="CodecsMusicOSD">
        <control type="image">
            <visible>!String.IsEmpty(VideoPlayer.AudioChannels)</visible>
            <description>Audio Codec Image</description>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[VideoPlayer.AudioChannels,badges/audio/,.png]</texture>
        </control>
        <control type="image">
            <visible>!String.IsEmpty(VideoPlayer.AudioCodec)</visible>
            <description>Audio Codec Image</description>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[VideoPlayer.AudioCodec,badges/audio/,.png]</texture>
        </control>
    </include>
</includes>
