RewriteRule ^__gallery_module__/$						stembase.php?_PAGE=shared&mod=gallery&sub=landing
RewriteRule ^__gallery_module__/p([0-9]+)$					stembase.php?_PAGE=shared&mod=gallery&sub=landing&page=$1
RewriteRule ^__gallery_module__/([^/]+)-([0-9]+)/$				stembase.php?_PAGE=shared&mod=gallery&sub=album&cat_id=$2
RewriteRule ^__gallery_module__/([^/]+)-([0-9]+)/p([0-9]+)$			stembase.php?_PAGE=shared&mod=gallery&sub=album&cat_id=$2&page=$3
RewriteRule ^__gallery_module__/([^/]+)-([0-9]+)/([0-9]+)$			stembase.php?_PAGE=shared&mod=gallery&sub=photo&cat_id=$2&item_id=$3

RewriteRule ^([a-z]{2})/__gallery_module__/$                                    stembase.php?_PAGE=shared&mod=gallery&sub=landing&_LANG=$1
RewriteRule ^([a-z]{2})/__gallery_module__/p([0-9]+)$                           stembase.php?_PAGE=shared&mod=gallery&sub=landing&page=$2&_LANG=$1
RewriteRule ^([a-z]{2})/__gallery_module__/([^/]+)-([0-9]+)/$                   stembase.php?_PAGE=shared&mod=gallery&sub=album&cat_id=$3&_LANG=$1
RewriteRule ^([a-z]{2})/__gallery_module__/([^/]+)-([0-9]+)/p([0-9]+)$          stembase.php?_PAGE=shared&mod=gallery&sub=album&cat_id=$3&page=$4&_LANG=$1
RewriteRule ^([a-z]{2})/__gallery_module__/([^/]+)-([0-9]+)/([0-9]+)$           stembase.php?_PAGE=shared&mod=gallery&sub=photo&cat_id=$3&item_id=$4&_LANG=$1
