<?xml version="1.0" encoding="utf-8"?>
<includes>
    <variable name="MediaFlag_MPAA_ExtendedInfo">
        <!-- US (IMDB) -->
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Rated R,Left)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Rated R,Left)]">$VAR[Theme.Color]/badges/content_rating/us/r.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Rated PG-13,Left)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Rated PG-13,Left)]">$VAR[Theme.Color]/badges/content_rating/us/pg13.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Rated PG,Left)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Rated PG,Left)]">$VAR[Theme.Color]/badges/content_rating/us/pg.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Rated NC,Left)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Rated NC,Left)]">$VAR[Theme.Color]/badges/content_rating/us/nc17.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Rated G,Left)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Rated G,Left)]">$VAR[Theme.Color]/badges/content_rating/us/g.png</value>
        <!-- US (TMDB) -->
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + StringCompare(Window.Property(movie.mpaa),R)] | [IsEmpty(Window.Property(movie.mpaa)) + StringCompare(VideoPlayer.mpaa,R)]">$VAR[Theme.Color]/badges/content_rating/us/r.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + StringCompare(Window.Property(movie.mpaa),PG-13)] | [IsEmpty(Window.Property(movie.mpaa)) + StringCompare(VideoPlayer.mpaa,PG-13)]">$VAR[Theme.Color]/badges/content_rating/us/pg13.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + StringCompare(Window.Property(movie.mpaa),PG)] | [IsEmpty(Window.Property(movie.mpaa)) + StringCompare(VideoPlayer.mpaa,PG)]">$VAR[Theme.Color]/badges/content_rating/us/pg.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + StringCompare(Window.Property(movie.mpaa),NC-17)] | [IsEmpty(Window.Property(movie.mpaa)) + StringCompare(VideoPlayer.mpaa,NC-17)]">$VAR[Theme.Color]/badges/content_rating/us/nc17.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + StringCompare(Window.Property(movie.mpaa),G)] | [IsEmpty(Window.Property(movie.mpaa)) + StringCompare(VideoPlayer.mpaa,G)]">$VAR[Theme.Color]/badges/content_rating/us/mpaa_general.png</value>
        <!-- US (TV) -->
        <value condition="!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),TV-)">$VAR[Theme.Color]/badges/content_rating/tv/$INFO[Window.Property(movie.mpaa),,.png]</value>
        <value condition="IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,TV-)">$VAR[Theme.Color]/badges/content_rating/tv/$INFO[VideoPlayer.mpaa,,.png]</value>
        <!-- Germany -->
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Germany:0)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Germany:0)]">$VAR[Theme.Color]/badges/content_rating/de/0.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Germany:6)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Germany:6)]">$VAR[Theme.Color]/badges/content_rating/de/6.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Germany:12)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Germany:12)]">$VAR[Theme.Color]/badges/content_rating/de/12.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Germany:16)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Germany:16)]">$VAR[Theme.Color]/badges/content_rating/de/16.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Germany:18)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Germany:18)]">$VAR[Theme.Color]/badges/content_rating/de/18.png</value>
        <!-- Australia -->
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Australia:R)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Australia:R)]">$VAR[Theme.Color]/badges/content_rating/au/r.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Australia:MA)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Australia:MA)]">$VAR[Theme.Color]/badges/content_rating/au/ma.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Australia:M)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Australia:M)]">$VAR[Theme.Color]/badges/content_rating/au/m.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Australia:PG)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Australia:PG)]">$VAR[Theme.Color]/badges/content_rating/au/pg.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Australia:G)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Australia:G)]">$VAR[Theme.Color]/badges/content_rating/au/g.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Australia:X)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Australia:X)]">$VAR[Theme.Color]/badges/content_rating/au/x.png</value>
        <!-- Italy -->
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Rated All,Left)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Rated All,Left)]">$VAR[Theme.Color]/badges/content_rating/it/t.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Rated T,Left)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Rated T,Left)]">$VAR[Theme.Color]/badges/content_rating/it/t.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),it/T)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,it/T)]">$VAR[Theme.Color]/badges/content_rating/it/t.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),VM14)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,VM14)]">$VAR[Theme.Color]/badges/content_rating/it/vm14.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),VM16)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,VM16)]">$VAR[Theme.Color]/badges/content_rating/it/vm16.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),VM18)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,VM18)]">$VAR[Theme.Color]/badges/content_rating/it/vm18.png</value>
        <!-- United Kingdom -->
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),UK:U)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,UK:U)]">$VAR[Theme.Color]/badges/content_rating/uk/u.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),UK:PG)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,UK:PG)]">$VAR[Theme.Color]/badges/content_rating/uk/pg.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),UK:12A)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,UK:12A)]">$VAR[Theme.Color]/badges/content_rating/uk/12a.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),UK:12)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,UK:12)]">$VAR[Theme.Color]/badges/content_rating/uk/12.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),UK:15)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,UK:15)]">$VAR[Theme.Color]/badges/content_rating/uk/15.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),UK:18)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,UK:18)]">$VAR[Theme.Color]/badges/content_rating/uk/18.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),UK:X)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,UK:X)]">$VAR[Theme.Color]/badges/content_rating/uk/r18.png</value>
        <!-- Poland -->
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Bez ograniczeń)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Bez ograniczeń)]">$VAR[Theme.Color]/badges/content_rating/pl/bo.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),7 lat)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,7 lat)]">$VAR[Theme.Color]/badges/content_rating/pl/7.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),12 lat)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,12 lat)]">$VAR[Theme.Color]/badges/content_rating/pl/12.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),16 lat)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,16 lat)]">$VAR[Theme.Color]/badges/content_rating/pl/16.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),18 lat)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,18 lat)]">$VAR[Theme.Color]/badges/content_rating/pl/18.png</value>
        <!-- NO RATING -->
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Unrated)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Unrated)]">$VAR[Theme.Color]/badges/content_rating/unrated.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),unrated)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,unrated)]">$VAR[Theme.Color]/badges/content_rating/unrated.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Not Rated)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Not Rated)]">$VAR[Theme.Color]/badges/content_rating/notrated.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),not Rated)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,not Rated)]">$VAR[Theme.Color]/badges/content_rating/notrated.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),Not rated)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,Not rated)]">$VAR[Theme.Color]/badges/content_rating/notrated.png</value>
        <value condition="[!IsEmpty(Window.Property(movie.mpaa)) + SubString(Window.Property(movie.mpaa),not rated)] | [IsEmpty(Window.Property(movie.mpaa)) + SubString(VideoPlayer.mpaa,not rated)]">$VAR[Theme.Color]/badges/content_rating/notrated.png</value>
        <value>$VAR[Theme.Color]/badges/content_rating/norating.png</value>
    </variable>
    <variable name="MediaFlag_MPAA">
        <!-- US (IMDB) -->
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Rated R,Left)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Rated R,Left)]">$VAR[Theme.Color]/badges/content_rating/us/r.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Rated PG-13,Left)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Rated PG-13,Left)]">$VAR[Theme.Color]/badges/content_rating/us/pg13.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Rated PG,Left)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Rated PG,Left)]">$VAR[Theme.Color]/badges/content_rating/us/pg.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Rated NC,Left)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Rated NC,Left)]">$VAR[Theme.Color]/badges/content_rating/us/nc17.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Rated G,Left)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Rated G,Left)]">$VAR[Theme.Color]/badges/content_rating/us/g.png</value>
        <!-- US (TMDB) -->
        <value condition="[!IsEmpty(ListItem.mpaa) + StringCompare(ListItem.mpaa,R)] | [IsEmpty(ListItem.mpaa) + StringCompare(VideoPlayer.mpaa,R)]">$VAR[Theme.Color]/badges/content_rating/us/r.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + StringCompare(ListItem.mpaa,PG-13)] | [IsEmpty(ListItem.mpaa) + StringCompare(VideoPlayer.mpaa,PG-13)]">$VAR[Theme.Color]/badges/content_rating/us/pg13.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + StringCompare(ListItem.mpaa,PG)] | [IsEmpty(ListItem.mpaa) + StringCompare(VideoPlayer.mpaa,PG)]">$VAR[Theme.Color]/badges/content_rating/us/pg.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + StringCompare(ListItem.mpaa,NC-17)] | [IsEmpty(ListItem.mpaa) + StringCompare(VideoPlayer.mpaa,NC-17)]">$VAR[Theme.Color]/badges/content_rating/us/nc17.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + StringCompare(ListItem.mpaa,G)] | [IsEmpty(ListItem.mpaa) + StringCompare(VideoPlayer.mpaa,G)]">$VAR[Theme.Color]/badges/content_rating/us/mpaa_general.png</value>
        <!-- US (TV) -->
        <value condition="!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,TV-)">$VAR[Theme.Color]/badges/content_rating/tv/$INFO[ListItem.mpaa,,.png]</value>
        <value condition="IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,TV-)">$VAR[Theme.Color]/badges/content_rating/tv/$INFO[VideoPlayer.mpaa,,.png]</value>
        <!-- Germany -->
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Germany:0)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Germany:0)]">$VAR[Theme.Color]/badges/content_rating/de/0.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Germany:6)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Germany:6)]">$VAR[Theme.Color]/badges/content_rating/de/6.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Germany:12)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Germany:12)]">$VAR[Theme.Color]/badges/content_rating/de/12.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Germany:16)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Germany:16)]">$VAR[Theme.Color]/badges/content_rating/de/16.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Germany:18)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Germany:18)]">$VAR[Theme.Color]/badges/content_rating/de/18.png</value>
        <!-- Australia -->
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Australia:R)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Australia:R)]">$VAR[Theme.Color]/badges/content_rating/au/r.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Australia:MA)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Australia:MA)]">$VAR[Theme.Color]/badges/content_rating/au/ma.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Australia:M)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Australia:M)]">$VAR[Theme.Color]/badges/content_rating/au/m.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Australia:PG)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Australia:PG)]">$VAR[Theme.Color]/badges/content_rating/au/pg.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Australia:G)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Australia:G)]">$VAR[Theme.Color]/badges/content_rating/au/g.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Australia:X)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Australia:X)]">$VAR[Theme.Color]/badges/content_rating/au/x.png</value>
        <!-- Italy -->
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Rated All,Left)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Rated All,Left)]">$VAR[Theme.Color]/badges/content_rating/it/t.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Rated T,Left)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Rated T,Left)]">$VAR[Theme.Color]/badges/content_rating/it/t.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,it/T)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,it/T)]">$VAR[Theme.Color]/badges/content_rating/it/t.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,VM14)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,VM14)]">$VAR[Theme.Color]/badges/content_rating/it/vm14.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,VM16)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,VM16)]">$VAR[Theme.Color]/badges/content_rating/it/vm16.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,VM18)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,VM18)]">$VAR[Theme.Color]/badges/content_rating/it/vm18.png</value>
        <!-- United Kingdom -->
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,UK:U)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,UK:U)]">$VAR[Theme.Color]/badges/content_rating/uk/u.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,UK:PG)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,UK:PG)]">$VAR[Theme.Color]/badges/content_rating/uk/pg.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,UK:12A)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,UK:12A)]">$VAR[Theme.Color]/badges/content_rating/uk/12a.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,UK:12)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,UK:12)]">$VAR[Theme.Color]/badges/content_rating/uk/12.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,UK:15)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,UK:15)]">$VAR[Theme.Color]/badges/content_rating/uk/15.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,UK:18)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,UK:18)]">$VAR[Theme.Color]/badges/content_rating/uk/18.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,UK:X)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,UK:X)]">$VAR[Theme.Color]/badges/content_rating/uk/r18.png</value>
        <!-- Poland -->
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Bez ograniczeń)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Bez ograniczeń)]">$VAR[Theme.Color]/badges/content_rating/pl/bo.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,7 lat)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,7 lat)]">$VAR[Theme.Color]/badges/content_rating/pl/7.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,12 lat)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,12 lat)]">$VAR[Theme.Color]/badges/content_rating/pl/12.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,16 lat)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,16 lat)]">$VAR[Theme.Color]/badges/content_rating/pl/16.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,18 lat)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,18 lat)]">$VAR[Theme.Color]/badges/content_rating/pl/18.png</value>
        <!-- NO RATING -->
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Unrated)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Unrated)]">$VAR[Theme.Color]/badges/content_rating/unrated.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,unrated)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,unrated)]">$VAR[Theme.Color]/badges/content_rating/unrated.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Not Rated)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Not Rated)]">$VAR[Theme.Color]/badges/content_rating/notrated.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,not Rated)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,not Rated)]">$VAR[Theme.Color]/badges/content_rating/notrated.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,Not rated)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,Not rated)]">$VAR[Theme.Color]/badges/content_rating/notrated.png</value>
        <value condition="[!IsEmpty(ListItem.mpaa) + SubString(ListItem.mpaa,not rated)] | [IsEmpty(ListItem.mpaa) + SubString(VideoPlayer.mpaa,not rated)]">$VAR[Theme.Color]/badges/content_rating/notrated.png</value>
        <value>$VAR[Theme.Color]/badges/content_rating/norating.png</value>
    </variable>
    <variable name="MediaFlag_MPAAOSD">
        <!-- US (IMDB) -->
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Rated R,Left)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Rated R,Left)]">$VAR[Theme.Color]/badges/content_rating/us/r.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Rated PG-13,Left)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Rated PG-13,Left)]">$VAR[Theme.Color]/badges/content_rating/us/pg13.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Rated PG,Left)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Rated PG,Left)]">$VAR[Theme.Color]/badges/content_rating/us/pg.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Rated NC,Left)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Rated NC,Left)]">$VAR[Theme.Color]/badges/content_rating/us/nc17.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Rated G,Left)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Rated G,Left)]">$VAR[Theme.Color]/badges/content_rating/us/g.png</value>
        <!-- US (TMDB) -->
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + StringCompare(VideoPlayer.mpaa,R)] | [IsEmpty(VideoPlayer.mpaa) + StringCompare(VideoPlayer.mpaa,R)]">$VAR[Theme.Color]/badges/content_rating/us/r.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + StringCompare(VideoPlayer.mpaa,PG-13)] | [IsEmpty(VideoPlayer.mpaa) + StringCompare(VideoPlayer.mpaa,PG-13)]">$VAR[Theme.Color]/badges/content_rating/us/pg13.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + StringCompare(VideoPlayer.mpaa,PG)] | [IsEmpty(VideoPlayer.mpaa) + StringCompare(VideoPlayer.mpaa,PG)]">$VAR[Theme.Color]/badges/content_rating/us/pg.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + StringCompare(VideoPlayer.mpaa,NC-17)] | [IsEmpty(VideoPlayer.mpaa) + StringCompare(VideoPlayer.mpaa,NC-17)]">$VAR[Theme.Color]/badges/content_rating/us/nc17.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + StringCompare(VideoPlayer.mpaa,G)] | [IsEmpty(VideoPlayer.mpaa) + StringCompare(VideoPlayer.mpaa,G)]">$VAR[Theme.Color]/badges/content_rating/us/mpaa_general.png</value>
        <!-- US (TV) -->
        <value condition="!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,TV-)">$VAR[Theme.Color]/badges/content_rating/tv/$INFO[VideoPlayer.mpaa,,.png]</value>
        <value condition="IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,TV-)">$VAR[Theme.Color]/badges/content_rating/tv/$INFO[VideoPlayer.mpaa,,.png]</value>
        <!-- Germany -->
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Germany:0)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Germany:0)]">$VAR[Theme.Color]/badges/content_rating/de/0.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Germany:6)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Germany:6)]">$VAR[Theme.Color]/badges/content_rating/de/6.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Germany:12)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Germany:12)]">$VAR[Theme.Color]/badges/content_rating/de/12.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Germany:16)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Germany:16)]">$VAR[Theme.Color]/badges/content_rating/de/16.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Germany:18)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Germany:18)]">$VAR[Theme.Color]/badges/content_rating/de/18.png</value>
        <!-- Australia -->
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Australia:R)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Australia:R)]">$VAR[Theme.Color]/badges/content_rating/au/r.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Australia:MA)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Australia:MA)]">$VAR[Theme.Color]/badges/content_rating/au/ma.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Australia:M)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Australia:M)]">$VAR[Theme.Color]/badges/content_rating/au/m.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Australia:PG)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Australia:PG)]">$VAR[Theme.Color]/badges/content_rating/au/pg.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Australia:G)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Australia:G)]">$VAR[Theme.Color]/badges/content_rating/au/g.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Australia:X)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Australia:X)]">$VAR[Theme.Color]/badges/content_rating/au/x.png</value>
        <!-- Italy -->
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Rated All,Left)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Rated All,Left)]">$VAR[Theme.Color]/badges/content_rating/it/t.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Rated T,Left)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Rated T,Left)]">$VAR[Theme.Color]/badges/content_rating/it/t.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,it/T)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,it/T)]">$VAR[Theme.Color]/badges/content_rating/it/t.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,VM14)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,VM14)]">$VAR[Theme.Color]/badges/content_rating/it/vm14.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,VM16)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,VM16)]">$VAR[Theme.Color]/badges/content_rating/it/vm16.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,VM18)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,VM18)]">$VAR[Theme.Color]/badges/content_rating/it/vm18.png</value>
        <!-- United Kingdom -->
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,UK:U)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,UK:U)]">$VAR[Theme.Color]/badges/content_rating/uk/u.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,UK:PG)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,UK:PG)]">$VAR[Theme.Color]/badges/content_rating/uk/pg.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,UK:12A)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,UK:12A)]">$VAR[Theme.Color]/badges/content_rating/uk/12a.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,UK:12)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,UK:12)]">$VAR[Theme.Color]/badges/content_rating/uk/12.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,UK:15)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,UK:15)]">$VAR[Theme.Color]/badges/content_rating/uk/15.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,UK:18)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,UK:18)]">$VAR[Theme.Color]/badges/content_rating/uk/18.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,UK:X)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,UK:X)]">$VAR[Theme.Color]/badges/content_rating/uk/r18.png</value>
        <!-- Poland -->
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Bez ograniczeń)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Bez ograniczeń)]">$VAR[Theme.Color]/badges/content_rating/pl/bo.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,7 lat)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,7 lat)]">$VAR[Theme.Color]/badges/content_rating/pl/7.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,12 lat)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,12 lat)]">$VAR[Theme.Color]/badges/content_rating/pl/12.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,16 lat)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,16 lat)]">$VAR[Theme.Color]/badges/content_rating/pl/16.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,18 lat)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,18 lat)]">$VAR[Theme.Color]/badges/content_rating/pl/18.png</value>
        <!-- NO RATING -->
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Unrated)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Unrated)]">$VAR[Theme.Color]/badges/content_rating/unrated.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,unrated)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,unrated)]">$VAR[Theme.Color]/badges/content_rating/unrated.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Not Rated)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Not Rated)]">$VAR[Theme.Color]/badges/content_rating/notrated.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,not Rated)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,not Rated)]">$VAR[Theme.Color]/badges/content_rating/notrated.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Not rated)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,Not rated)]">$VAR[Theme.Color]/badges/content_rating/notrated.png</value>
        <value condition="[!IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,not rated)] | [IsEmpty(VideoPlayer.mpaa) + SubString(VideoPlayer.mpaa,not rated)]">$VAR[Theme.Color]/badges/content_rating/notrated.png</value>
        <value>$VAR[Theme.Color]/badges/content_rating/norating.png</value>
    </variable>
    <variable name="videosource">
        <value condition="[SubString(ListItem(0).Filenameandpath,bluray) | SubString(ListItem(0).Filenameandpath,blu-ray) | SubString(ListItem(0).Filenameandpath,bdrip)]">bluray</value>
        <value condition="SubString(ListItem.Filenameandpath,web)">webtv</value>
        <value condition="SubString(ListItem.Filenameandpath,hdtv)">hdtv</value>
        <value condition="SubString(ListItem.Filenameandpath,dvd) | SubString(ListItem.Filenameandpath,.ifo,Right) | SubString(ListItem.Filenameandpath,.iso,Right)">dvd</value>
        <value condition="SubString(ListItem.Path,videodb://movies/sets,left)">set</value>
        <value condition="SubString(ListItem.Filenameandpath,4k)">4kbis</value>
    </variable>
    <variable name="videocodec">
        <value condition="[substring(ListItem.VideoCodec,div,left) | stringcompare(ListItem.VideoCodec,dx50)]">divx</value>
        <value>$INFO[ListItem.VideoCodec]</value>
    </variable>
    <variable name="videores">
        <value condition="IsEmpty(ListItem.VideoResolution)">defaultscreen</value>
        <value>$INFO[ListItem.VideoResolution]</value>
    </variable>
    <variable name="videoresExtendedInfo">
        <value condition="IsEmpty(Window.Property(movie.VideoResolution))">defaultscreen</value>
        <value>$INFO[Window.Property(movie.VideoResolution)]</value>
    </variable>
    <variable name="videoresOSD">
        <value condition="IsEmpty(VideoPlayer.VideoResolution)">defaultscreen</value>
        <value>$INFO[VideoPlayer.VideoResolution]</value>
    </variable>
    <variable name="videocodecOSD">
        <value condition="[SubString(Player.Filenameandpath,bluray) | SubString(Player.Filenameandpath,blu-ray) | SubString(Player.Filenameandpath,bdrip)]">bluray</value>
        <value condition="SubString(Player.Filenameandpath,web)">webtv</value>
        <value condition="SubString(Player.Filenameandpath,hdtv)">hdtv</value>
        <value condition="SubString(Player.Filenameandpath,dvd) | SubString(Player.Filenameandpath,.ifo,Right) | SubString(Player.Filenameandpath,.iso,Right)">dvd</value>
        <value condition="SubString(Player.Filenameandpath,4k)">4kbis</value>
        <value condition="[substring(VideoPlayer.VideoCodec,div,left) | stringcompare(VideoPlayer.VideoCodec,dx50)]">divx</value>
        <value>$INFO[VideoPlayer.VideoCodec]</value>
    </variable>
    <include name="Codecs">
        <control type="image">
            <description>Video rez Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$VAR[videores].png</texture>
        </control>
        <control type="image">
            <description>Codec Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$INFO[ListItem.VideoCodec,,.png]</texture>
        </control>
        <control type="image">
            <description>Audio Codec Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/audio/$INFO[ListItem.AudioChannels,,.png]</texture>
        </control>
        <control type="image">
            <description>Audio Codec Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/audio/$INFO[ListItem.AudioCodec,,.png]</texture>
        </control>
        <control type="image">
            <visible>ListItem.IsStereoscopic|SubString(ListItem.Filenameandpath,.3dbd.) | SubString(ListItem.Filenameandpath,.3d.)</visible>
            <description>3D Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/3dbd.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="group" id="1">
            <width>120</width>
            <height>80</height>
            <visible>!IsEmpty(ListItem.Top250) + !SubString(ListItem.Top250,0,Left)</visible>
            <control type="image" id="1">
                <width>120</width>
                <height>80</height>
                <aspectratio>keep</aspectratio>
                <texture>$VAR[Theme.Color]/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>
                <include>TextColor_MainColor</include>
            </control>
        </control>
    </include>
    <include name="CodecsExtendedInfo">
        <control type="image">
            <description>Video rez Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$VAR[videoresExtendedInfo].png</texture>
        </control>
        <control type="image">
            <description>Codec Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$INFO[Window.Property(movie.VideoCodec),,.png]</texture>
        </control>
        <control type="image">
            <description>Audio Codec Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/audio/$INFO[Window.Property(movie.AudioChannels),,.png]</texture>
        </control>
        <control type="image">
            <description>Audio Codec Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/audio/$INFO[Window.Property(movie.AudioCodec),,.png]</texture>
        </control>
        <control type="image">
            <visible>Window.Property(movie.IsStereoscopic)|SubString(Window.Property(movie.Filenameandpath),.3dbd.) | SubString(Window.Property(movie.Filenameandpath),.3d.)</visible>
            <description>3D Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/3dbd.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="group" id="1">
            <width>120</width>
            <height>80</height>
            <visible>!IsEmpty(Window.Property(movie.Top250)) + !SubString(Window.Property(movie.Top250),0,Left)</visible>
            <control type="image" id="1">
                <width>120</width>
                <height>80</height>
                <aspectratio>keep</aspectratio>
                <texture>$VAR[Theme.Color]/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(movie.Top250)]</label>
                <include>TextColor_MainColor</include>
            </control>
        </control>
    </include>
    <include name="CodecsView1">
        <control type="image">
            <description>Video rez Image</description>
            <width>120</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$VAR[videores].png</texture>
        </control>
        <control type="image">
            <description>Codec Image</description>
            <width>120</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$INFO[ListItem.VideoCodec,,.png]</texture>
        </control>
        <control type="image">
            <visible>[SubString(ListItem(0).Filenameandpath,bluray) | SubString(ListItem(0).Filenameandpath,blu-ray) | SubString(ListItem(0).Filenameandpath,bdrip)]|SubString(ListItem.Filenameandpath,web)|SubString(ListItem.Filenameandpath,hdtv)|SubString(ListItem.Filenameandpath,dvd) | SubString(ListItem.Filenameandpath,.ifo,Right) | SubString(ListItem.Filenameandpath,.iso,Right)|SubString(ListItem.Path,videodb://movies/sets,left)|SubString(Player.Filenameandpath,4k)</visible>
            <description>Codec Image</description>
            <width>120</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$VAR[videosource].png</texture>
        </control>
        <control type="image">
            <visible>ListItem.IsStereoscopic|SubString(ListItem.Filenameandpath,.3dbd.) | SubString(ListItem.Filenameandpath,.3d.)</visible>
            <description>3D Image</description>
            <width>120</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/3dbd.png</texture>
        </control>
    </include>
    <include name="CodecsView2">
        <control type="image">
            <description>Audio Codec Image</description>
            <width>120</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/audio/$INFO[ListItem.AudioChannels,,.png]</texture>
        </control>
        <control type="image">
            <description>Audio Codec Image</description>
            <width>120</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/audio/$INFO[ListItem.AudioCodec,,.png]</texture>
        </control>
        <control type="image">
            <description>MPAA Image</description>
            <width>120</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[MediaFlag_MPAA]</texture>
        </control>
        <control type="group" id="1">
            <width>120</width>
            <height>70</height>
            <visible>!IsEmpty(ListItem.Top250) + !SubString(ListItem.Top250,0,Left)</visible>
            <control type="image" id="1">
                <width>120</width>
                <height>70</height>
                <aspectratio>keep</aspectratio>
                <texture>$VAR[Theme.Color]/badges/imdb.png</texture>
            </control>
            <control type="label" id="1">
                <posx>0</posx>
                <top>15</top>
                <width>120</width>
                <height>70</height>
                <font>BadgeFont</font>
                <align>center</align>
                <label>$INFO[ListItem.Top250]</label>
                <include>TextColor_MainColor</include>
            </control>
        </control>
    </include>
    <include name="CodecsShowcase">
        <control type="image">
            <description>Video rez Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$VAR[videores].png</texture>
        </control>
        <control type="image">
            <description>Codec Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$INFO[ListItem.VideoCodec,,.png]</texture>
        </control>
        <control type="image">
            <description>Audio Codec Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/audio/$INFO[ListItem.AudioChannels,,.png]</texture>
        </control>
        <control type="image">
            <description>Audio Codec Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/audio/$INFO[ListItem.AudioCodec,,.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>[SubString(ListItem(0).Filenameandpath,bluray) | SubString(ListItem(0).Filenameandpath,blu-ray) | SubString(ListItem(0).Filenameandpath,bdrip)]|SubString(ListItem.Filenameandpath,web)|SubString(ListItem.Filenameandpath,hdtv)|SubString(ListItem.Filenameandpath,dvd) | SubString(ListItem.Filenameandpath,.ifo,Right) | SubString(ListItem.Filenameandpath,.iso,Right)|SubString(ListItem.Path,videodb://movies/sets,left)|SubString(Player.Filenameandpath,4k)</visible>
            <description>Codec Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$VAR[videosource].png</texture>
        </control>
        <control type="image">
            <visible>ListItem.IsStereoscopic|SubString(ListItem.Filenameandpath,.3dbd.) | SubString(ListItem.Filenameandpath,.3d.)</visible>
            <description>3D Image</description>
            <width>120</width>
            <height>80</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/3dbd.png</texture>
        </control>
        <control type="group" id="1">
            <width>120</width>
            <height>80</height>
            <visible>!IsEmpty(ListItem.Top250) + !SubString(ListItem.Top250,0,Left)</visible>
            <control type="image" id="1">
                <width>120</width>
                <height>80</height>
                <aspectratio>keep</aspectratio>
                <texture>$VAR[Theme.Color]/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>
                <include>TextColor_MainColor</include>
            </control>
        </control>
    </include>
    <include name="CodecsCard">
        <control type="image">
            <description>Video rez Image</description>
            <posx>0</posx>
            <posy>0</posy>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$VAR[videores].png</texture>
        </control>
        <control type="image">
            <description>Codec Image</description>
            <posx>102</posx>
            <posy>0</posy>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$VAR[videocodec].png</texture>
        </control>
        <control type="image">
            <description>Audio Codec Image</description>
            <posx>204</posx>
            <posy>0</posy>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/audio/$INFO[ListItem.AudioChannels,,.png]</texture>
        </control>
        <control type="image">
            <description>Audio Codec Image</description>
            <posx>306</posx>
            <posy>0</posy>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/audio/$INFO[ListItem.AudioCodec,,.png]</texture>
        </control>
        <control type="image">
            <description>MPAA Image</description>
            <posx>408</posx>
            <posy>0</posy>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[MediaFlag_MPAA]</texture>
        </control>
        <control type="image">
            <visible>ListItem.IsStereoscopic|SubString(ListItem.Filenameandpath,.3dbd.) | SubString(ListItem.Filenameandpath,.3d.)</visible>
            <description>3D Image</description>
            <posx>510</posx>
            <posy>0</posy>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/3dbd.png</texture>
        </control>
        <control type="group" id="1">
            <posx>612</posx>
            <posy>0</posy>
            <visible>!IsEmpty(ListItem.Top250) + !SubString(ListItem.Top250,0,Left)</visible>
            <control type="image" id="1">
                <width>100</width>
                <height>70</height>
                <aspectratio>keep</aspectratio>
                <texture>$VAR[Theme.Color]/badges/imdb.png</texture>
            </control>
            <control type="label" id="1">
                <posx>0</posx>
                <top>11</top>
                <width>100</width>
                <height>70</height>
                <font>BadgeFont</font>
                <align>center</align>
                <label>$INFO[ListItem.Top250]</label>
                <include>TextColor_MainColor</include>
            </control>
        </control>
    </include>
    <include name="CodecsGrid">
        <control type="image">
            <description>Video rez Image</description>
            <width>85</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$VAR[videores].png</texture>
        </control>
        <control type="image">
            <description>Codec Image</description>
            <width>85</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$INFO[ListItem.VideoCodec,,.png]</texture>
        </control>
        <control type="image">
            <description>Audio Codec Image</description>
            <width>85</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/audio/$INFO[ListItem.AudioChannels,,.png]</texture>
        </control>
        <control type="image">
            <description>Audio Codec Image</description>
            <width>85</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/audio/$INFO[ListItem.AudioCodec,,.png]</texture>
        </control>
        <control type="image">
            <description>MPAA Image</description>
            <width>85</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[MediaFlag_MPAA]</texture>
        </control>
        <control type="image">
            <visible>[SubString(ListItem(0).Filenameandpath,bluray) | SubString(ListItem(0).Filenameandpath,blu-ray) | SubString(ListItem(0).Filenameandpath,bdrip)]|SubString(ListItem.Filenameandpath,web)|SubString(ListItem.Filenameandpath,hdtv)|SubString(ListItem.Filenameandpath,dvd) | SubString(ListItem.Filenameandpath,.ifo,Right) | SubString(ListItem.Filenameandpath,.iso,Right)|SubString(ListItem.Path,videodb://movies/sets,left)|SubString(Player.Filenameandpath,4k)</visible>
            <description>Codec Image</description>
            <width>85</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$VAR[videosource].png</texture>
        </control>
        <control type="image">
            <visible>ListItem.IsStereoscopic|SubString(ListItem.Filenameandpath,.3dbd.) | SubString(ListItem.Filenameandpath,.3d.)</visible>
            <description>3D Image</description>
            <width>85</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/3dbd.png</texture>
        </control>
        <control type="group" id="1">
            <visible>!IsEmpty(ListItem.Top250) + !SubString(ListItem.Top250,0,Left)</visible>
            <width>85</width>
            <height>60</height>
            <control type="image" id="1">
                <width>85</width>
                <height>60</height>
                <aspectratio>keep</aspectratio>
                <texture>$VAR[Theme.Color]/badges/imdb.png</texture>
            </control>
            <control type="label" id="1">
                <posx>0</posx>
                <top>11</top>
                <width>85</width>
                <height>60</height>
                <font>BadgeFont</font>
                <align>center</align>
                <label>$INFO[ListItem.Top250]</label>
                <include>TextColor_MainColor</include>
            </control>
        </control>
    </include>
    <include name="CodecsBigList">
        <control type="image">
            <posx>0</posx>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$VAR[videores].png</texture>
        </control>
        <control type="image">
            <posx>90</posx>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$INFO[ListItem.VideoCodec,,.png]</texture>
        </control>
        <control type="image">
            <posx>180</posx>
            <description>Audio Codec Image</description>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/audio/$INFO[ListItem.AudioChannels,,.png]</texture>
        </control>
        <control type="image">
            <posx>270</posx>
            <description>Audio Codec Image</description>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/audio/$INFO[ListItem.AudioCodec,,.png]</texture>
        </control>
        <control type="image">
            <posx>360</posx>
            <description>MPAA Image</description>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[MediaFlag_MPAA]</texture>
        </control>
        <control type="image">
            <posx>450</posx>
            <visible>[SubString(ListItem(0).Filenameandpath,bluray) | SubString(ListItem(0).Filenameandpath,blu-ray) | SubString(ListItem(0).Filenameandpath,bdrip)]|SubString(ListItem.Filenameandpath,web)|SubString(ListItem.Filenameandpath,hdtv)|SubString(ListItem.Filenameandpath,dvd) | SubString(ListItem.Filenameandpath,.ifo,Right) | SubString(ListItem.Filenameandpath,.iso,Right)|SubString(ListItem.Path,videodb://movies/sets,left)|SubString(Player.Filenameandpath,4k)</visible>
            <description>Codec Image</description>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$VAR[videosource].png</texture>
        </control>
        <control type="image">
            <visible>ListItem.IsStereoscopic|SubString(ListItem.Filenameandpath,.3dbd.) | SubString(ListItem.Filenameandpath,.3d.)</visible>
            <posx>540</posx>
            <description>3D Image</description>
            <width>100</width>
            <height>60</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/3dbd.png</texture>
        </control>
        <control type="group" id="1">
            <posx>630</posx>
            <visible>!IsEmpty(ListItem.Top250) + !SubString(ListItem.Top250,0,Left)</visible>
            <width>100</width>
            <height>60</height>
            <control type="image" id="1">
                <width>100</width>
                <height>60</height>
                <aspectratio>keep</aspectratio>
                <texture>$VAR[Theme.Color]/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>
                <include>TextColor_MainColor</include>
            </control>
        </control>
    </include>
    <include name="CodecsVideoOSD">
        <control type="image">
            <description>Video rez Image</description>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$VAR[videoresOSD].png</texture>
        </control>
        <control type="image">
            <description>Codec Image</description>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/$VAR[videocodecOSD].png</texture>
        </control>
        <control type="image">
            <description>Audio Codec Image</description>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/audio/$INFO[VideoPlayer.AudioChannels,,.png]</texture>
        </control>
        <control type="image">
            <description>Audio Codec Image</description>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/audio/$INFO[VideoPlayer.AudioCodec,,.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|SubString(VideoPlayer.Filenameandpath,.3dbd.) | SubString(VideoPlayer.Filenameandpath,.3d.)</visible>
            <description>3D Image</description>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/video/3dbd.png</texture>
        </control>
        <control type="group" id="1">
            <width>100</width>
            <height>70</height>
            <visible>!IsEmpty(VideoPlayer.Top250) + !SubString(VideoPlayer.Top250,0,Left)</visible>
            <control type="image" id="1">
                <width>100</width>
                <height>70</height>
                <aspectratio>keep</aspectratio>
                <texture>$VAR[Theme.Color]/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>
                <include>TextColor_MainColor</include>
            </control>
        </control>
    </include>
    <include name="CodecsVideoOSD2">
        <control type="group" id="1">
            <width>90</width>
            <height>70</height>
            <visible>!IsEmpty(VideoPlayer.AudioLanguage)+!StringCompare(VideoPlayer.AudioLanguage,und)</visible>
            <control type="image" id="1">
                <posx>4</posx>
                <top>2</top>
                <width>38</width>
                <height>70</height>
                <aspectratio>keep</aspectratio>
                <texture>$VAR[Theme.Color]/topbar/topbar_volume_down_focus.png</texture>
            </control>
            <control type="label" id="1">
                <posx>40</posx>
                <top>-1</top>
                <width>45</width>
                <height>70</height>
                <font>BadgeFont</font>
                <align>left</align>
                <label>$INFO[VideoPlayer.AudioLanguage]</label>
                <include>TextColor_MainColor</include>
            </control>
        </control>
        <control type="group" id="1">
            <width>90</width>
            <height>70</height>
            <visible>!IsEmpty(VideoPlayer.SubtitlesLanguage)+!StringCompare(VideoPlayer.SubtitlesLanguage,und)</visible>
            <control type="image" id="1">
                <posx>4</posx>
                <top>2</top>
                <width>38</width>
                <height>70</height>
                <aspectratio>keep</aspectratio>
                <texture>$VAR[Theme.Color]/topbar/topbar_subtitles_focus.png</texture>
            </control>
            <control type="label" id="1">
                <posx>44</posx>
                <top>-1</top>
                <width>45</width>
                <height>70</height>
                <font>BadgeFont</font>
                <align>left</align>
                <label>$INFO[VideoPlayer.SubtitlesLanguage]</label>
                <include>TextColor_MainColor</include>
            </control>
        </control>
    </include>
    <include name="CodecsMusicOSD">
        <control type="image">
            <description>Audio Codec Image</description>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/audio/$INFO[VideoPlayer.AudioChannels,,.png]</texture>
        </control>
        <control type="image">
            <description>Audio Codec Image</description>
            <width>100</width>
            <height>70</height>
            <aspectratio>keep</aspectratio>
            <texture>$VAR[Theme.Color]/badges/audio/$INFO[VideoPlayer.AudioCodec,,.png]</texture>
        </control>
    </include>
</includes>
