function switchQuoteStockGraph(id, caption, item)
{
	var in_count = '';
	if(item != 0) in_count = item;
	jQuery('#quoteStockTitleId'+in_count).text(caption);
	jQuery('#quoteStockGraphContainerId'+in_count).empty().html('<img src="http://quote.2stocks.ru/indexes/graphs2/sp_main.php?id=' + id + '" />');
}
function switchQuoteIndexGraph(id, caption, item)
{
	var in_count = '';
	if(item != 0) in_count = item;
	jQuery('#stockQuoteIndexTitleId'+in_count).text(caption);
	jQuery('#stockQuoteIndexContainerId'+in_count).empty().html('<img src="http://quote.2stocks.ru/indexes/graphs2/sp_main.php?id=' + id + '" />');
}
function switchQuoteWorldIndexGraph(ticker)
{
	jQuery('#quoteWorldIndexTitleId').text('^' + ticker);
	jQuery('#quoteWorldIndexGraphContainerId').empty().html('<img src="http://quote.2stocks.ru/indexes/graphs2/sp_main.php?worldindex=' + ticker + '" />');
}
function switchQuoteWorldIndexGraphIndex(ticker)
{
	jQuery('#worldMarketQuotesTitleContainerId').text(ticker);
	jQuery('#worldMarketQuotesGraphContainerId').empty().html('<img src="http://ichart.finance.yahoo.com/instrument/1.0/%5E' + ticker + '/chart;range=1d/image;size=239x110" width="239" height="110" />');
}

