function FlashChart(D,C,A,B){if(arguments.length<4){throw new Exception("RequiredParameterException","You must pass in a src, width, height, and version when creating a FlashChart.")}this.src=D;this.width=C;this.height=A;this.version=B;this.id=null;this.flashVars=null;this.flashVarsStr=null;this.genericParam=new Object();this.ie=(navigator.appName.indexOf("Microsoft")!=-1)?1:0}FlashChart.prototype.setSource=function(A){this.src=A};FlashChart.prototype.setWidth=function(A){this.width=width};FlashChart.prototype.setHeight=function(A){this.h=height};FlashChart.prototype.setVersion=function(A){this.version=A};FlashChart.prototype.setId=function(A){this.id=A};FlashChart.prototype.setBgcolor=function(A){if(A.charAt(0)!="#"){A="#"+A}this.genericParam.bgcolor=A};FlashChart.prototype.addFlashVars=function(A){this.flashVarsStr=A};FlashChart.prototype.addFlashVar=function(B,A){if(this.flashVars==null){this.flashVars=new Object()}this.flashVars[B]=A};FlashChart.prototype.removeFlashVar=function(A){if(this.flashVars!=null){this.flashVars[A]=null}};FlashChart.prototype.setSwliveconnect=function(A){this.genericParam.swliveconnect=A};FlashChart.prototype.setPlay=function(A){this.genericParam.play=A};FlashChart.prototype.setLoop=function(A){this.genericParam.loop=A};FlashChart.prototype.setMenu=function(A){this.genericParam.menu=A};FlashChart.prototype.setQuality=function(A){if(A!="low"&&A!="high"&&A!="autolow"&&A!="autohigh"&&A!="best"){throw new Exception("UnsupportedValueException",'Supported values are "low", "high", "autolow", "autohigh", and "best".')}this.genericParam.quality=A};FlashChart.prototype.setScale=function(A){if(A!="showall"&&A!="noborder"&&A!="exactfit"){throw new Exception("UnsupportedValueException",'Supported values are "showall", "noborder", and "exactfit".')}this.genericParam.scale=A};FlashChart.prototype.setAlign=function(A){if(A!="l"&&A!="t"&&A!="r"&&A!="b"){throw new Exception("UnsupportedValueException",'Supported values are "l", "t", "r" and "b".')}this.genericParam.align=A};FlashChart.prototype.setSalign=function(A){if(A!="l"&&A!="t"&&A!="r"&&A!="b"&&A!="tl"&&A!="tr"&&A!="bl"&&A!="br"){throw new Exception("UnsupportedValueException",'Supported values are "l", "t", "r", "b", "tl", "tr", "bl" and "br".')}this.genericParam.salign=A};FlashChart.prototype.setWmode=function(A){if(A!="window"&&A!="opaque"&&A!="transparent"){throw new Exception("UnsupportedValueException",'Supported values are "window", "opaque", and "transparent".')}this.genericParam.wmode=A};FlashChart.prototype.setBase=function(A){this.genericParam.base=A};FlashChart.prototype.setAllowScriptAccess=function(A){if(A!="never"&&A!="always"){throw new Exception("UnsupportedValueException",'Supported values are "never" and "always".')}this.genericParam.allowScriptAccess=A};FlashChart.prototype.toString=function(){var A=new String();if(this.ie){A+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';if(this.id!=null){A+='id="'+this.id+'" '}A+='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+this.version+'" ';A+='width="'+this.width+'" ';A+='height="'+this.height+'">';A+='<param name="movie" value="'+this.src+'"/>';for(var C in this.genericParam){if(this.genericParam[C]!=null){A+='<param name="'+C+'" value="'+this.genericParam[C]+'"/>'}}if(this.flashVars!=null){var B=this.getFlashVarsAsString();if(B.length>0){A+='<param name="flashvars" value="'+B+'"/>'}}A+="</object>"}else{A+='<embed src="'+this.src+'"';A+=' width="'+this.width+'"';A+=' height="'+this.height+'"';A+=' type="application/x-shockwave-flash"';if(this.id!=null){A+=' name="'+this.id+'"';A+=' id="'+this.id+'"'}for(var C in this.genericParam){if(this.genericParam[C]!=null){A+=(" "+C+'="'+this.genericParam[C]+'"')}}if(this.flashVars!=null){var B=this.getFlashVarsAsString();if(B.length>0){A+=' flashvars="'+B+'"'}}A+=' pluginspage="http://www.macromedia.com/go/getflashplayer">';A+="</embed>"}return A};FlashChart.prototype.write=function(A){A.write(this.toString())};FlashChart.prototype.getFlashVarsAsString=function(){var A=new String();for(var B in this.flashVars){if(this.flashVars[B]!=null){A+=(escape(B)+"="+escape(this.flashVars[B])+"&")}}if(this.flashVarsStr!=null){return A+this.flashVarsStr}return A.substring(0,A.length-1)};FlashChart.prototype.exportChartSettings=function(A){return fxCon.exportSettings()};FlashChart.prototype.importChartSettings=function(B,A){fxCon.importSettings(A)};FlashChart.prototype.getChartParameters=function(A){return A.getParam()};