					<img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="---" align="absbottom" />
						<div class="listrow"><h2><img src="<?php e(BASE_URL); ?>resource/img/icons/group.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('New Communities'); ?></h2></div>
						<div id="members" class="listplain">Unable to load Flash content. The YUI Charts Control requires Flash Player 9.0.45 or higher. You can download the latest version of Flash Player from the <a href="http://www.adobe.com/go/getflashplayer">Adobe Flash Player Download Center</a>.</p></div>
					</form>
					<img src="<?php Theme::Path(); ?>itemBottom.png" width="530" height="10" alt="___" align="top" /><br />

					<img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="---" align="absbottom" />
						<div class="listrow"><h2><img src="<?php e(BASE_URL); ?>resource/img/icons/world.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Access'); ?>&nbsp;<img src="<?php e(BASE_URL); ?>resource/img/icons/phone.gif" width="16" height="16" align="absmiddle" alt="&gt;" /></h2></div>
						<div id="active" class="listplain">Unable to load Flash content. The YUI Charts Control requires Flash Player 9.0.45 or higher. You can download the latest version of Flash Player from the <a href="http://www.adobe.com/go/getflashplayer">Adobe Flash Player Download Center</a>.</p></div>
					</form>
					<img src="<?php Theme::Path(); ?>itemBottom.png" width="530" height="10" alt="___" align="top" />

					<img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="---" align="absbottom" />
						<div class="listrow"><h2><img src="<?php e(BASE_URL); ?>resource/img/icons/tag.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Category'); ?></h2></div>
						<div id="chart" class="listplain">Unable to load Flash content. The YUI Charts Control requires Flash Player 9.0.45 or higher. You can download the latest version of Flash Player from the <a href="http://www.adobe.com/go/getflashplayer">Adobe Flash Player Download Center</a>.</p></div>
					</form>
					<img src="<?php Theme::Path(); ?>itemBottom.png" width="530" height="10" alt="___" align="top" />


<script type="text/javascript">
	YAHOO.widget.Chart.SWFURL = "<?php e(BASE_URL); ?>resource/yui/charts/assets/charts.swf";

	function formatCurrencyAxisLabel( value )
	{
		return YAHOO.util.Number.format( value,{ thousandsSeparator: "," });
	}
</script>

<script type="text/javascript">
//--- data

	var weeklyMembers =
	[
		{ date: "<?php e($this->_vars['weekly'][0]); ?>", newface: <?php e($this->_vars['newface'][$this->_vars['weekly'][0]]); ?> },
		{ date: "<?php e($this->_vars['weekly'][1]); ?>", newface: <?php e($this->_vars['newface'][$this->_vars['weekly'][1]]); ?> },
		{ date: "<?php e($this->_vars['weekly'][2]); ?>", newface: <?php e($this->_vars['newface'][$this->_vars['weekly'][2]]); ?> },
		{ date: "<?php e($this->_vars['weekly'][3]); ?>", newface: <?php e($this->_vars['newface'][$this->_vars['weekly'][3]]); ?> },
		{ date: "<?php e($this->_vars['weekly'][4]); ?>", newface: <?php e($this->_vars['newface'][$this->_vars['weekly'][4]]); ?> },
		{ date: "<?php e($this->_vars['weekly'][5]); ?>", newface: <?php e($this->_vars['newface'][$this->_vars['weekly'][5]]); ?> },
		{ date: "<?php e($this->_vars['weekly'][6]); ?>", newface: <?php e($this->_vars['newface'][$this->_vars['weekly'][6]]); ?> }
	];

	var myDataSource = new YAHOO.util.DataSource( weeklyMembers );
	myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSARRAY;
	myDataSource.responseSchema =
	{
		fields: [ "date", "newface" ]
	};

//--- chart

	var seriesDef = 
	[
		{ displayName: "New Community", yField: "newface" }
	];

	var currencyAxis = new YAHOO.widget.NumericAxis();
	currencyAxis.minimum = 0;
	currencyAxis.labelFunction = "formatCurrencyAxisLabel";

	function getMembersTipText( item, index, series )
	{
		var toolTipText = series.displayName + " " + formatCurrencyAxisLabel( item[series.yField] );
		return toolTipText;
	}

	var mychart = new YAHOO.widget.LineChart( "members", myDataSource,
	{
		series: seriesDef,
		xField: "date",
		yAxis: currencyAxis,
		dataTipFunction: "getMembersTipText",
		expressInstall: "assets/expressinstall.swf"
	});
</script>

<script type="text/javascript">
//--- data

	var weeklyAccess =
	[
		{ date: "<?php e($this->_vars['weekly'][0]); ?>", nonm: <?php e($this->_vars['nonm'][$this->_vars['weekly'][0]]); ?>, mobile: <?php e($this->_vars['mobile'][$this->_vars['weekly'][0]]); ?> },
		{ date: "<?php e($this->_vars['weekly'][1]); ?>", nonm: <?php e($this->_vars['nonm'][$this->_vars['weekly'][1]]); ?>, mobile: <?php e($this->_vars['mobile'][$this->_vars['weekly'][1]]); ?> },
		{ date: "<?php e($this->_vars['weekly'][2]); ?>", nonm: <?php e($this->_vars['nonm'][$this->_vars['weekly'][2]]); ?>, mobile: <?php e($this->_vars['mobile'][$this->_vars['weekly'][2]]); ?> },
		{ date: "<?php e($this->_vars['weekly'][3]); ?>", nonm: <?php e($this->_vars['nonm'][$this->_vars['weekly'][3]]); ?>, mobile: <?php e($this->_vars['mobile'][$this->_vars['weekly'][3]]); ?> },
		{ date: "<?php e($this->_vars['weekly'][4]); ?>", nonm: <?php e($this->_vars['nonm'][$this->_vars['weekly'][4]]); ?>, mobile: <?php e($this->_vars['mobile'][$this->_vars['weekly'][4]]); ?> },
		{ date: "<?php e($this->_vars['weekly'][5]); ?>", nonm: <?php e($this->_vars['nonm'][$this->_vars['weekly'][5]]); ?>, mobile: <?php e($this->_vars['mobile'][$this->_vars['weekly'][5]]); ?> },
		{ date: "<?php e($this->_vars['weekly'][6]); ?>", nonm: <?php e($this->_vars['nonm'][$this->_vars['weekly'][6]]); ?>, mobile: <?php e($this->_vars['mobile'][$this->_vars['weekly'][6]]); ?> }
	];

	var myDataSource = new YAHOO.util.DataSource( weeklyAccess );
	myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSARRAY;
	myDataSource.responseSchema =
	{
		fields: [ "date", "nonm", "mobile" ]
	};

//--- chart

	var seriesDef = 
	[
		{ displayName: "Non Mobile access", yField: "nonm" },
		{ displayName: "Mobile Access", yField: "mobile" }
	];

	var currencyAxis = new YAHOO.widget.NumericAxis();
	currencyAxis.minimum = 0;
	currencyAxis.labelFunction = "formatCurrencyAxisLabel";

	var mychart = new YAHOO.widget.LineChart( "active", myDataSource,
	{
		series: seriesDef,
		xField: "date",
		yAxis: currencyAxis,
		dataTipFunction: "getMembersTipText",
		expressInstall: "assets/expressinstall.swf"
	});
</script>

<script type="text/javascript">

	function numberToCurrency( value )
	{
		return YAHOO.util.Number.format(Number(value), {prefix: "$", thousandsSeparator: ","});
	}
//--- data
   
	var categories =
	[
<?php 
    $_max  = count($this->_vars['category']);
    $_max -= 1;
    for ($_row=0; $_row<$_max; $_row++): 
?>
		{ category: "<?php e($this->_vars['category'][$_row]['genre']); ?>", number: <?php e($this->_vars['category'][$_row]['number']); ?> },
<?php endfor; ?>
		{ category: "<?php e($this->_vars['category'][$_row]['genre']); ?>", number: <?php e($this->_vars['category'][$_row]['number']); ?> }
	];

	var myDataSource = new YAHOO.util.DataSource( categories );
	myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSARRAY;
	myDataSource.responseSchema =
	{
		fields: [ "category", "number" ]
	};
   
//--- chart

	var seriesDef = 
	[
		{ xField: "number" }
	];
   
	var currencyAxis = new YAHOO.widget.NumericAxis();
	currencyAxis.labelFunction = "formatCurrencyAxisLabel";
   
	var mychart = new YAHOO.widget.BarChart( "chart", myDataSource,
	{
		series: seriesDef,
		yField: "category",
		xAxis: currencyAxis,
		expressInstall: "assets/expressinstall.swf"
	});
   
</script>
<!--END SOURCE CODE FOR EXAMPLE =============================== -->