{assign var="pgLayout" value="none"}<html>
<head>
	<link rel="stylesheet" href="{$skinFolder}/styles/base.css" />
	{if $styleName neq ""}<link rel="stylesheet" type="text/css" href="{$skinFolder}styles/{$styleName}.css" />{/if}
</head>
<body style="margin:0px;background-image:none;">

{if $smarty.request.compId}
	{assign var="compId" value="comp"|cat:$smarty.request.compId}
{/if}
{assign var="type" value=$smarty.request.type}
{assign var="fillPrevious" value=$smarty.request.fillPrevious|default:"1"}
{assign var="precision" value=$smarty.request.precision|default:"0"}
{assign var="stars" value=$smarty.request.stars|default:""}
{assign var="totalChange" value=$smarty.request.totalChange|default:"0"}
{assign var="userIds" value=$smarty.request.userIds|default:""}
{if $smarty.request.format eq "small"}
	{assign var="url" value=$skinFolder|cat:"/flash/grapher_sm.swf?id=":$compId:"!":$type:"!":$fillPrevious:"!":$precision:"!":$stars:"!":$totalChange:"!":$userIds:"&session_id=":$smarty.session.session_id}
{elseif $smarty.request.format eq "wide"}
	{assign var="url" value=$skinFolder|cat:"/flash/grapher_wide.swf?id=":$compId:"!":$type:"!":$fillPrevious:"!":$precision:"!":$stars:"!":$totalChange:"!":$userIds:"&session_id=":$smarty.session.session_id}
{else}
	{assign var="url" value=$skinFolder|cat:"/flash/grapher.swf?id=":$compId:"!":$type:"!":$fillPrevious:"!":$precision:"!":$stars:"!":$totalChange:"!":$userIds:"&session_id=":$smarty.session.session_id}
{/if}

{* assign var="url" value=$skinFolder|cat:"/flash/grapher{if $smarty.request.format eq "small"}_sm{elseif $smarty.request.format eq "wide"}_wide{/if}.swf?id=comp1!weight!1!0!!1&session_id=":$smarty.session.session_id" *}

<h3 class="underline">&nbsp; {if $userIds}Showing{else}Comparing{/if} {if $totalChange}Change in {/if}{$type|niceText} Over Time</h3>
{if $type}
	{if $smarty.request.format eq "small"}
		{swf src=$url width="425" height="195" bgcolor="#FFFFFF" wmode="transparent"}
	{elseif $smarty.request.format eq "wide"}
		{swf src=$url width="595" height="195" bgcolor="#FFFFFF" wmode="transparent"}
	{else}
		{swf src=$url width="555" height="195" bgcolor="#FFFFFF" wmode="transparent"}
	{/if}
{else}
	{if $smarty.request.format eq "small"}
		<img src="{$systemFolder}images/choose_graph_small.gif" width="421" height="187" />
	{else}
		<img src="{$systemFolder}images/choose_graph_wide.gif" width="588" height="180" />
	{/if}
{/if}

{if $acm->isDomainAdmin()}
	{$smarty.request.gParams}
	{assign var="debugUrl" value=$url|regex_replace:"/.*\?/":"?pg=flashgraph&"}
	Debug this graph: <a href="{$debugUrl}" target="_blank">Source</a> | <a href="{$debugUrl}&debug=1" target="_blank">Debugger</a>
{/if}

</body></html>