if(typeof infosoftglobal=="undefined")var infosoftglobal=new Object;if(typeof infosoftglobal.FusionChartsUtil=="undefined")infosoftglobal.FusionChartsUtil=new Object;infosoftglobal.FusionCharts=function(a,b,c,d,e){if(!document.getElementById){return}this.initialDataSet=false;this.params=new Object;this.variables=new Object;this.attributes=new Array;if(a){this.setAttribute("swf",a)}if(b){this.setAttribute("id",b)}if(c){this.setAttribute("width",c)}if(d){this.setAttribute("height",d)}if(e){this.addParam("bgcolor",e)}this.addParam("quality","high");this.addParam("allowScriptAccess","always");this.addParam("swliveconnect","true");this.addVariable("chartWidth",c);this.addVariable("chartHeight",d)};infosoftglobal.FusionCharts.prototype={setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(a,b){this.params[a]=b},getParams:function(){return this.params},addVariable:function(a,b){this.variables[a]=b},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var a=new Array;var b;var c=this.getVariables();for(b in c){a.push(b+"="+c[b])}return a},getSWFHTML:function(){var a="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){a='<embed wmode="opaque" type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"  ';a+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var b=this.getParams();for(var c in b){a+=[c]+'="'+b[c]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){a+='flashvars="'+d+'"'}a+="/>"}else{a='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';a+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var b=this.getParams();for(var c in b){a+='<param name="'+c+'" value="'+b[c]+'" />'}var d=this.getVariablePairs().join("&");if(d.length>0){a+='<param name="flashvars" value="'+d+'" />'}a+="</object>"}return a},setDataURL:function(a){if(this.initialDataSet==false){this.addVariable("dataURL",a);this.initialDataSet=true}else{};},setDataXML:function(a){if(this.initialDataSet==false){this.addVariable("dataXML",a);this.initialDataSet=true}else{};},render:function(a){var b=typeof a=="string"?document.getElementById(a):a;b.innerHTML=this.getSWFHTML();return true}};infosoftglobal.FusionChartsUtil.cleanupSWFs=function(){if(window.opera||!document.all)return;var a=document.getElementsByTagName("OBJECT");for(var b=0;b<a.length;b++){a[b].style.display="none";for(var c in a[b]){if(typeof a[b][c]=="function"){a[b][c]=function(){}}}}};infosoftglobal.FusionChartsUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};if(typeof window.onunload=="function"){var a=window.onunload;window.onunload=function(){infosoftglobal.FusionChartsUtil.cleanupSWFs();a()}}else{window.onunload=infosoftglobal.FusionChartsUtil.cleanupSWFs}};if(typeof window.onbeforeunload=="function"){var oldBeforeUnload=window.onbeforeunload;window.onbeforeunload=function(){infosoftglobal.FusionChartsUtil.prepUnload();oldBeforeUnload()}}else{window.onbeforeunload=infosoftglobal.FusionChartsUtil.prepUnload}if(Array.prototype.push==null){Array.prototype.push=function(a){this[this.length]=a;return this.length}}infosoftglobal.FusionChartsUtil.getChartObject=function(a){if(window.document[a]){return window.document[a]}if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[a])return document.embeds[a]}else{return document.getElementById(a)}};infosoftglobal.FusionChartsUtil.updateChartXML=function(a,b){var c=infosoftglobal.FusionChartsUtil.getChartObject(a);c.SetVariable("_root.dataURL","");c.SetVariable("_root.isNewData","1");c.SetVariable("_root.newData",b);c.TGotoLabel("/","JavaScriptHandler")};var getChartFromId=infosoftglobal.FusionChartsUtil.getChartObject;var updateChartXML=infosoftglobal.FusionChartsUtil.updateChartXML;var FusionCharts=infosoftglobal.FusionCharts
