/*
 * FancyBox - jQuery Plugin
 * simple and fancy lightbox alternative
 *
 * Copyright (c) 2009 Janis Skarnelis
 * Examples and documentation at: http://fancybox.net
 * 
 * Version: 1.2.6 (16/11/2009)
 * Requires: jQuery v1.3+
 * 
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */

(function(b){b.fn.fixPNG=function(){return this.each(function(){var l=b(this).css("backgroundImage");if(l.match(/^url\(["']?(.*\.png)["']?\)$/i)){l=RegExp.$1;b(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod="+(b(this).css("backgroundRepeat")=="no-repeat"?"crop":"scale")+", src='"+l+"')"}).each(function(){var m=b(this).css("position");if(m!="absolute"&&m!="relative"){b(this).css("position","relative")}})}})};var d,k,i=false,h=new Image,a,g=1,c=/\.(jpg|gif|png|bmp|jpeg|ashx)(.*)?$/i;var j=null,f=b.browser.msie&&b.browser.version.substr(0,1)==6&&!window.XMLHttpRequest,e=f||(b.browser.msie&&b.browser.version.substr(0,1)==7);b.fn.fancybox=function(m){var w=b.extend({},b.fn.fancybox.defaults,m);var t=this;function q(){d=this;k=b.extend({},w);v();return false}function v(){if(i){return}if(b.isFunction(k.callbackOnStart)){k.callbackOnStart()}k.itemArray=[];k.itemCurrent=0;if(w.itemArray.length>0){k.itemArray=w.itemArray}else{var y={};if(!d.rel||d.rel==""){var y={href:d.href,title:d.title};if(b(d).children("img:first").length){y.orig=b(d).children("img:first")}else{y.orig=b(d)}if(y.title==""||typeof y.title=="undefined"){y.title=y.orig.attr("alt")}k.itemArray.push(y)}else{var o=b(t).filter("a[rel="+d.rel+"]");var y={};for(var x=0;x<o.length;x++){y={href:o[x].href,title:o[x].title};if(b(o[x]).children("img:first").length){y.orig=b(o[x]).children("img:first")}else{y.orig=b(o[x])}if(y.title==""||typeof y.title=="undefined"){y.title=y.orig.attr("alt")}k.itemArray.push(y)}}}while(k.itemArray[k.itemCurrent].href!=d.href){k.itemCurrent++}if(k.overlayShow){if(f){b("embed, object, select").css("visibility","hidden");b("#fancy_overlay").css("height",b(document).height())}b("#fancy_overlay").css({"background-color":k.overlayColor,opacity:k.overlayOpacity}).show()}b(window).bind("resize.fb scroll.fb",b.fn.fancybox.scrollBox);r()}function r(){b("#fancy_right, #fancy_left, #fancy_close, #fancy_title").hide();var x=k.itemArray[k.itemCurrent].href;if(x.match("iframe")||d.className.indexOf("iframe")>=0){b.fn.fancybox.showLoading();u('<iframe id="fancy_frame" onload="jQuery.fn.fancybox.showIframe()" name="fancy_iframe'+Math.round(Math.random()*1000)+'" frameborder="0" hspace="0" src="'+x+'"></iframe>',k.frameWidth,k.frameHeight)}else{if(x.match(/#/)){var o=window.location.href.split("#")[0];o=x.replace(o,"");o=o.substr(o.indexOf("#"));u('<div id="fancy_div">'+b(o).html()+"</div>",k.frameWidth,k.frameHeight)}else{if(x.match(c)){h=new Image;h.src=x;if(h.complete){n()}else{b.fn.fancybox.showLoading();b(h).unbind().bind("load",function(){b("#fancy_loading").hide();n()})}}else{b.fn.fancybox.showLoading();b.get(x,function(y){b("#fancy_loading").hide();u('<div id="fancy_ajax">'+y+"</div>",k.frameWidth,k.frameHeight)})}}}}function n(){var z=h.width;var x=h.height;var y=(k.padding*2)+40;var B=(k.padding*2)+60;var A=b.fn.fancybox.getViewport();if(k.imageScale&&(z>(A[0]-y)||x>(A[1]-B))){var o=Math.min(Math.min(A[0]-y,z)/z,Math.min(A[1]-B,x)/x);z=Math.round(o*z);x=Math.round(o*x)}u('<img alt="" id="fancy_img" src="'+h.src+'" />',z,x)}function p(){if((k.itemArray.length-1)>k.itemCurrent){var o=k.itemArray[k.itemCurrent+1].href||false;if(o&&o.match(c)){objNext=new Image();objNext.src=o}}if(k.itemCurrent>0){var o=k.itemArray[k.itemCurrent-1].href||false;if(o&&o.match(c)){objNext=new Image();objNext.src=o}}}function u(z,x,C){i=true;var o=k.padding;if(e||j){b("#fancy_content")[0].style.removeExpression("height");b("#fancy_content")[0].style.removeExpression("width")}if(o>0){x+=o*2;C+=o*2;b("#fancy_content").css({top:o+"px",right:o+"px",bottom:o+"px",left:o+"px",width:"auto",height:"auto"});if(e||j){b("#fancy_content")[0].style.setExpression("height","(this.parentNode.clientHeight - "+o*2+")");b("#fancy_content")[0].style.setExpression("width","(this.parentNode.clientWidth - "+o*2+")")}}else{b("#fancy_content").css({top:0,right:0,bottom:0,left:0,width:"100%",height:"100%"})}if(b("#fancy_outer").is(":visible")&&x==b("#fancy_outer").width()&&C==b("#fancy_outer").height()){b("#fancy_content").fadeOut("fast",function(){b("#fancy_content").empty().append(b(z)).fadeIn("normal",function(){s()})});return}var E=b.fn.fancybox.getViewport();var F=(C+60)>E[1]?E[3]:(E[3]+Math.round((E[1]-C-60)*0.5));var B=(x+40)>E[0]?E[2]:(E[2]+Math.round((E[0]-x-40)*0.5));var D={left:B,top:F,width:x+"px",height:C+"px"};if(b("#fancy_outer").is(":visible")){b("#fancy_content").fadeOut("normal",function(){b("#fancy_content").empty();b("#fancy_outer").animate(D,k.zoomSpeedChange,k.easingChange,function(){b("#fancy_content").append(b(z)).fadeIn("normal",function(){s()})})})}else{if(k.zoomSpeedIn>0&&k.itemArray[k.itemCurrent].orig!==undefined){b("#fancy_content").empty().append(b(z));var A=k.itemArray[k.itemCurrent].orig;var y=b.fn.fancybox.getPosition(A);b("#fancy_outer").css({left:(y.left-20-k.padding)+"px",top:(y.top-20-k.padding)+"px",width:b(A).width()+(k.padding*2),height:b(A).height()+(k.padding*2)});if(k.zoomOpacity){D.opacity="show"}b("#fancy_outer").animate(D,k.zoomSpeedIn,k.easingIn,function(){s()})}else{b("#fancy_content").hide().empty().append(b(z)).show();b("#fancy_outer").css(D).fadeIn("normal",function(){s()})}}}function l(){if(k.itemCurrent!==0){b("#fancy_left, #fancy_left_ico").unbind().bind("click",function(o){o.stopPropagation();k.itemCurrent--;r();return false});b("#fancy_left").show()}if(k.itemCurrent!=(k.itemArray.length-1)){b("#fancy_right, #fancy_right_ico").unbind().bind("click",function(o){o.stopPropagation();k.itemCurrent++;r();return false});b("#fancy_right").show()}}function s(){if(b.browser.msie){b("#fancy_content")[0].style.removeAttribute("filter");b("#fancy_outer")[0].style.removeAttribute("filter")}l();p();b(document).bind("keydown.fb",function(x){if(x.keyCode==27&&k.enableEscapeButton){b.fn.fancybox.close()}else{if(x.keyCode==37&&k.itemCurrent!==0){b(document).unbind("keydown.fb");k.itemCurrent--;r()}else{if(x.keyCode==39&&k.itemCurrent!=(k.itemArray.length-1)){b(document).unbind("keydown.fb");k.itemCurrent++;r()}}}});if(k.hideOnContentClick){b("#fancy_content").click(b.fn.fancybox.close)}if(k.overlayShow&&k.hideOnOverlayClick){b("#fancy_overlay").bind("click",b.fn.fancybox.close)}if(k.showCloseButton){b("#fancy_close").bind("click",b.fn.fancybox.close).show()}if(typeof k.itemArray[k.itemCurrent].title!=="undefined"&&k.itemArray[k.itemCurrent].title.length>0){var o=b("#fancy_outer").position();b("#fancy_title div").text(k.itemArray[k.itemCurrent].title).html();b("#fancy_title").css({top:o.top+b("#fancy_outer").outerHeight()-32,left:o.left+((b("#fancy_outer").outerWidth()*0.5)-(b("#fancy_title").width()*0.5))}).show()}if(k.overlayShow&&f){b("embed, object, select",b("#fancy_content")).css("visibility","visible")}if(b.isFunction(k.callbackOnShow)){k.callbackOnShow(k.itemArray[k.itemCurrent])}if(b.browser.msie){b("#fancy_outer")[0].style.removeAttribute("filter");b("#fancy_content")[0].style.removeAttribute("filter")}i=false}return this.unbind("click.fb").bind("click.fb",q)};b.fn.fancybox.scrollBox=function(){var n=b.fn.fancybox.getViewport();if(k.centerOnScroll&&b("#fancy_outer").is(":visible")){var o=b("#fancy_outer").outerWidth();var m=b("#fancy_outer").outerHeight();var l={top:(m>n[1]?n[3]:n[3]+Math.round((n[1]-m)*0.5)),left:(o>n[0]?n[2]:n[2]+Math.round((n[0]-o)*0.5))};b("#fancy_outer").css(l);b("#fancy_title").css({top:l.top+m-32,left:l.left+((o*0.5)-(b("#fancy_title").width()*0.5))})}if(f&&b("#fancy_overlay").is(":visible")){b("#fancy_overlay").css({height:b(document).height()})}if(b("#fancy_loading").is(":visible")){b("#fancy_loading").css({left:((n[0]-40)*0.5+n[2]),top:((n[1]-40)*0.5+n[3])})}};b.fn.fancybox.getNumeric=function(l,m){return parseInt(b.curCSS(l.jquery?l[0]:l,m,true))||0};b.fn.fancybox.getPosition=function(l){var m=l.offset();m.top+=b.fn.fancybox.getNumeric(l,"paddingTop");m.top+=b.fn.fancybox.getNumeric(l,"borderTopWidth");m.left+=b.fn.fancybox.getNumeric(l,"paddingLeft");m.left+=b.fn.fancybox.getNumeric(l,"borderLeftWidth");return m};b.fn.fancybox.showIframe=function(){b("#fancy_loading").hide();b("#fancy_frame").show()};b.fn.fancybox.getViewport=function(){return[b(window).width(),b(window).height(),b(document).scrollLeft(),b(document).scrollTop()]};b.fn.fancybox.animateLoading=function(){if(!b("#fancy_loading").is(":visible")){clearInterval(a);return}b("#fancy_loading > div").css("top",(g*-40)+"px");g=(g+1)%12};b.fn.fancybox.showLoading=function(){clearInterval(a);var l=b.fn.fancybox.getViewport();b("#fancy_loading").css({left:((l[0]-40)*0.5+l[2]),top:((l[1]-40)*0.5+l[3])}).show();b("#fancy_loading").bind("click",b.fn.fancybox.close);a=setInterval(b.fn.fancybox.animateLoading,66)};b.fn.fancybox.close=function(){i=true;b(h).unbind();b(document).unbind("keydown.fb");b(window).unbind("resize.fb scroll.fb");b("#fancy_overlay, #fancy_content, #fancy_close").unbind();b("#fancy_close, #fancy_loading, #fancy_left, #fancy_right, #fancy_title").hide();__cleanup=function(){if(b("#fancy_overlay").is(":visible")){b("#fancy_overlay").fadeOut("fast")}b("#fancy_content").empty();if(k.centerOnScroll){b(window).unbind("resize.fb scroll.fb")}if(f){b("embed, object, select").css("visibility","visible")}if(b.isFunction(k.callbackOnClose)){k.callbackOnClose()}i=false};if(b("#fancy_outer").is(":visible")!==false){if(k.zoomSpeedOut>0&&k.itemArray[k.itemCurrent].orig!==undefined){var m=k.itemArray[k.itemCurrent].orig;var l=b.fn.fancybox.getPosition(m);var n={left:(l.left-20-k.padding)+"px",top:(l.top-20-k.padding)+"px",width:b(m).width()+(k.padding*2),height:b(m).height()+(k.padding*2)};if(k.zoomOpacity){n.opacity="hide"}b("#fancy_outer").stop(false,true).animate(n,k.zoomSpeedOut,k.easingOut,__cleanup)}else{b("#fancy_outer").stop(false,true).fadeOut("fast",__cleanup)}}else{__cleanup()}return false};b.fn.fancybox.build=function(){var m="";m+='<div id="fancy_overlay"></div>';m+='<div id="fancy_loading"><div></div></div>';m+='<div id="fancy_outer">';m+='<div id="fancy_inner">';m+='<div id="fancy_close"></div>';m+='<div id="fancy_bg"><div class="fancy_bg" id="fancy_bg_n"></div><div class="fancy_bg" id="fancy_bg_ne"></div><div class="fancy_bg" id="fancy_bg_e"></div><div class="fancy_bg" id="fancy_bg_se"></div><div class="fancy_bg" id="fancy_bg_s"></div><div class="fancy_bg" id="fancy_bg_sw"></div><div class="fancy_bg" id="fancy_bg_w"></div><div class="fancy_bg" id="fancy_bg_nw"></div></div>';m+='<a href="javascript:;" id="fancy_left"><span class="fancy_ico" id="fancy_left_ico"></span></a><a href="javascript:;" id="fancy_right"><span class="fancy_ico" id="fancy_right_ico"></span></a>';m+='<div id="fancy_content"></div>';m+="</div>";m+="</div>";m+='<div id="fancy_title"></div>';b(m).appendTo("body");b('<table cellspacing="0" cellpadding="0" border="0"><tr><td class="fancy_title" id="fancy_title_left"></td><td class="fancy_title" id="fancy_title_main"><div></div></td><td class="fancy_title" id="fancy_title_right"></td></tr></table>').appendTo("#fancy_title");if(b.browser.msie){b(".fancy_bg").fixPNG()}if(f){b("div#fancy_overlay").css("position","absolute");b("#fancy_loading div, #fancy_close, .fancy_title, .fancy_ico").fixPNG();b("#fancy_inner").prepend('<iframe id="fancy_bigIframe" src="javascript:false;" scrolling="no" frameborder="0"></iframe>');var l=b("#fancy_bigIframe")[0].contentWindow.document;l.open();l.close()}};b.fn.fancybox.defaults={padding:10,imageScale:true,zoomOpacity:true,zoomSpeedIn:0,zoomSpeedOut:0,zoomSpeedChange:300,easingIn:"swing",easingOut:"swing",easingChange:"swing",frameWidth:560,frameHeight:420,overlayShow:true,overlayOpacity:0.3,overlayColor:"#666",enableEscapeButton:true,showCloseButton:true,hideOnOverlayClick:true,hideOnContentClick:true,centerOnScroll:true,itemArray:[],callbackOnStart:null,callbackOnShow:null,callbackOnClose:null};b(document).ready(function(){j=b.browser.msie&&!b.boxModel;if(b("#fancy_outer").length<1){b.fn.fancybox.build()}})})(jQuery);

/*!
 * jQuery corner plugin: simple corner rounding
 * Examples and documentation at: http://jquery.malsup.com/corner/
 * version 2.01 (08-SEP-2009)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */

/**
 *  corner() takes a single string argument:  $('#myDiv').corner("effect corners width")
 *
 *  effect:  name of the effect to apply, such as round, bevel, notch, bite, etc (default is round). 
 *  corners: one or more of: top, bottom, tr, tl, br, or bl. 
 *           by default, all four corners are adorned. 
 *  width:   width of the effect; in the case of rounded corners this is the radius. 
 *           specify this value using the px suffix such as 10px (and yes, it must be pixels).
 *
 * @author Dave Methvin (http://methvin.com/jquery/jq-corner.html)
 * @author Mike Alsup   (http://jquery.malsup.com/corner/)
 */

/*
 * jQuery corner plugin: simple corner rounding
 * Examples and documentation at: http://jquery.malsup.com/corner/
 * version 2.01 (08-SEP-2009)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function(c){var f=c.browser.mozilla&&/gecko/i.test(navigator.userAgent);var b=c.browser.safari&&c.browser.version>=3;var h=c.browser.msie&&(function(){var i=document.createElement("div");try{i.style.setExpression("width","0+0")}catch(j){return false}return true})();function e(i,j){return parseInt(c.css(i,j))||0}function d(i){var i=parseInt(i).toString(16);return(i.length<2)?"0"+i:i}function g(k){for(;k&&k.nodeName.toLowerCase()!="html";k=k.parentNode){var i=c.css(k,"backgroundColor");if(i=="rgba(0, 0, 0, 0)"){continue}if(i.indexOf("rgb")>=0){var j=i.match(/\d+/g);return"#"+d(j[0])+d(j[1])+d(j[2])}if(i&&i!="transparent"){return i}}return"#ffffff"}function a(j,l,k){switch(j){case"round":return Math.round(k*(1-Math.cos(Math.asin(l/k))));case"cool":return Math.round(k*(1+Math.cos(Math.asin(l/k))));case"sharp":return Math.round(k*(1-Math.cos(Math.acos(l/k))));case"bite":return Math.round(k*(Math.cos(Math.asin((k-l-1)/k))));case"slide":return Math.round(k*(Math.atan2(l,k/l)));case"jut":return Math.round(k*(Math.atan2(k,(k-l-1))));case"curl":return Math.round(k*(Math.atan(l)));case"tear":return Math.round(k*(Math.cos(l)));case"wicked":return Math.round(k*(Math.tan(l)));case"long":return Math.round(k*(Math.sqrt(l)));case"sculpt":return Math.round(k*(Math.log((k-l-1),k)));case"dog":return(l&1)?(l+1):k;case"dog2":return(l&2)?(l+1):k;case"dog3":return(l&3)?(l+1):k;case"fray":return(l%2)*k;case"notch":return k;case"bevel":return l+1}}c.fn.corner=function(k){if(this.length==0){if(!c.isReady&&this.selector){var i=this.selector,j=this.context;c(function(){c(i,j).corner(k)})}return this}return this.each(function(m){var B=c(this);var C=(k||B.attr(c.fn.corner.defaults.metaAttr)||"").toLowerCase();var q=/keep/.test(C);var v=((C.match(/cc:(#[0-9a-f]+)/)||[])[1]);var n=((C.match(/sc:(#[0-9a-f]+)/)||[])[1]);var I=parseInt((C.match(/(\d+)px/)||[])[1])||10;var G=/round|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dog/;var p=((C.match(G)||["round"])[0]);var l={T:0,B:1};var y={TL:/top|tl|left/.test(C),TR:/top|tr|right/.test(C),BL:/bottom|bl|left/.test(C),BR:/bottom|br|right/.test(C)};if(!y.TL&&!y.TR&&!y.BL&&!y.BR){y={TL:1,TR:1,BL:1,BR:1}}if(c.fn.corner.defaults.useNative&&p=="round"&&(f||b)&&!v&&!n){if(y.TL){B.css(f?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",I+"px")}if(y.TR){B.css(f?"-moz-border-radius-topright":"-webkit-border-top-right-radius",I+"px")}if(y.BL){B.css(f?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",I+"px")}if(y.BR){B.css(f?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",I+"px")}return}var u=document.createElement("div");u.style.overflow="hidden";u.style.height="1px";u.style.backgroundColor=n||"transparent";u.style.borderStyle="solid";var H={T:parseInt(c.css(this,"paddingTop"))||0,R:parseInt(c.css(this,"paddingRight"))||0,B:parseInt(c.css(this,"paddingBottom"))||0,L:parseInt(c.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined){this.style.zoom=1}if(!q){this.style.border="none"}u.style.borderColor=v||g(this.parentNode);var A=c.curCSS(this,"height");for(var x in l){var r=l[x];if((r&&(y.BL||y.BR))||(!r&&(y.TL||y.TR))){u.style.borderStyle="none "+(y[x+"R"]?"solid":"none")+" none "+(y[x+"L"]?"solid":"none");var D=document.createElement("div");c(D).addClass("jquery-corner");var t=D.style;r?this.appendChild(D):this.insertBefore(D,this.firstChild);if(r&&A!="auto"){if(c.css(this,"position")=="static"){this.style.position="relative"}t.position="absolute";t.bottom=t.left=t.padding=t.margin="0";if(h){t.setExpression("width","this.parentNode.offsetWidth")}else{t.width="100%"}}else{if(!r&&c.browser.msie){if(c.css(this,"position")=="static"){this.style.position="relative"}t.position="absolute";t.top=t.left=t.right=t.padding=t.margin="0";if(h){var F=e(this,"borderLeftWidth")+e(this,"borderRightWidth");t.setExpression("width","this.parentNode.offsetWidth - "+F+'+ "px"')}else{t.width="100%"}}else{t.position="relative";t.margin=!r?"-"+H.T+"px -"+H.R+"px "+(H.T-I)+"px -"+H.L+"px":(H.B-I)+"px -"+H.R+"px -"+H.B+"px -"+H.L+"px"}}for(var z=0;z<I;z++){var s=Math.max(0,a(p,z,I));var E=u.cloneNode(false);E.style.borderWidth="0 "+(y[x+"R"]?s:0)+"px 0 "+(y[x+"L"]?s:0)+"px";r?D.appendChild(E):D.insertBefore(E,D.firstChild)}}}})};c.fn.uncorner=function(){if(f||b){this.css(f?"-moz-border-radius":"-webkit-border-radius",0)}c("div.jquery-corner",this).remove();return this};c.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);

/**
 * FusionCharts: Flash Player detection and Chart embedding.
 * Version 1.2.3F ( 22 November 2008) - Specialized for FusionChartsFREE 
 * 					Checking Flash Version >=6 and added updateChartXML() for FREE Charts.
 * Version: 1.2.3 (1st September, 2008) - Added Fix for % and & characters, scaled dimensions, fixes in to properly handling of double quotes and single quotes in setDataXML() function.
 * Version: 1.2.2 (10th July, 2008) - Added Fix for % scaled dimensions, fixes in setDataXML() and setDataURL() functions
 * Version: 1.2.1 (21st December, 2007) - Added setting up Transparent/opaque mode: setTransparent() function 
 * Version: 1.2 (1st November, 2007) - Added FORM fixes for IE 
 * Version: 1.1 (29th June, 2007) - Added Player detection, New conditional fixes for IE
 *
 * Morphed from SWFObject (http://blog.deconcept.com/swfobject/) under MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */

if(typeof infosoftglobal=="undefined"){var infosoftglobal=new Object()}if(typeof infosoftglobal.FusionChartsUtil=="undefined"){infosoftglobal.FusionChartsUtil=new Object()}infosoftglobal.FusionCharts=function(i,b,l,m,a,j,e,g,d,k,f){if(!document.getElementById){return}this.initialDataSet=false;this.params=new Object();this.variables=new Object();this.attributes=new Array();if(i){this.setAttribute("swf",i)}if(b){this.setAttribute("id",b)}l=l.toString().replace(/\%$/,"%25");if(l){this.setAttribute("width",l)}m=m.toString().replace(/\%$/,"%25");if(m){this.setAttribute("height",m)}if(e){this.addParam("bgcolor",e)}this.addParam("quality","high");this.addParam("allowScriptAccess","always");this.addVariable("chartWidth",l);this.addVariable("chartHeight",m);a=a?a:0;this.addVariable("debugMode",a);this.addVariable("DOMId",b);j=j?j:0;this.addVariable("registerWithJS",j);g=g?g:"noScale";this.addVariable("scaleMode",g);d=d?d:"EN";this.addVariable("lang",d);this.detectFlashVersion=k?k:1;this.autoInstallRedirect=f?f:1;this.installedVer=infosoftglobal.FusionChartsUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){infosoftglobal.FusionCharts.doPrepUnload=true}};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 c=new Array();var a;var b=this.getVariables();for(a in b){c.push(a+"="+b[a])}return c},getSWFHTML:function(){var c="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){c='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"  ';c+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var a=this.getParams();for(var b in a){c+=[b]+'="'+a[b]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){c+='flashvars="'+d+'"'}c+="/>"}else{c='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';c+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var a=this.getParams();for(var b in a){c+='<param name="'+b+'" value="'+a[b]+'" />'}var d=this.getVariablePairs().join("&");if(d.length>0){c+='<param name="flashvars" value="'+d+'" />'}c+="</object>"}return c},setDataURL:function(a){if(this.initialDataSet==false){this.addVariable("dataURL",a);this.initialDataSet=true}else{var b=infosoftglobal.FusionChartsUtil.getChartObject(this.getAttribute("id"));if(!b.setDataURL){__flash__addCallback(b,"setDataURL")}b.setDataURL(a)}},encodeDataXML:function(d){var c=["\\$","\\+"];var j=d.match(/=\s*\".*?\"/g);if(j){for(var a=0;a<j.length;a++){var h=j[a].replace(/^=\s*\"|\"$/g,"");h=h.replace(/\'/g,"%26apos;");var e=d.indexOf(j[a]);var g="='"+h+"'";var b=d.substring(0,e);var f=d.substring(e+j[a].length);var d=b+g+f}}d=d.replace(/\"/g,"%26quot;");d=d.replace(/%(?![\da-f]{2}|[\da-f]{4})/ig,"%25");d=d.replace(/\&/g,"%26");return d},setDataXML:function(a){if(this.initialDataSet==false){this.addVariable("dataXML",this.encodeDataXML(a));this.initialDataSet=true}else{var b=infosoftglobal.FusionChartsUtil.getChartObject(this.getAttribute("id"));b.setDataXML(a)}},setTransparent:function(a){if(typeof a=="undefined"){a=true}if(a){this.addParam("WMode","transparent")}else{this.addParam("WMode","Opaque")}},render:function(c){if((this.detectFlashVersion==1)&&(this.installedVer.major<6)){if(this.autoInstallRedirect==1){var a=window.confirm("You need Adobe Flash Player 6 (or above) to view the charts. It is a free and lightweight installation from Adobe.com. Please click on Ok to install the same.");if(a){window.location="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"}else{return false}}else{return false}}else{var b=(typeof c=="string")?document.getElementById(c):c;b.innerHTML=this.getSWFHTML();if(!document.embeds[this.getAttribute("id")]&&!window[this.getAttribute("id")]){window[this.getAttribute("id")]=document.getElementById(this.getAttribute("id"))}return true}}};infosoftglobal.FusionChartsUtil.getPlayerVersion=function(){var c=new infosoftglobal.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var b=navigator.plugins["Shockwave Flash"];if(b&&b.description){c=new infosoftglobal.PlayerVersion(b.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var f=1;var a=3;while(f){try{a++;f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a);c=new infosoftglobal.PlayerVersion([a,0,0])}catch(d){f=null}}}else{try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");c=new infosoftglobal.PlayerVersion([6,0,21]);f.AllowScriptAccess="always"}catch(d){if(c.major==6){return c}}try{f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(f!=null){c=new infosoftglobal.PlayerVersion(f.GetVariable("$version").split(" ")[1].split(","))}}}return c};infosoftglobal.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};infosoftglobal.FusionChartsUtil.cleanupSWFs=function(){var c=document.getElementsByTagName("OBJECT");for(var b=c.length-1;b>=0;b--){c[b].style.display="none";for(var a in c[b]){if(typeof c[b][a]=="function"){c[b][a]=function(){}}}}};if(infosoftglobal.FusionCharts.doPrepUnload){if(!infosoftglobal.unloadSet){infosoftglobal.FusionChartsUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",infosoftglobal.FusionChartsUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",infosoftglobal.FusionChartsUtil.prepUnload);infosoftglobal.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}if(Array.prototype.push==null){Array.prototype.push=function(a){this[this.length]=a;return this.length}}infosoftglobal.FusionChartsUtil.getChartObject=function(b){var a=null;if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[b]){a=document.embeds[b]}else{a=window.document[b]}}else{a=window[b]}if(!a){a=document.getElementById(b)}return 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;
