var Chart=Class.create({
					   
					   
initialize:function(ColomnCount,RowCount,Parent,Id,InsertCount)
{
	this.hcParamArray=[];
	this.hcParamTypeArray=[];
	this.hcParamElementArray=[];
	this.hcInsertCount=InsertCount;
	this.hcInsertCounter=1;
	this.hcColomnCount=ColomnCount;
	this.hcRowCount=RowCount;
	this.hcParent=Parent;
	this.hcId=Id;
	this.chVariableArray=[];
	this.chVariableLabelArray=[];
	this.chVariableClassArray=[];
	this.chVariableTypeArray=[];
	this.chVariableUpperArray=[];
	this.chVariableCombineArray=[];
	this.chVariableCombineVArray=[];
	this.hcElement=null;
	this.chartdata=null;
	this.inprogress=false;
	this.ajaxobg=null;
	this.animI=0;
	this.animJ=0;
	this.animM=0;
	this.hcStaticValue=[];
	this.hcJsonUrl="json_static.php";
	this.useMap=false;
	this.mapFileUrl=null;
	this.mapParent=null;
	this.map=null;
	this.mapId=null;
	this.mapWidth=null;
	this.mapHeight=null;
	this.map_xml_head="<map bgcolor='000000' borderColor='000000' connectorColor='FFFFFF' connectorAlpha='90' fillAlpha='100'  showBevel='0'   legendBgColor='000000' legendBorderColor='000000' legendShadow='0' baseFontColor='FFFFFF' canvasBorderColor='000000' toolTipBgColor='000000' showShadow='0' labelColor='666666' fillColor='222222'   ";
	this.mapEntityExpections="";
	this.mapCreated=false;
	this.colorsArray=null;
	this.CountMinArray=null;
	this.CountMaxArray=null;
	this.minValuesArray=Array();
	this.maxValuesArray=Array();
	this.cur_map_xml_entity="";
	this.useNoData=false;
	this.mapShowLabels=0;
	this.mapShowLegend=0;
	this.mapLegendAlign='BOTTOM';
	this.primaryVariable='value';
	this.displayVariable='name';
	this.predefinedLegend=false;
	this.CountryCounter=0;
	this.Quie=false;
	this.Reverce=false;
	this.animIInc=1;
	this.updateMap=true;
	this.isFirst=true;
	this.Demo=false;
	this.demoArray=null;
	this.demoArrayCurrent=0;
	this.demoNameArray=null;
	this.numberSuffix=' Rate per 100,000';
	this.numberPrefix = ' Score :';
	this.isDynamic=false;
	this.flagRoot='images/flags/';
	this.flagExt='.png';
	this.mapHoverColor='0000FF';
	this.insertSort=[];
	this.insertSortText=[];
	this.selectedBgColor="";
	this.subHeader=[];
	this.useColorsOnChart = true;
	
	this.isMapLoaded = false;
	this.isChartLoaded = false;
	this.firstLoad = true;
	this.flagClass = "world-flags wld-";
	
	this.highlights = [];
	this.highlights_col = null;
	this.highlights_color = '#FFFF00';
	this.highlights_color_ = '#000000';
	this.highlights_color_text = '#000000';
	this.highlights_color_text_ = '#FFFFFF';
	
	this.useCommas = false;

	
	},
	
	addCommas:function (nStr)
	{
		nStr += '';
		x = nStr.split('.');
		x1 = x[0];
		x2 = x.length > 1 ? '.' + x[1] : '';
		var rgx = /(\d+)(\d{3})/;
		while (rgx.test(x1)) {
			x1 = x1.replace(rgx, '$1' + ',' + '$2');
		}
		return x1 + x2;
	},
	
	setCommas:function (useCommas)
	{
		this.useCommas = useCommas;
	},
	
	setFlagClass:function(flagClass)
	{
		this.flagClass = flagClass; // setFlagClass("world-flags wld-")
	},
	
	setHighlights:function(highlights_col, highlights_color, highlights_color_, highlights_color_text, highlights_color_text_)
	{
		this.highlights_col = highlights_col;
		this.highlights_color = highlights_color;
		this.highlights_color_ = highlights_color_;
		this.highlights_color_text = highlights_color_text;
		this.highlights_color_text_ = highlights_color_text_;
		
	},
	
	
	mapLoadedCallBack:function()
	{
		//alert("mapLoadedCallBack"+ this.isChartLoaded);
		this.isMapLoaded = true;
		if (this.isChartLoaded)
		{
			//alert("renderMap");
			this.renderMap();
			
		}
	},
	chartLoadedCallBack:function()
	{
		//alert("mapLoadedCallBack"+ this.isMapLoaded);
		this.isChartLoaded = true;
		if (this.isMapLoaded)
		{
			this.renderMap();
		}
	},


	setuseColorsOnChart:function(useColorsOnChart)
	{
		this.useColorsOnChart=useColorsOnChart;
	},
	setsubHeader:function(subHeader)
	{
		this.subHeader=subHeader;
	},
	setselectedBgColor:function(selectedBgColor)
	{
		this.selectedBgColor=selectedBgColor;
	},
	setInsertSort:function(insertSort,insertSortText)
	{
		this.insertSort.push(insertSort);
		this.insertSortText.push(insertSortText);
	},
	setGray:function()
	{
		this.clear();
		this.clearMap();
	},
	clearMap:function()
	{
		if(this.useMap)
		{
			this.cur_map_xml_entity="";
			for(var i=0;i<this.chartdata.chart.countries.countryitem.length;i++)
			{
				this.cur_map_xml_entity+="<entity id='"+this.chartdata.chart.countries.countryitem[i].id.toString()+"' value='0' color='222222'  />";
			}
			var map_xml_head=this.map_xml_head+" showlabels='"+this.mapShowLabels+"' legendPosition='"+this.mapLegendAlign+"' showLegend='"+this.mapShowLegend.toString()+"' numberSuffix='"+this.numberSuffix+"' numberPrefix='"+this.numberPrefix+"' hoverColor='"+this.mapHoverColor+"' ><data>";
			var xml=map_xml_head+this.cur_map_xml_entity+this.mapEntityExpections+this.cur_map_xml_footer;this.map.setDataXML(xml);
		}
	},
	setFlag:function(flagRoot,flagExt)
	{
		this.flagRoot=flagRoot;
		this.flagExt=flagExt;
	},
	setHoverColor:function(mapHoverColor)
	{
		this.mapHoverColor=mapHoverColor;
	},
	setDynamic:function(isDynamic)
	{
		this.isDynamic=isDynamic;
	},
	addDemoArray:function(demoArray)
	{
		this.demoArray=demoArray;
		this.Demo=true;
	},
	setNumberSuffix:function(numberSuffix)
	{
		this.numberSuffix=numberSuffix;
	},
	setNumberPrefix:function(numberPrefix)
	{
		this.numberPrefix=numberPrefix;
	},
	addDemoNameArray:function(demonamearray)
	{
		this.demoNameArray=demonamearray;
	},
	setDisplayVariable:function(displayVariable)
	{
		this.displayVariable=displayVariable;
	},
	mapSetLegend:function(legend)
	{
		this.mapShowLegend=legend;
	},
	setCountArray:function(CountMinArray,CountMaxArray)
	{
		this.CountMinArray=CountMinArray;
		this.CountMaxArray=CountMaxArray;
	},
	mapSetLegendItems:function(minArray,maxArray)
	{
		this.minValuesArray=minArray;
		this.maxValuesArray=maxArray;
		this.predefinedLegend=true;
	},
	showMapLabels:function()
	{
		this.mapShowLabels=1;
	},
	setMapLegendAlign:function(mapLegendAlign)
	{
		this.mapLegendAlign=mapLegendAlign;
	},
	addMap:function(mapFileUrl,Parent,mapId,mapWidth,mapHeight,useNoData)
	{
		this.useMap=true;
		this.mapFileUrl=mapFileUrl;
		this.mapParent=Parent;
		this.mapId=mapId;
		this.mapWidth=mapWidth;
		this.mapHeight=mapHeight;
		this.useNoData=useNoData;
		$(this.mapParent).style.height=this.mapHeight+'px';
		$(this.mapParent).style.width=this.mapWidth;
		

	},
	setmapFileUrl:function(mapFileUrl)
	{
		this.mapFileUrl=mapFileUrl;
	},
	addColors:function(colorsArray)
	{
		this.colorsArray=colorsArray;
	},
	getColor:function(number)
	{
		if(this.isFirst)
		{
			return'222222';
		}
		for(var i=0;i<this.CountMinArray.length;i++)
		{
			if(number>=this.CountMinArray[i]&&number<this.CountMaxArray[i])
			{
				return this.colorsArray[i];
			}
		}
	},
	getColorValue:function(value)
	{
		for(var i=0;i<this.minValuesArray.length;i++)
		{
			if(value>=this.minValuesArray[i]&&value<this.maxValuesArray[i])
			{
				return this.colorsArray[i];
			}
		}
	},
	calculateMinMax:function()
	{
		this.cur_map_xml_entity="";
		this.cur_map_xml_footer="";
		var map_xml_entity="";
		for(w=0;w<this.chartdata.chart.countries.countryitem.length;w++)
		{
			var country_item=this.chartdata.chart.countries.countryitem[w];
			var tmpColor='222222';
			if(!this.isFirst)
			{
				tmpColor=country_item.color;
			}
			if(this.useMap)
			{
				if(country_item.value=="N/A")
				{
					this.cur_map_xml_entity+="<entity id='"+country_item.id.toString()+"' color='"+tmpColor+"' toolText='"+country_item.name+" N/A' />";
				}
				else
				{
					this.cur_map_xml_entity+="<entity id='"+country_item.id.toString()+"' value='"+country_item.value.toString()+"' color='"+tmpColor+"'  />";
				}
			}
		}
		search_colours_count=this.chartdata.chart.legend.legenditem.length;var my_pallet="<table border='0' cellpadding='0' cellspacing='0' style='width: 154px;'><tr><td colspan='6' ></td></tr><tr>";
		var my_hidden="";
		search_colours=[];
		for(var p=0;p<this.chartdata.chart.legend.legenditem.length;p++)
		{
			this.cur_map_xml_footer+="<color minValue='"+this.chartdata.chart.legend.legenditem[p].minvar+"' maxValue='"+this.chartdata.chart.legend.legenditem[p].maxvar+"' displayValue='"+this.chartdata.chart.legend.legenditem[p].minvar+" - "+this.chartdata.chart.legend.legenditem[p].maxvar+"' color='"+this.chartdata.chart.legend.legenditem[p].color+"' />";
		}
		this.cur_map_xml_footer="</data><colorRange>"+this.cur_map_xml_footer+"</colorRange></map>";
	},
	renderMap:function()
	{
		var map_xml_footer="";
		if(this.useNoData)
		{
			map_xml_footer="<color minValue='0' maxValue='0.1' displayValue='No Data' color='333333' />";
		}
		var map_xml_head=this.map_xml_head+" showlabels='"+this.mapShowLabels+"' legendPosition='"+this.mapLegendAlign+"' showLegend='"+this.mapShowLegend.toString()+"' numberSuffix='"+this.numberSuffix+"' hoverColor='"+this.mapHoverColor+"' ><data>";
		var xml=map_xml_head+this.cur_map_xml_entity+this.mapEntityExpections+this.cur_map_xml_footer;
		if(this.mapCreated)
		{
			this.map.setDataXML(xml);
		}
		else
		{
			this.map=new FusionMaps(this.mapFileUrl,this.mapId,this.mapWidth,this.mapHeight,"0","1","000000");
			this.map.setDataXML(xml);
			this.map.render(this.mapParent);
			this.mapCreated=true;
		}
	},
	addEntityExeptions:function(mapEntityExpections)
	{
		this.mapEntityExpections=mapEntityExpections;
	},
	addButton:function(Element)
	{
		$(Element).observe('click',this.updateData.bind(this));
	},
	setJsonUrl:function(Url)
	{
		this.hcJsonUrl=Url;
	},
	addVariable:function(Variable,VariableLabel,VariableClass,VariableType,VariableUpper,VariableCombine,VariableCombineV)
	{
		this.chVariableArray.push(Variable);
		this.chVariableLabelArray.push(VariableLabel);
		this.chVariableClassArray.push(VariableClass);
		this.chVariableTypeArray.push(VariableType);
		this.chVariableUpperArray.push(VariableUpper);
		this.chVariableCombineArray.push(VariableCombine);
		this.chVariableCombineVArray.push(VariableCombineV);
	},
	createPane:function()
	{
		if(this.useMap)
		{
		}
		var tbl=document.createElement('table');
		tbl.id=this.Id;
		tbl.border=0;
		tbl.cellSpacing=0;
		tbl.border=0;
		tbl.borderColor="Black";
		tbl.align = 'center';
		tbl.style.borderRight = 'solid 1px #666';
		$(this.hcParent).appendChild(tbl);
		var tblbody=document.createElement('TBODY');
		tbl.appendChild(tblbody);
		this.hcElement=tblbody;
		var tblhead=document.createElement('THEAD');
		tbl.appendChild(tblhead);
		var hrow=tblhead.insertRow(0);
		var counter=0;
		for(var m=0;m<this.hcColomnCount;m++)
		{
			for(var l=0;l<this.chVariableArray.length;l++)
			{
				if(!this.chVariableCombineArray[l-1])
				{
					col=hrow.insertCell(counter);
					col.className='hc_header';
					if(this.chVariableLabelArray[l]!=='')
					{
						var addSort="";for(var t=0;t<this.insertSort.length;t++)
						{
							if(this.insertSort[t]==l&&m===0)
							{
								addSort=this.insertSortText[t];
							}
						}
						var header_html=this.chVariableLabelArray[l]+addSort;
						col.innerHTML=header_html;
					}
					else
					{
						col.innerHTML="";
					}
					if(this.chVariableCombineArray[l])
					{
						col.colSpan=2;
					}
					if(this.chVariableCombineVArray[l])
					{
						col.rowSpan=2;
					}
					counter++;
				}
			}
		}
		if(this.subHeader.length!==0)
		{
			var hrow_=tblhead.insertRow(1);
			for(var c=0;c<this.subHeader.length;c++)
			{
				col=hrow_.insertCell(c);
				col.className='hc_sub_header';
				col.innerHTML=this.subHeader[c];
			}
		}
		var row=null;
		col=null;
		for(var i=0;i<this.hcRowCount;i++)
		{
			//row=tblbody.insertRow(i);
			row=tblbody.insertRow(-1);
			for(var j=0;j<this.hcColomnCount;j++)
			{
				for(var k=0;k<this.chVariableArray.length;k++)
				{
					//col=row.insertCell(j*this.chVariableArray.length+k);
					col=row.insertCell(-1);
					col.className=this.chVariableClassArray[k];
					//if(k===0&&j===0)
					//{
					//	col.className+=" , hc_first_hor";
					//}
					//col=null;
				}
			}
			//row=null;
		}
	},
	clear:function()
	{
		for(var i=0;i<this.hcRowCount;i++)
		{
			for(var j=0;j<this.hcColomnCount;j++)
			{
				for(k=0;k<this.chVariableArray.length;k++)
				{
					//this.hcElement.rows[i].cells[j*this.chVariableArray.length+k].style.background = "url(/images/blank.gif)";
					var class_name  = this.hcElement.rows[i].cells[j*this.chVariableArray.length+k].className;
					this.hcElement.rows[i].cells[j*this.chVariableArray.length+k].className  = class_name.split(" ")[0];
					this.hcElement.rows[i].cells[j*this.chVariableArray.length+k].innerHTML="&nbsp";
					//this.hcElement.rows[i].cells[j*this.chVariableArray.length+k].className=this.chVariableClassArray[k];
					this.hcElement.rows[i].cells[j*this.chVariableArray.length+k].style.backgroundColor='#000000';
					this.hcElement.rows[i].cells[j*this.chVariableArray.length+k].style.borderColor='#4a4a4a';
				}
			}
		}
	},
	addParam:function(Param,ParamType,ParamElement)
	{
		this.hcParamArray.push(Param);
		this.hcParamTypeArray.push(ParamType);
		this.hcParamElementArray.push(ParamElement);
	},
	updateData:function()
	{
		var test=!this.inprogress;
		if(this.Demo)
		{
			test=true;
		}
		if(test)
		{
			this.clear();
			this.inprogress=true;
			var tmp_params="";
			for(var i=0;i<this.hcParamArray.length;i++)
			{
				if(this.hcParamTypeArray[i]=='combo')
				{
					tmp_params+=this.hcParamArray[i]+"="+$(this.hcParamElementArray[i]).options[$(this.hcParamElementArray[i]).selectedIndex].value+"&";
					this.hcStaticValue[this.hcParamArray[i]]=$(this.hcParamElementArray[i]).options[$(this.hcParamElementArray[i]).selectedIndex].value;
				}
				if(this.hcParamTypeArray[i]=='text')
				{
					tmp_params+=this.hcParamArray[i]+"="+$(this.hcParamElementArray[i]).value+"&";
					this.hcStaticValue[this.hcParamArray[i]]=$(this.hcParamElementArray[i]).value;
				}
			}
			this.ajaxobg=new Ajax.Request(this.hcJsonUrl,{
										  method:'get',
										  parameters:tmp_params,
										  onSuccess:function(transport)
										  {
											  var json ;
												  try
												  {
													json=transport.responseText.evalJSON();
													 this.chartdata=json;
													 this.dataLoadCompleate();
												  }
													catch(err)
												  {
																										  
												  }
											  
											 //var json=transport.responseText.evalJSON();
										  }.bind(this),
										  onException:function(transport,e)
										  {
											  //alert(e.message+e.name);
										  }
				}
			);
		}
		else
		{
			this.Quie=true;
		}
	},
	dataLoadCompleate:function()
	{
		this.calculateMinMax();
		if(!this.Demo)
		{
			//this.renderMap();
			this.drawPane();
		}
		else
		{
			setTimeout(this.nextDemo.bind(this,null),5000);
		}
	},
	nextDemo:function()
	{
		if(this.demoArrayCurrent!=this.demoArray.length-1)
		{
			this.demoArrayCurrent++;
		}
		else
		{
			this.demoArrayCurrent=0;
		}
		$('cause').value=this.demoArray[this.demoArrayCurrent];
		$('hc_map_title').innerHTML=this.demoNameArray[this.demoArrayCurrent];
		this.updateData();
	},
	drawPane:function()
	{
		this.animI=0;
		this.animIInc=1;
		if(this.Reverce)
		{
			this.animI=this.chartdata.chart.countries.countryitem.length-1;
			this.animIInc=-1;
		}
		this.animJ=0;
		this.animM=0;
		this.CountryCounter=0;
		this.drawItem();
	},
	
	itemClicked:function (event)
	{
		var args = $A(arguments);
		//alert($A(arguments).join(', '));
		
		//alert(args[0].id);
		//alert(this.highlights);
		var is_in = false;
		
		this.highlights.each(function(item) {
		if  (item == args[0].id)
			{
				is_in  = true;
			}
		});
		if (is_in)
		{
							
								args[1].setStyle({
										backgroundColor: this.highlights_color_.toString() ,
										color : this.highlights_color_text_.toString() 
								});
								this.highlights = this.highlights.without(args[0].id);
		}
		else
		{
							this.highlights.push(args[0].id);
								args[1].setStyle({
										backgroundColor: this.highlights_color.toString() ,
										color : this.highlights_color_text.toString() 
										
								});
		}
		
		
		
		//alert(highlights);
		//alert(myobj);
		//var country_item = this.chartdata.chart.countries.countryitem[this.animI];
		//alert(country_item);
	},
	
	
	drawItem:function()
	{
		var country_item=this.chartdata.chart.countries.countryitem[this.animI];
		var img=null;
		var color= "#"+country_item.color;
		if(this.selectedBgColor!=="")
		{
			color= "#"+this.selectedBgColor;
		}
		for(var i=0;i<this.chVariableArray.length;i++)
		{
			if(this.isFirst)
			{
				continue;
			}
			var value_col=this.displayVariable.substring(0,this.displayVariable.length-1)+"v";
			if(this.chVariableArray[i]==this.displayVariable)
			{
				if (this.useColorsOnChart)
				{
					this.hcElement.rows[this.animM].cells[this.animJ+i].style.backgroundColor=color;
					var bcolor='#000000';
					var fcolor='#000000';
					if(this.isFirst)
					{
						bcolor='#333333';
						fcolor='#FFFFFF';
					}
					this.hcElement.rows[this.animM].cells[this.animJ+i].style.borderColor=bcolor;
					this.hcElement.rows[this.animM].cells[this.animJ+i].style.color=fcolor;
					this.hcElement.rows[this.animM].cells[this.animJ+i].style.fontWeight="bold";
				}
			}
			else if(this.selectedBgColor!==""&&this.chVariableArray[i]==value_col)
			{
				this.hcElement.rows[this.animM].cells[this.animJ+i].style.backgroundColor="#333333";
				this.hcElement.rows[this.animM].cells[this.animJ+i].style.borderColor="#000000";
				this.hcElement.rows[this.animM].cells[this.animJ+i].style.color="#FFFFFF";
				this.hcElement.rows[this.animM].cells[this.animJ+i].style.fontWeight="bold";
			}
			else
			{
				this.hcElement.rows[this.animM].cells[this.animJ+i].style.color='#FFFFFF';
				if(this.chVariableArray[i]!="name")
				{
					this.hcElement.rows[this.animM].cells[this.animJ+i].style.fontWeight="normal";
				}
			}
			if(this.chVariableTypeArray[i]=='img')
			{
				//this.hcElement.rows[this.animM].cells[this.animJ+i].innerHTML="<img src='"+this.flagRoot+country_item[this.chVariableArray[i]]+this.flagExt+"' width='18px' heigth='12px' >";
				//this.hcElement.rows[this.animM].cells[this.animJ+i].style.backgroundImage  =  "url("+this.flagRoot+country_item[this.chVariableArray[i]]+this.flagExt+")";
				
				this.hcElement.rows[this.animM].cells[this.animJ+i].className =  "hc_flag "+this.flagClass+country_item[this.chVariableArray[i]];
			}
			else if(this.chVariableTypeArray[i]=='text')
			{
				if(this.chVariableUpperArray[i])
				{
					this.hcElement.rows[this.animM].cells[this.animJ+i].innerHTML=country_item[this.chVariableArray[i]].toUpperCase();
				}
				else
				{
					if  (this.highlights_col != null)
					{
					
						var coll = this.hcElement.rows[this.animM].cells[this.animJ+i];
						
						if  (this.highlights_col == i )
						{
							
							coll.style.cursor = 'pointer';
							Event.stopObserving(coll);
							Event.observe (coll , "click", this.itemClicked.bind(this,  country_item , coll));
							
							var is_in = false;
							this.highlights.each(function(item) {
							if  (item == country_item.id)
								{
									is_in  = true;
								}
							});
							
							if (is_in)
							{
												
													coll.setStyle({
															backgroundColor: this.highlights_color.toString(),
															color : this.highlights_color_text.toString() 
															
													});
													
							}
							else
							{
													coll.setStyle({
															backgroundColor: this.highlights_color_.toString(),
															color : this.highlights_color_text_.toString() 
													});
							}
							
							
						}
					}
					
					
					if (this.useCommas)
					{
						this.hcElement.rows[this.animM].cells[this.animJ+i].innerHTML= this.addCommas (country_item[this.chVariableArray[i]]);
					}
					else
					{
						this.hcElement.rows[this.animM].cells[this.animJ+i].innerHTML= country_item[this.chVariableArray[i]];
					}
					
				}
			}
			else if(this.chVariableTypeArray[i]=='static')
			{
				this.hcElement.rows[this.animM].cells[this.animJ+i].innerHTML=this.hcStaticValue[this.chVariableArray[i]];
			}
		}
		if(this.animM==this.hcRowCount-1)
		{
			this.animM=0;this.animJ=this.animJ+this.chVariableArray.length;
		}
		else
		{
			this.animM++;
		}
		this.animI=this.animIInc+this.animI;
		this.CountryCounter++;
		this.checkLatest();
	},
	checkLatest:function()
	{
		if(this.Quie)
		{
			this.Quie=false;
			this.inprogress=false;
			this.isFirst=false;

			this.updateData();
		}
		else
		{
			var tmp=this.chartdata.chart.countries.countryitem.length;
			if(this.Reverce)
			{
				tmp=-1;
			}
			if(this.animI!=tmp)
			{
				if(this.hcInsertCounter==this.hcInsertCount)
				{
					this.hcInsertCounter=1;
					if(this.isFirst)
					{
						this.drawItem();
					}
					else
					{
						setTimeout(this.drawItem.bind(this,null),10);
					}
				}
				else
				{
					this.hcInsertCounter++;
					this.drawItem();
				}
			}
			else
			{
				this.inprogress=false;
				this.isFirst=false;
				if(this.useMap&&this.updateMap)
				{
					this.renderMap();
/*					if (this.firstLoad)
					{
						this.firstLoad = false;
						if (this.renderMap)
						{
							this.renderMap(); 
						}
					}
					else
					{

						this.chartLoadedCallBack();
						this.renderMap();
					}*/
				}
			}
		}
	}
});
