if(typeof olInfo=="undefined"||typeof olInfo.meets=="undefined"||!olInfo.meets(4.14)){alert("overLIB 4.14 or later is required for the Adaptive_Width Plugin.")}else{registerCommands("adaptive_width");var olAWDefault="300,720,4,9";if(typeof ol_adaptive_width=="undefined"){var ol_adaptive_width=""}var o3_adaptive_width="";function setAdaptiveWidthVariables(){o3_adaptive_width=ol_adaptive_width}function parseAdaptiveWidthExtras(a,d,c){var b=d;if(b<c.length){if(c[b]==ADAPTIVE_WIDTH){b=getAWArgs(++b,c,(a+"adaptive_width"));adjustAWSettings(a+"adaptive_width");return b}}return -1}function getAWArgs(i,args,parameter){var k=i,l,re,pV,str="";for(k=i;k<args.length;k++){if(typeof args[k]=="number"&&args[k]>pmStart){break}str+=args[k]+","}if(str){str=str.replace(/,$/,"")}k--;pV=(olNs4&&/cellpad/i.test(parameter))?str.split(",")[0]:str;eval(parameter+'="'+pV+'"');return k}function adjustAWSettings(pmStr){if(/'ol_'/.test(pmStr)){if(!eval(pmStr)){return}else{olAWDefault=setAWarr(eval(pmStr)).join(",")}}else{if(!eval(pmStr)){eval(pmStr+'="'+olAWDefault+'"')}}}function checkAdaptiveWidth(){if(o3_adaptive_width){if(o3_wrap){clearWrapSettings()}o3_width=dynamicSizer(o3_text,o3_cap,setAWarr(o3_adaptive_width))}return true}function setAWarr(a){var c=new Array(),e=olAWDefault.split(","),b=a.split(",");for(var d=0;d<e.length;d++){c[c.length++]=(d<b.length&&b[d])?b[d]:e[d]}return c}function dynamicSizer(b,d,a){var c=Math.floor(parseInt(a[0])+b.length/a[2]);if(d){c=Math.max(c,Math.floor(d.length*a[3]))}return Math.min(parseInt(a[1]),c)}function clearWrapSettings(){nbspCleanup();o3_wrap=0}registerRunTimeFunction(setAdaptiveWidthVariables);registerCmdLineFunction(parseAdaptiveWidthExtras);registerPostParseFunction(checkAdaptiveWidth)};
