{if $page_display eq "backend_tpl_dashboard"}
        <script type="text/javascript">var lcount = new Array; var vcount = new Array; var scount = new Array; var icount = new Array; var acount = new Array; var dcount = new Array; var bcount = new Array;var this_week_live = '{$this_week_live}';var this_week_video = '{$this_week_video}';var this_week_short = '{$this_week_short}';var this_week_image = '{$this_week_image}';var this_week_audio = '{$this_week_audio}';var this_week_doc = '{$this_week_doc}';var this_week_blog = '{$this_week_blog}';var last_week_live = '{$last_week_live}';var last_week_video = '{$last_week_video}';var last_week_short = '{$last_week_short}';var last_week_image = '{$last_week_image}';var last_week_audio = '{$last_week_audio}';var last_week_doc = '{$last_week_doc}';var last_week_blog = '{$last_week_blog}';var this_week_users = '{$this_week_users}';var last_week_users = '{$last_week_users}';var this_year_earnings = '{$this_year_earnings}';var last_year_earnings = '{$last_year_earnings}';lcount["total"] = '{$lcount[0]}';lcount["active"] = '{$lcount[1]}';lcount["inactive"] = '{$lcount[2]}';lcount["pending"] = '{$lcount[3]}';lcount["flagged"] = '{$lcount[4]}';lcount["featured"] = '{$lcount[5]}';lcount["public"] = '{$lcount[6]}';lcount["private"] = '{$lcount[7]}';lcount["personal"] = '{$lcount[8]}';lcount["mob"] = '{$lcount[9]}';lcount["hd"] = '{$lcount[10]}';lcount["embed"] = '{$lcount[11]}';lcount["promoted"] = '{$lcount[12]}';vcount["total"] = '{$vcount[0]}';vcount["active"] = '{$vcount[1]}';vcount["inactive"] = '{$vcount[2]}';vcount["pending"] = '{$vcount[3]}';vcount["flagged"] = '{$vcount[4]}';vcount["featured"] = '{$vcount[5]}';vcount["public"] = '{$vcount[6]}';vcount["private"] = '{$vcount[7]}';vcount["personal"] = '{$vcount[8]}';vcount["mob"] = '{$vcount[9]}';vcount["hd"] = '{$vcount[10]}';vcount["embed"] = '{$vcount[11]}';vcount["promoted"] = '{$vcount[12]}';scount["total"] = '{$scount[0]}';scount["active"] = '{$scount[1]}';scount["inactive"] = '{$scount[2]}';scount["pending"] = '{$scount[3]}';scount["flagged"] = '{$scount[4]}';scount["featured"] = '{$scount[5]}';scount["public"] = '{$scount[6]}';scount["private"] = '{$scount[7]}';scount["personal"] = '{$scount[8]}';scount["mob"] = '{$scount[9]}';scount["hd"] = '{$scount[10]}';scount["embed"] = '{$scount[11]}';scount["promoted"] = '{$scount[12]}';icount["total"] = '{$icount[0]}';icount["active"] = '{$icount[1]}';icount["inactive"] = '{$icount[2]}';icount["pending"] = '{$icount[3]}';icount["flagged"] = '{$icount[4]}';icount["featured"] = '{$icount[5]}';icount["public"] = '{$icount[6]}';icount["private"] = '{$icount[7]}';icount["personal"] = '{$icount[8]}';icount["mob"] = '{$icount[9]}';icount["promoted"] = '{$icount[10]}';acount["total"] = '{$acount[0]}';acount["active"] = '{$acount[1]}';acount["inactive"] = '{$acount[2]}';acount["pending"] = '{$acount[3]}';acount["flagged"] = '{$acount[4]}';acount["featured"] = '{$acount[5]}';acount["public"] = '{$acount[6]}';acount["private"] = '{$acount[7]}';acount["personal"] = '{$acount[8]}';acount["mob"] = '{$acount[9]}';acount["promoted"] = '{$acount[10]}';dcount["total"] = '{$dcount[0]}';dcount["active"] = '{$dcount[1]}';dcount["inactive"] = '{$dcount[2]}';dcount["pending"] = '{$dcount[3]}';dcount["flagged"] = '{$dcount[4]}';dcount["featured"] = '{$dcount[5]}';dcount["public"] = '{$dcount[6]}';dcount["private"] = '{$dcount[7]}';dcount["personal"] = '{$dcount[8]}';dcount["mob"] = '{$dcount[9]}';dcount["promoted"] = '{$dcount[10]}';bcount["total"] = '{$bcount[0]}';bcount["active"] = '{$bcount[1]}';bcount["inactive"] = '{$bcount[2]}';bcount["pending"] = '{$bcount[3]}';bcount["flagged"] = '{$bcount[4]}';bcount["featured"] = '{$bcount[5]}';bcount["public"] = '{$bcount[6]}';bcount["private"] = '{$bcount[7]}';bcount["personal"] = '{$bcount[8]}';bcount["mob"] = '{$bcount[9]}';bcount["promoted"] = '{$bcount[10]}';</script>
        <script type="text/javascript" src="{$javascript_url_be}/dashboard.js"></script>
{elseif ($page_display eq "backend_tpl_subscriber" or $page_display eq "backend_tpl_token") and $smarty.get.rg eq "1"}
        <script type="text/javascript">var ecount = new Array; var scount = new Array; var tcount = new Array;var twcount = new Array;twcount["total"] = {$twtotal};twcount["shared"] = {$twshared};twcount["earned"] = {$twearned};var lwcount = new Array;lwcount["total"] = {$lwtotal};lwcount["shared"] = {$lwshared};lwcount["earned"] = {$lwearned};var tw1 = {$tw2};var sw1 = {$sw2};var ew1 = {$ew2};var tw2 = {$tw1};var sw2 = {$sw1};var ew2 = {$ew1};var lws = {$lws};var tws = {$tws};</script>
        {if $page_display eq "backend_tpl_subscriber"}
	<script type="text/javascript" src="{$javascript_url_be}/subdashboard.js"></script>
	{else}
	<script type="text/javascript" src="{$javascript_url_be}/tokendashboard.js"></script>
	{/if}
{elseif $page_display eq "backend_tpl_analytics"}
	<script type="text/javascript">var gapi_client_id='{$google_analytics_api}';var gapi_view_id='{$google_analytics_view}';</script>
        <script type="text/javascript" src="{$javascript_url_be}/analytics-graph.js"></script>
{/if}
