﻿// JScript File

var strTable ="<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"quotesTable\">\n" + 
 "#ROWS#" + 
 "</table>"

var strTableHeader = "\t<tr>\n" + 
 "\t\t<th class=\"iconCol headerRow firstHeaderCol\">&nbsp;</th>\n" + 
 "\t\t<th class=\"iconCol headerRow\">&nbsp;</th>\n" + 
 "\t\t<th class=\"iconCol headerRow\">&nbsp;</th>\n" + 
 "\t\t<th class=\"iconCol headerRow\">&nbsp;</th>\n" + 
 "\t\t<th class=\"iconCol headerRow\"><!--<a href=\"javascript:QL.navSort(0)\" title=\"#SECTOR_TITLE#\">#HEADER_SECTOR#</a></th>-->\n" + 
 "\t\t<th class=\"countryCol headerRow\"><a href=\"javascript:QL.navSort(1)\" title=\"#TITLE_COUNTRY#\">#HEADER_COUNTRY#</a></th>\n" + 
 "\t\t<th class=\"longNameCol headerRow\"><a href=\"javascript:QL.navSort(2)\" title=\"#TITLE_LONGNAME#\">#HEADER_LONG_NAME#</a></th>\n" + 
 "\t\t<th class=\"diffCol headerRow\"><a href=\"javascript:QL.navSort(3)\" title=\"#TITLE_DIFF#\">#HEADER_DIFF#</a></th>\n" + 
 "\t\t<th class=\"priceCol headerRow\"><a href=\"javascript:QL.navSort(4)\" title=\"#TITLE_BUY#\">#HEADER_BID#</a></th>\n" + 
 "\t\t<th class=\"priceCol headerRow\"><a href=\"javascript:QL.navSort(5)\" title=\"#TITLE_SELL#\">#HEADER_ASK#</a></th>\n" + 
 "\t\t<th class=\"widePriceCol headerRow\"><a href=\"javascript:QL.navSort(6)\" title=\"#TITLE_LATEST#\">#HEADER_LATEST#</a></th>\n" + 
 "\t\t<th class=\"widePriceCol headerRow\"><a href=\"javascript:QL.navSort(7)\" title=\"#TITLE_HIGH#\">#HEADER_HIGHEST#</a></th>\n" + 
 "\t\t<th class=\"widePriceCol headerRow\"><a href=\"javascript:QL.navSort(8)\" title=\"#TITLE_LOW#\">#HEADER_LOW#</a></th>\n" + 
 "\t\t<th class=\"volumeTurnoverCol headerRow\"><a href=\"javascript:QL.navSort(9)\" title=\"#TITLE_VOLUME#\">#HEADER_VOLUME#</a></th>\n" + 
 "\t\t<th class=\"volumeTurnoverCol headerRow\"><a href=\"javascript:QL.navSort(10)\" title=\"#TITLE_TURNOVER#\">#HEADER_TURNOVER#</a></th>\n" + 
 "\t\t<th class=\"currencyCol headerRow\"><a href=\"javascript:QL.navSort(11)\" title=\"#TITLE_CURRENCY#\">#HEADER_CURRENCY#</a></th>\n" + 
 "\t\t<th class=\"iconCol headerRow\">&nbsp;</th>\n" + 
 "\t\t<th class=\"iconCol headerRow\">&nbsp;</th>\n" + 
 "\t\t<th class=\"iconCol headerRow\">&nbsp;</th>\n" + 
 "\t\t<th class=\"addCol headerRow lastHeaderCol\" title=\"#TITLE_MY_LIST#\">#HEADER_MY_LIST#</th>\n" + 
 "\t</tr>\n";

 var strTableRow = "\t<tr id=\"trIR-#INSTRUMENT_ID#\" onMouseOver=\"javascript:QL.tool.hooverOverTR(this)\" onMouseOut =\"javascript:QL.tool.hooverOutTR(this)\">\n" + 
 "\t\t<td class=\"instrumentRowColumn iconCol instrumentRow firstCol\"><a onclick=\"javascript:QL.toggleOrderDepth(#INSTRUMENT_ID#)\"><img id=\"toggleImg-#INSTRUMENT_ID#\" src=\"images/quotes/icons/#PATH#/maximize.gif\" title=\"#TITLE_EXPAND#\"></a></td>\n" + 
 "\t\t<td class=\"instrumentRowColumn iconCol instrumentRow\">#MARKETMAKER#</td>\n" + 
 "\t\t<td class=\"instrumentRowColumn iconCol instrumentRow\">#OBSERVATION#</td>\n" + 
 "\t\t<td class=\"instrumentRowColumn iconCol instrumentRow\">#TRADEHALT#</td>\n" + 
 "\t\t<td class=\"instrumentRowColumn iconCol instrumentRow\"><img src=\"images/quotes/icons/#SECTOR_IMG#\" title=\"#SECTOR_TITLE#\"></td>\n" + 
 "\t\t<td class=\"instrumentRowColumn countryCol instrumentRow\"><img src=\"images/flags/#COUNTRY#.gif\" title=\"#TITLE_COUNTRY#\"></td>\n" + 
 "\t\t<td class=\"instrumentRowColumn longNameCol instrumentRow\" title=\"#LONGNAME# (#SHORTNAME#)\"><a href=\"javascript:QL.tool.openCompanyPop('#ISIN#')\">#CORPEDNAME#</a></td>\n" + 
 "\t\t<td class=\"instrumentRowColumn diffCol instrumentRow #DIFF_CSS_CLASS#\" onClick=\"javascript:QL.toggleOrderDepth(#INSTRUMENT_ID#)\" title=\"#TITLE_DIFF#\">#DIFF#</td>\n" + 
 "\t\t<td class=\"instrumentRowColumn priceCol instrumentRow\" onClick=\"javascript:QL.toggleOrderDepth(#INSTRUMENT_ID#)\" title=\"#TITLE_BUY#\">#BUY#</td>\n" + 
 "\t\t<td class=\"instrumentRowColumn priceCol instrumentRow\" onClick=\"javascript:QL.toggleOrderDepth(#INSTRUMENT_ID#)\" title=\"#TITLE_SELL#\">#SELL#</td>\n" + 
 "\t\t<td class=\"instrumentRowColumn widePriceCol instrumentRow\" onClick=\"javascript:QL.toggleOrderDepth(#INSTRUMENT_ID#)\" title=\"#TITLE_LATEST#\">#LATEST#</td>\n" + 
 "\t\t<td class=\"instrumentRowColumn widePriceCol instrumentRow\" onClick=\"javascript:QL.toggleOrderDepth(#INSTRUMENT_ID#)\" title=\"#TITLE_HIGH#\">#HIGH#</td>\n" + 
 "\t\t<td class=\"instrumentRowColumn widePriceCol instrumentRow\" onClick=\"javascript:QL.toggleOrderDepth(#INSTRUMENT_ID#)\" title=\"#TITLE_LOW#\">#LOW#</td>\n" + 
 "\t\t<td class=\"instrumentRowColumn volumeTurnoverCol instrumentRow\" onClick=\"javascript:QL.toggleOrderDepth(#INSTRUMENT_ID#)\" title=\"#TITLE_VOLUME#\">#VOLUME#</td>\n" + 
 "\t\t<td class=\"instrumentRowColumn volumeTurnoverCol instrumentRow\" onClick=\"javascript:QL.toggleOrderDepth(#INSTRUMENT_ID#)\" title=\"#TITLE_TURNOVER#\">#TURNOVER#</td>\n" + 
 "\t\t<td class=\"instrumentRowColumn currencyCol instrumentRow\" onClick=\"javascript:QL.toggleOrderDepth(#INSTRUMENT_ID#)\" title=\"#TITLE_CURRENCY#\">#CURRENCY#</td>\n" + 
 "\t\t<td class=\"instrumentRowColumn iconCol instrumentRow\" onClick=\"javascript:QL.toggleOrderDepth(#INSTRUMENT_ID#)\"><img width=\"9\" height=\"9\" src=\"images/quotes/icons/pixel.gif\"></td>\n" + 
 "\t\t<td class=\"instrumentRowColumn iconCol instrumentRow\" onClick=\"javascript:QL.toggleOrderDepth(#INSTRUMENT_ID#)\"><img width=\"9\" height=\"9\" src=\"images/quotes/icons/pixel.gif\"></td>\n" + 
 "\t\t<td class=\"instrumentRowColumn iconCol instrumentRow\" onClick=\"javascript:QL.toggleOrderDepth(#INSTRUMENT_ID#)\"><img width=\"9\" height=\"9\" src=\"images/quotes/icons/pixel.gif\"></td>\n" + 
 "\t\t<td class=\"instrumentRowColumn addCol instrumentRow lastCol\" title=\"#TITLE_MY_LIST#\"><a href=\"javascript:QL.editMyList(#INSTRUMENT_ID#,#EDIT_ACTION#)\">#MY_LIST_ACTION#</a></td>\n" + 
 "\t</tr>\n" +
 "\t<tr style=\"display:none;\" id=\"tr-#INSTRUMENT_ID#\">\n" + 
 "\t\t<td class=\"closedOrderDepthRow\" align=\"center\" id=\"tdOD-#INSTRUMENT_ID#\" colspan=\"20\"><div id=\"div-#INSTRUMENT_ID#\">#ORDER_DEPTH#</div></td>\n" + 
 "\t</tr>\n";   
  
 var strOrderDepth = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"749\" class=\"orderDepthTable\">\n" +
	"\t<tr>\n" +
		"\t\t<td valign=\"top\">\n" +
			"\t\t\t<table cellspacing=\"0\" id=\"orderDepth-#INSTRUMENT_ID#\" cellpadding=\"0\" border=\"0\" class=\"orderDepth\">\n" +
				"\t\t\t\t<tr>\n" +
					"<td class=\"colHeadline\" colspan=\"7\">#ORDERDEPTH-HEADLINE#</td>\n" +
				"\t\t\t\t</tr>\n" +
				"\t\t\t\t<tr>\n" +
					"\t\t\t\t\t<td class=\"level colHeadline\">#LEVEL-HEADLINE#</td>\n" +
					"\t\t\t\t\t<td class=\"volumeBuy colHeadline\">#BUY-VOLUME-HEADLINE#</td>\n" +
					"\t\t\t\t\t<td class=\"buy colHeadline\">#BUY-HEADLINE#</td>\n" +
					"\t\t\t\t\t<td class=\"barsLeft\">&nbsp;</td>\n" +
					"\t\t\t\t\t<td class=\"barsRight\">&nbsp;</td>\n" +
					"\t\t\t\t\t<td class=\"sell colHeadline\">#SELL-HEADLINE#</td>\n" +
					"\t\t\t\t\t<td class=\"volumeSell colHeadline\">#SELL-VOLUME-HEADLINE#</td>\n" +
				"\t\t\t\t</tr>\n" +
				"\t\t\t\t<tr>\n" +
					"\t\t\t\t\t<td class=\"level\">1</td>\n" +
					"\t\t\t\t\t<td class=\"volumeBuy\">#VOLUME_BUY_0#</td>\n" +
					"\t\t\t\t\t<td class=\"buy\">#BUY_0#</td>\n" +
					"\t\t\t\t\t<td class=\"barsLeft\"><img border=\"0\" src=\"images/quotes/bluebar.gif\" width=\"#BUY_IMG_0#\" style=\"#STYLE_IMG_BUY_0#\"  height=\"9\"></td>\n" +
					"\t\t\t\t\t<td class=\"barsRight\"><img border=\"0\" src=\"images/quotes/redbar.gif\" width=\"#SELL_IMG_0#\" style=\"#STYLE_IMG_SELL_0#\" height=\"9\"></td>\n" +
					"\t\t\t\t\t<td class=\"sell\">#SELL_0#</td>\n" +
					"\t\t\t\t\t<td class=\"volumeSell\">#VOLUME_SELL_0#</td>\n" +
				"\t\t\t\t</tr>\n" +
				"\t\t\t\t<tr>\n" +
					"\t\t\t\t\t<td class=\"level\">2</td>\n" +
					"\t\t\t\t\t<td class=\"volumeBuy\">#VOLUME_BUY_1#</td>\n" +
					"\t\t\t\t\t<td class=\"buy\">#BUY_1#</td>\n" +
					"\t\t\t\t\t<td class=\"barsLeft\"><img border=\"0\" src=\"images/quotes/bluebar.gif\" width=\"#BUY_IMG_1#\" style=\"#STYLE_IMG_BUY_1#\" height=\"9\"></td>\n" +
					"\t\t\t\t\t<td class=\"barsRight\"><img border=\"0\" src=\"images/quotes/redbar.gif\" width=\"#SELL_IMG_1#\" style=\"#STYLE_IMG_SELL_1#\" height=\"9\"></td>\n" +
					"\t\t\t\t\t<td class=\"sell\">#SELL_1#</td>\n" +
					"\t\t\t\t\t<td class=\"volumeSell\">#VOLUME_SELL_1#</td>\n" +
				"\t\t\t\t</tr>\n" +
				"\t\t\t\t<tr>\n" +
					"\t\t\t\t\t<td class=\"level\">3</td>\n" +
					"\t\t\t\t\t<td class=\"volumeBuy\">#VOLUME_BUY_2#</td>\n" +
					"\t\t\t\t\t<td class=\"buy\">#BUY_2#</td>\n" +
					"\t\t\t\t\t<td class=\"barsLeft\"><img border=\"0\" src=\"images/quotes/bluebar.gif\" width=\"#BUY_IMG_2#\" style=\"#STYLE_IMG_BUY_2#\" height=\"9\"></td>\n" +
					"\t\t\t\t\t<td class=\"barsRight\"><img border=\"0\" src=\"images/quotes/redbar.gif\" width=\"#SELL_IMG_2#\" style=\"#STYLE_IMG_SELL_2#\" height=\"9\"></td>\n" +
					"\t\t\t\t\t<td class=\"sell\">#SELL_2#</td>\n" +
					"\t\t\t\t\t<td class=\"volumeSell\">#VOLUME_SELL_2#</td>\n" +
				"\t\t\t\t</tr>\n" +
				"\t\t\t\t<tr>\n" +
					"\t\t\t\t\t<td class=\"level\">4</td>\n" +
					"\t\t\t\t\t<td class=\"volumeBuy\">#VOLUME_BUY_3#</td>\n" +
					"\t\t\t\t\t<td class=\"buy\">#BUY_3#</td>\n" +
					"\t\t\t\t\t<td class=\"barsLeft\"><img border=\"0\" src=\"images/quotes/bluebar.gif\" width=\"#BUY_IMG_3#\" style=\"#STYLE_IMG_BUY_3#\" height=\"9\"></td>\n" +
					"\t\t\t\t\t<td class=\"barsRight\"><img border=\"0\" src=\"images/quotes/redbar.gif\" width=\"#SELL_IMG_3#\" style=\"#STYLE_IMG_SELL_3#\" height=\"9\"></td>\n" +
					"\t\t\t\t\t<td class=\"sell\">#SELL_3#</td>\n" +
					"\t\t\t\t\t<td class=\"volumeSell\">#VOLUME_SELL_3#</td>\n" +
				"\t\t\t\t</tr>\n" +
				"\t\t\t\t<tr>\n" +
					"\t\t\t\t\t<td class=\"level\">5</td>\n" +
					"\t\t\t\t\t<td class=\"volumeBuy\">#VOLUME_BUY_4#</td>\n" +
					"\t\t\t\t\t<td class=\"buy\">#BUY_4#</td>\n" +
					"\t\t\t\t\t<td class=\"barsLeft\"><img border=\"0\" src=\"images/quotes/bluebar.gif\" width=\"#BUY_IMG_4#\" style=\"#STYLE_IMG_BUY_4#\" height=\"9\"></td>\n" +
					"\t\t\t\t\t<td class=\"barsRight\"><img border=\"0\" src=\"images/quotes/redbar.gif\" width=\"#SELL_IMG_4#\" style=\"#STYLE_IMG_SELL_4#\" height=\"9\"></td>\n" +
					"\t\t\t\t\t<td class=\"sell\">#SELL_4#</td>\n" +
					"\t\t\t\t\t<td class=\"volumeSell\">#VOLUME_SELL_4#</td>\n" +
				"\t\t\t\t</tr>\n" +
			"\t\t\t</table>\n" +
		"\t\t</td>\n" +
		"\t\t<td align=\"center\" valgin=\"top\"><div class=\"orderDepthSplitter\"></div></td>\n" +
		"\t\t<td valign=\"top\">\n" +
			"\t\t\t<table border=\"0\" id=\"trades-#INSTRUMENT_ID#\" cellspacing=\"0\" cellpadding=\"0\" class=\"trades\">\n" +
				"\t\t\t\t<tr>\n" +
					"\t\t\t\t\t<td class=\"colHeadline\" colspan=\"5\">#TRADES-HEADLINE#</td>\n" +
				"\t\t\t\t</tr>\n" +
				"\t\t\t\t<tr>\n" +
					"\t\t\t\t\t<td class=\"time colHeadline\">#TRADES-TIME-HEADLINE#</td>\n" +
					"\t\t\t\t\t<td class=\"bought colHeadline\">#TRADES-BUY-HEADLINE#</td>\n" +
					"\t\t\t\t\t<td class=\"sold colHeadline\">#TRADES-SELL-HEADLINE#</td>\n" +
					"\t\t\t\t\t<td class=\"amount colHeadline\">#TRADES-QUANTITY-HEADLINE#</td>\n" +
					"\t\t\t\t\t<td class=\"price colHeadline\">#TRADES-PRICE-HEADLINE#</td>\n" +
					"\t\t\t\t\t<td class=\"currency colHeadline\">#TRADES-CURRENCY-HEADLINE#</td>\n" +
				"\t\t\t\t</tr>\n" +
				"\t\t\t\t<tr class=\"#TRD_CANCEL_STYLE_0#\">\n" +
					"\t\t\t\t\t<td class=\"time\">#TRADE_TIME_0#</td>\n" +
					"\t\t\t\t\t<td class=\"bought\">#TRADE_BUY_0#</td>\n" +
					"\t\t\t\t\t<td class=\"sold\">#TRADE_SELL_0#</td>\n" +
					"\t\t\t\t\t<td class=\"amount\">#TRADE_VOLUME_0#</td>\n" +
					"\t\t\t\t\t<td class=\"price\">#TRADE_PRICE_0#</td>\n" +
					"\t\t\t\t\t<td class=\"currency\">#TRADE_CURRENCY_0#</td>\n" +
				"\t\t\t\t</tr>\n" +
				"\t\t\t\t<tr class=\"#TRD_CANCEL_STYLE_1#\">\n" +
					"\t\t\t\t\t<td class=\"time\">#TRADE_TIME_1#</td>\n" +
					"\t\t\t\t\t<td class=\"bought\">#TRADE_BUY_1#</td>\n" +
					"\t\t\t\t\t<td class=\"sold\">#TRADE_SELL_1#</td>\n" +
					"\t\t\t\t\t<td class=\"amount\">#TRADE_VOLUME_1#</td>\n" +
					"\t\t\t\t\t<td class=\"price\">#TRADE_PRICE_1#</td>\n" +
					"\t\t\t\t\t<td class=\"currency\">#TRADE_CURRENCY_1#</td>\n" +
				"\t\t\t\t</tr>\n" +
				"\t\t\t\t<tr class=\"#TRD_CANCEL_STYLE_2#\">\n" +
					"\t\t\t\t\t<td class=\"time\">#TRADE_TIME_2#</td>\n" +
					"\t\t\t\t\t<td class=\"bought\">#TRADE_BUY_2#</td>\n" +
					"\t\t\t\t\t<td class=\"sold\">#TRADE_SELL_2#</td>\n" +
					"\t\t\t\t\t<td class=\"amount\">#TRADE_VOLUME_2#</td>\n" +
					"\t\t\t\t\t<td class=\"price\">#TRADE_PRICE_2#</td>\n" +
					"\t\t\t\t\t<td class=\"currency\">#TRADE_CURRENCY_2#</td>\n" +
				"\t\t\t\t</tr>\n" +
				"\t\t\t\t<tr class=\"#TRD_CANCEL_STYLE_3#\">\n" +
					"\t\t\t\t\t<td class=\"time\">#TRADE_TIME_3#</td>\n" +
					"\t\t\t\t\t<td class=\"bought\">#TRADE_BUY_3#</td>\n" +
					"\t\t\t\t\t<td class=\"sold\">#TRADE_SELL_3#</td>\n" +
					"\t\t\t\t\t<td class=\"amount\">#TRADE_VOLUME_3#</td>\n" +
					"\t\t\t\t\t<td class=\"price\">#TRADE_PRICE_3#</td>\n" +
					"\t\t\t\t\t<td class=\"currency\">#TRADE_CURRENCY_3#</td>\n" +
				"\t\t\t\t</tr>\n" +
				"\t\t\t\t<tr class=\"#TRD_CANCEL_STYLE_4#\">\n" +
					"\t\t\t\t\t<td class=\"time\">#TRADE_TIME_4#</td>\n" +
					"\t\t\t\t\t<td class=\"bought\">#TRADE_BUY_4#</td>\n" +
					"\t\t\t\t\t<td class=\"sold\">#TRADE_SELL_4#</td>\n" +
					"\t\t\t\t\t<td class=\"amount\">#TRADE_VOLUME_4#</td>\n" +
					"\t\t\t\t\t<td class=\"price\">#TRADE_PRICE_4#</td>\n" +
					"\t\t\t\t\t<td class=\"currency\">#TRADE_CURRENCY_4#</td>\n" +
				"\t\t\t\t</tr>\n" +								
			"\t\t\t</table>\n" +
		"\t\t</td>\n" +
	"\t</tr>\n" +
	"\t<tr>\n" +
		"\t\t<td colspan=\"3\" class=\"more\"><a href=\"javascript:QL.tool.openCompanyPopTrades('#MORE_TRADES_LINK#')\">#MORE_TRADES#</a></td>\n" +
	"\t</tr>\n" +
"</table>\n"; 

