﻿var GPUI=function(){var a="",b=this;b.version="1.0.2";b.defaultAnimationLength=300;b.showMessageCount=0;b.defaultInterval=10;GPAddressParser=function(){var x="VIS",k="VLG",j="TUNL",w="TRAK",v="TRL",i="TPKE",a="STRA",u="SQ",C="SPGS",B="RNCH",A="RADL",t="PR",c="PKWY",z="PARK",h="MTN",g="JCT",s="HOLW",f="HWY",r="HTS",q="HBR",p="GTWY",o="GDN",n="FWY",m="EXPY",E="XING",e="CRES",l="CIR",b="CTR",y="BYP",D="BLVD",d="AVE";this.streetSuffixes={ALLEE:"ALY",ALLEY:"ALY",ALLY:"ALY",ANEX:"ANX",ANNEX:"ANX",ANNX:"ANX",ARCADE:"ARC",AV:d,AVEN:d,AVENU:d,AVENUE:d,AVN:d,AVNUE:d,BAYOO:"BYU",BAYOU:"BYU",BEACH:"BCH",BEND:"BND",BLUF:"BLF",BLUFF:"BLF",BLUFFS:"BLFS",BOT:"BTM",BOTTM:"BTM",BOTTOM:"BTM",BOUL:D,BOULEVARD:D,BOULV:D,BRANCH:"BR",BRDGE:"BRG",BRIDGE:"BRG",BRNCH:"BR",BROOK:"BRK",BROOKS:"BRKS",BURG:"BG",BURGS:"BGS",BYPA:y,BYPAS:y,BYPASS:y,BYPS:y,CAMP:"CP",CANYN:"CYN",CANYON:"CYN",CAPE:"CPE",CAUSEWAY:"CSWY",CAUSWAY:"CSWY",CEN:b,CENT:b,CENTER:b,CENTERS:"CTRS",CENTR:b,CENTRE:b,CIRC:l,CIRCL:l,CIRCLE:l,CIRCLES:"CIRS",CK:"CRK",CLIFF:"CLF",CLIFFS:"CLFS",CLUB:"CLB",CMP:"CP",CNTER:b,CNTR:b,CNYN:"CYN",COMMON:"CMN",CORNER:"COR",CORNERS:"CORS",COURSE:"CRSE",COURT:"CT",COURTS:"CTS",COVE:"CV",COVES:"CVS",CR:"CRK",CRCL:l,CRCLE:l,CRECENT:e,CREEK:"CRK",CRESCENT:e,CRESENT:e,CREST:"CRST",CROSSING:E,CROSSROAD:"XRD",CRSCNT:e,CRSENT:e,CRSNT:e,CRSSING:E,CRSSNG:E,CRT:"CT",CURVE:"CURV",DALE:"DL",DAM:"DM",DIV:"DV",DIVIDE:"DV",DRIV:"DR",DRIVE:"DR",DRIVES:"DRS",DRV:"DR",DVD:"DV",ESTATE:"EST",ESTATES:"ESTS",EXP:m,EXPR:m,EXPRESS:m,EXPRESSWAY:m,EXPW:m,EXTENSION:"EXT",EXTENSIONS:"EXTS",EXTN:"EXT",EXTNSN:"EXT",FALLS:"FLS",FERRY:"FRY",FIELD:"FLD",FIELDS:"FLDS",FLAT:"FLT",FLATS:"FLTS",FORD:"FRD",FORDS:"FRDS",FOREST:"FRST",FORESTS:"FRST",FORG:"FRG",FORGE:"FRG",FORGES:"FRGS",FORK:"FRK",FORKS:"FRKS",FORT:"FT",FREEWAY:n,FREEWY:n,FRRY:"FRY",FRT:"FT",FRWAY:n,FRWY:n,GARDEN:o,GARDENS:"GDNS",GARDN:o,GATEWAY:p,GATEWY:p,GATWAY:p,GLEN:"GLN",GLENS:"GLNS",GRDEN:o,GRDN:o,GRDNS:"GDNS",GREEN:"GRN",GREENS:"GRNS",GROV:"GRV",GROVE:"GRV",GROVES:"GRVS",GTWAY:p,HARB:q,HARBOR:q,HARBORS:"HBRS",HARBR:q,HAVEN:"HVN",HAVN:"HVN",HEIGHT:r,HEIGHTS:r,HGTS:r,HIGHWAY:f,HIGHWY:f,HILL:"HL",HILLS:"HLS",HIWAY:f,HIWY:f,HLLW:s,HOLLOW:s,HOLLOWS:s,HOLWS:s,HRBOR:q,HT:r,HWAY:f,INLET:"INLT",ISLAND:"IS",ISLANDS:"ISS",ISLES:"ISLE",ISLND:"IS",ISLNDS:"ISS",JCTION:g,JCTN:g,JCTNS:"JCTS",JUNCTION:g,JUNCTIONS:"JCTS",JUNCTN:g,JUNCTON:g,KEY:"KY",KEYS:"KYS",KNOL:"KNL",KNOLL:"KNL",KNOLLS:"KNLS",LA:"LN",LAKE:"LK",LAKES:"LKS",LANDING:"LNDG",LANE:"LN",LANES:"LN",LDGE:"LDG",LIGHT:"LGT",LIGHTS:"LGTS",LNDNG:"LNDG",LOAF:"LF",LOCK:"LCK",LOCKS:"LCKS",LODG:"LDG",LODGE:"LDG",LOOPS:"LOOP",MANOR:"MNR",MANORS:"MNRS",MEADOW:"MDW",MEADOWS:"MDWS",MEDOWS:"MDWS",MILL:"ML",MILLS:"MLS",MISSION:"MSN",MISSN:"MSN",MNT:"MT",MNTAIN:h,MNTN:h,MNTNS:"MTNS",MOTORWAY:"MTWY",MOUNT:"MT",MOUNTAIN:h,MOUNTAINS:"MTNS",MOUNTIN:h,MSSN:"MSN",MTIN:h,NECK:"NCK",ORCHARD:"ORCH",ORCHRD:"ORCH",OVERPASS:"OPAS",OVL:"OVAL",PARKS:z,PARKWAY:c,PARKWAYS:c,PARKWY:c,PASSAGE:"PSGE",PATHS:"PATH",PIKES:"PIKE",PINE:"PNE",PINES:"PNES",PK:z,PKWAY:c,PKWYS:c,PKY:c,PLACE:"PL",PLAIN:"PLN",PLAINES:"PLNS",PLAINS:"PLNS",PLAZA:"PLZ",PLZA:"PLZ",POINT:"PT",POINTS:"PTS",PORT:"PRT",PORTS:"PRTS",PRAIRIE:t,PRARIE:t,PRK:z,PRR:t,RAD:A,RADIAL:A,RADIEL:A,RANCH:B,RANCHES:B,RAPID:"RPD",RAPIDS:"RPDS",RDGE:"RDG",REST:"RST",RIDGE:"RDG",RIDGES:"RDGS",RIVER:"RIV",RIVR:"RIV",RNCHS:B,ROAD:"RD",ROADS:"RDS",ROUTE:"RTE",RVR:"RIV",SHOAL:"SHL",SHOALS:"SHLS",SHOAR:"SHR",SHOARS:"SHRS",SHORE:"SHR",SHORES:"SHRS",SKYWAY:"SKWY",SPNG:"SPG",SPNGS:C,SPRING:"SPG",SPRINGS:C,SPRNG:"SPG",SPRNGS:C,SPURS:"SPUR",SQR:u,SQRE:u,SQRS:"SQS",SQU:u,SQUARE:u,SQUARES:"SQS",STATION:"STA",STATN:"STA",STN:"STA",STR:"ST",STRAV:a,STRAVE:a,STRAVEN:a,STRAVENUE:a,STRAVN:a,STREAM:"STRM",STREET:"ST",STREETS:"STS",STREME:"STRM",STRT:"ST",STRVN:a,STRVNUE:a,SUMIT:"SMT",SUMITT:"SMT",SUMMIT:"SMT",TERR:"TER",TERRACE:"TER",THROUGHWAY:"TRWY",TPK:i,TR:v,TRACE:"TRCE",TRACES:"TRCE",TRACK:w,TRACKS:w,TRAFFICWAY:"TRFY",TRAIL:v,TRAILS:v,TRK:w,TRKS:w,TRLS:v,TRNPK:i,TRPK:i,TUNEL:j,TUNLS:j,TUNNEL:j,TUNNELS:j,TUNNL:j,TURNPIKE:i,TURNPK:i,UNDERPASS:"UPAS",UNION:"UN",UNIONS:"UNS",VALLEY:"VLY",VALLEYS:"VLYS",VALLY:"VLY",VDCT:"VIA",VIADCT:"VIA",VIADUCT:"VIA",VIEW:"VW",VIEWS:"VWS",VILL:k,VILLAG:k,VILLAGE:k,VILLAGES:"VLGS",VILLE:"VL",VILLG:k,VILLIAGE:k,VIST:x,VISTA:x,VLLY:"VLY",VST:x,VSTA:x,WALKS:"WALK",WELL:"WL",WELLS:"WLS",WY:"WAY"};this.states={ALABAMA:"AL",ALASKA:"AK","AMERICAN SAMOA":"AS",ARIZONA:"AZ",ARKANSAS:"AR",CALIFORNIA:"CA",COLORADO:"CO",CONNECTICUT:"CT",DELAWARE:"DE","DISTRICT OF COLUMBIA":"DC","FEDERATED STATES OF MICRONESIA":"FM",FLORIDA:"FL",GEORGIA:"GA",GUAM:"GU",HAWAII:"HI",IDAHO:"ID",ILLINOIS:"IL",INDIANA:"IN",IOWA:"IA",KANSAS:"KS",KENTUCKY:"KY",LOUISIANA:"LA",MAINE:"ME","MARSHALL ISLANDS":"MH",MARYLAND:"MD",MASSACHUSETTS:"MA",MICHIGAN:"MI",MINNESOTA:"MN",MISSISSIPPI:"MS",MISSOURI:"MO",MONTANA:"MT",NEBRASKA:"NE",NEVADA:"NV","NEW HAMPSHIRE":"NH","NEW JERSEY":"NJ","NEW MEXICO":"NM","NEW YORK":"NY","NORTH CAROLINA":"NC","NORTH DAKOTA":"ND","NORTHERN MARIANA ISLANDS":"MP",OHIO:"OH",OKLAHOMA:"OK",OREGON:"OR",PALAU:"PW",PENNSYLVANIA:"PA","PUERTO RICO":t,"RHODE ISLAND":"RI","SOUTH CAROLINA":"SC","SOUTH DAKOTA":"SD",TENNESSEE:"TN",TEXAS:"TX",UTAH:"UT",VERMONT:"VT","VIRGIN ISLANDS":"VI",VIRGINIA:"VA",WASHINGTON:"WA","WEST VIRGINIA":"WV",WISCONSIN:"WI",WYOMING:"WY","ARMED FORCES IN EUROPE":"AE","ARMED FORCES IN THE PACIFIC":"AP","ARMED FORCES IN THE AMERICAS":"AA"}};GPAddressParser.prototype.trimEnd=function(b){return b.replace(/[\s\n]+$/,a)};GPAddressParser.prototype.getStatesRegEx=function(){var b=a,c;for(c in this.states)b+=this.states[c]+"|";return b.replace(/\|$/,a)};GPAddressParser.prototype.getStreetSuffixRegEx=function(){var b=a,c;for(c in this.streetSuffixes){if(!b.match(this.streetSuffixes[c]))b+=this.streetSuffixes[c]+"|";b+=c+"|"}return b.replace(/\|$/,a)};GPAddressParser.prototype.parseAddress=function(c){var e="$",d=",?\\s*",f=this,b={},h="[\\dNSEW]+\\.?\\d*(?:-\\w+)?[^,]*$",g="(?!=,)(?:#\\W+\\d+|APA?R?T?M?E?N?T\\W+\\d+|BA?SE?ME?N?T|BU?I?LDI?N?G\\W+\\d+|DEPA?R?T?M?E?N?T\\W+\\d+|FLO?O?R?\\W+\\d+|FRO?NT|HA?NGE?R\\W+\\d+|KEY\\W+\\d+|LO?BBY|LOT\\W+\\d+|LOWE?R|OFF?I?CE?|PE?N?T?HO?U?S?E?|PIER\\W+\\d+|REAR|RO?O?M\\W+\\d+|SIDE|SLIPW+\\d+|SPA?CE?\\W+\\d+|STOP\\W+\\d+|SU?I?TE\\W+\\d+|TRA?I?LE?R\\W+\\d+|UNIT\\W+\\d+|UPPE?R\\W+)$";b.country=a;b.name=a;b.line1=a;b.line2=a;b.city=a;b.state=a;b.zip=a;c=c.replace(/,/g," ").replace(/\./g,a).replace(/\n/g,",");c=f.trimEnd(c.toUpperCase());if(!c.match(/\d{5}(?:-\d{4})?$/)){b.country=c.match(/(?!=,)[\w ]+$/);if(!b.country)b.country=a;c=f.trimEnd(c.replace(new RegExp(d+b.country+e),a))}b.zip=c.match(/\d{5}(?:-\d{4})?$/);if(!b.zip)b.zip=a;c=f.trimEnd(c.replace(new RegExp(d+b.zip+e),a));b.state=c.match("\\b(?:"+f.getStatesRegEx()+")$");if(!b.state)b.state=a;c=f.trimEnd(c.replace(new RegExp(d+b.state+e),a));b.city=c.match(/(?!=,)[\w ]+$/);if(!b.city)b.city=a;c=f.trimEnd(c.replace(new RegExp(d+b.city+e),a));if(c.match(/(?:\b(?:(?:UNIT|PSC|CMR)\s+\d*\s+)?(?:[RHP]\.?[RCO]\.?\s+)?(?:\d+\s+)?BOX\s+\b[\d\w-]+\b)|(?:US(?:CGC|S).*)/)){b.line1=c.match(/(?:\b(?:(?:UNIT|PSC|CMR)\s+\d*\s+)?(?:[RHP]\.?[RCO]\.?\s+)?(?:\d+\s+)?BOX\s+\b[\d\w-]+\b)|(?:US(?:CGC|S).*)/);if(!b.line1)b.line1=a;c=f.trimEnd(c.replace(new RegExp(d+b.line1+e),a))}else if(c.match(g)){b.line2=c.match(g);if(!b.line2)b.line2=a;c=f.trimEnd(c.replace(new RegExp(d+b.line2+e),a));b.line1=c.match(h);if(!b.line1)b.line1=a;c=f.trimEnd(c.replace(new RegExp(d+b.line1+e),a))}else{b.line1=c.match(h);if(!b.line1)b.line1=a;c=f.trimEnd(c.replace(new RegExp(d+b.line1+e),a));if(c.match(g)){b.line2=c.match(g);if(!b.line2)b.line2=a;c=f.trimEnd(c.replace(new RegExp(d+b.line2+e),a))}}b.name=c;return b};b.gpAddressParser=new GPAddressParser};GPUI.prototype.getStyleValue=function(a,b){if(typeof a=="string")a=document.getElementById(a);var c="";if(document.defaultView&&document.defaultView.getComputedStyle)c=document.defaultView.getComputedStyle(a,"").getPropertyValue(b);else if(a.currentStyle){b=b.replace(/\-(\w)/g,function(b,a){return a.toUpperCase()});c=a.currentStyle[b]}return c};GPUI.prototype.iterator=function(f,c,e,d,b,a){if(a&&typeof a=="string")a=document.getElementById(a);if(!a)a=document.body;if(!b)b=this.defaultAnimationLength;document.body.iteratorTimer&&window.clearInterval(document.body.iteratorTimer);var h=(new Date).getTime(),g=e-c,i=this;a.iteratorTimer=window.setInterval(function(){var l=(new Date).getTime(),j=l-h;if(j>=b){window.clearInterval(a.iteratorTimer);f(e);d&&d()}else{var k=parseInt(i.easeOut(j,b,g));f(c+k)}},this.defaultInterval)};GPUI.prototype.easeOut=function(a,c,b){return -b*((a=a/c-1)*a*a*a-1)};GPUI.prototype.showMessage=function(o,h,j){var a="px",f="-",i=this,l=i;if(!h||typeof h!="string")h="information";if(!j||typeof j!="number")j=5;i.showMessageCount++;var n=j*1e3,g,b,c,k,d,e,m=i.defaultAnimationLength;if(window.innerHeight)g=window.innerWidth-6;else if(document.documentElement&&document.documentElement.clientHeight)g=document.documentElement.clientWidth-6;else if(document.body)g=document.body.clientWidth-6;b=document.createElement("div");b.id="gpUI_messageWindow";b.style.zIndex=i.showMessageCount*100+10001;document.forms[0].appendChild(b);c=document.createElement("div");c.id="gpUI_messageBackground";c.className="gpUIMessageWindowBackground";c.style.zIndex=i.showMessageCount*100+1e4;document.forms[0].appendChild(c);if(h=="error"){b.className="gpUIMessageWindowError";c.className="gpUIMessageWindowBackgroundError"}else if(h=="success"){b.className="gpUIMessageWindowSuccess";c.className="gpUIMessageWindowBackgroundSuccess"}else{b.className="gpUIMessageWindowInformation";c.className="gpUIMessageWindowBackgroundInformation"}k=document.createElement("div");k.className="gpUIMessageBody";k.innerHTML=o;b.appendChild(k);e=b.offsetWidth;if(e>g-60){b.style.marginLeft=f+(g-60)/2+a;c.style.marginLeft=f+(g-60)/2+a}else{b.style.marginLeft=f+e/2+a;c.style.marginLeft=f+e/2+a}d=b.offsetHeight;b.style.top=f+(d+10)+a;c.style.top=f+(d+10)+a;b.style.height=d+a;b.style.width=e+a;c.style.height=d+a;c.style.width=e+a;l.iterator(function(d){b.style.top=d+a;c.style.top=d+a},0-d-10,0,function(){window.setTimeout(function(){l.iterator(function(d){b.style.top=d+a;c.style.top=d+a},0,0-d-10,function(){document.forms[0].removeChild(b);document.forms[0].removeChild(c);l.showMessageCount--},m,b)},n)},m,b)};GPUI.prototype.showModalBackground=function(e,c){var g="alpha(opacity=50);",b="px",f=this;if(c==null)c=true;var a=document.createElement("div"),d=0,j,i,h=f.defaultAnimationLength,k=f;if(document.documentElement&&document.documentElement.scrollTop)d=document.documentElement.scrollTop;if(document.body.scrollTop>d)d=document.body.scrollTop;a.id="gpUI_modalBackground";a.style.position="absolute";a.style.top=d+b;a.style.left="0px";a.style.zIndex="100";a.style.margin="0px";a.style.padding="0px";a.style.backgroundColor="#aaa";if(c){a.fadeEffect=true;a.style.opacity="0.00";a.style.filter="alpha(opacity=00);"}else{a.style.opacity="0.50";a.style.filter=g}document.body.appendChild(a);if(document.documentElement)document.documentElement.style.overflow="hidden";else if(document.body)document.body.style.overflow="hidden";if(window.innerWidth)a.style.width=window.innerWidth+b;else if(document.documentElement.clientWidth&&document.documentElement.clientWidth>0)a.style.width=document.documentElement.clientWidth+b;else a.style.width=document.body.clientWidth+b;if(window.innerHeight)a.style.height=window.innerHeight+b;else if(document.documentElement.clientHeight&&document.documentElement.clientHeight>0)a.style.height=document.documentElement.clientHeight+b;else a.style.height=document.body.clientHeight+b;if(c){a.fadeTimer&&window.clearInterval(a.fadeTimer);j=(new Date).getTime();i=50;a.fadeTimer=window.setInterval(function(){var d=(new Date).getTime(),c=d-j,b;if(c>=h){window.clearInterval(a.fadeTimer);a.style.opacity="0.50";a.style.filter=g;e&&e()}else{b=parseInt(k.easeOut(c,h,i));a.style.opacity=b/100;a.style.filter="alpha(opacity="+b+");"}},10)}else e&&e();if(window.addEventListener)window.addEventListener("resize",f.resizeModalBackground,false);else window.attachEvent("onresize",f.resizeModalBackground)};GPUI.prototype.hideModalBackground=function(d){var c="auto",e=this,a=document.getElementById("gpUI_modalBackground"),b,f=e.defaultAnimationLength,i=e;if(a)if(a.fadeEffect){a.fadeTimer&&window.clearInterval(a.fadeTimer);var h=(new Date).getTime(),g=-50;a.fadeTimer=window.setInterval(function(){var k=(new Date).getTime(),j=k-h,e;if(j>=f){window.clearInterval(a.fadeTimer);a.style.opacity="0.00";a.style.filter="alpha(opacity=00);";a.style.width=0;a.style.height=0;if(document.documentElement)document.documentElement.style.overflow=c;document.body.style.overflow=c;b=0;if(document.documentElement&&document.documentElement.scrollTop)b=document.documentElement.scrollTop;if(document.body.scrollTop>b)b=document.body.scrollTop;document.body.scrollTop=b+"px";document.body.removeChild(a);d&&d()}else{e=50+parseInt(i.easeOut(j,f,g));a.style.opacity=e/100;a.style.filter="alpha(opacity="+e+");"}},10)}else{a.style.width=0;a.style.height=0;if(document.documentElement)document.documentElement.style.overflow=c;document.body.style.overflow=c;b=0;if(document.documentElement&&document.documentElement.scrollTop)b=document.documentElement.scrollTop;if(document.body.scrollTop>b)b=document.body.scrollTop;document.body.scrollTop=b+"px";document.body.removeChild(a);d&&d()}if(window.removeEventListener)window.removeEventListener("resize",e.resizeModalBackground,false);else window.detachEvent("onresize",e.resizeModalBackground)};GPUI.prototype.resizeModalBackground=function(){var b="px",a=document.getElementById("gpUI_modalBackground");if(a){if(window.innerWidth)a.style.width=window.innerWidth+b;else if(document.documentElement.clientWidth&&document.documentElement.clientWidth>0)a.style.width=document.documentElement.clientWidth+b;else a.style.width=document.body.clientWidth+b;if(window.innerHeight)a.style.height=window.innerHeight+b;else if(document.documentElement.clientHeight&&document.documentElement.clientHeight>0)a.style.height=document.documentElement.clientHeight+b;else a.style.height=document.body.clientHeight+b}};GPUI.prototype.showWorkingPanel=function(a,i){var h="Working...",d="px",g="absolute";if(typeof a=="string")a=document.getElementById(a);var b=document.createElement("div"),c=document.createElement("div"),e=document.createElement("img"),f;document.body.appendChild(b);b.id="gpUI_workingBackground_"+a.id;b.style.position=g;b.style.textAlign="center";b.style.backgroundColor="#fff";b.style.zIndex="1000";b.opacity="0.5";b.style.filter="alpha(opacity=50)";b.style.top=a.offsetTop+d;b.style.left=a.offsetLeft+d;b.style.height=a.offsetHeight+d;b.style.width=a.offsetWidth+d;document.body.appendChild(c);c.id="gpUI_workingPanel_"+a.id;c.style.position=g;c.style.textAlign="center";c.style.zIndex="1100";c.style.top=a.offsetTop+d;c.style.left=a.offsetLeft+d;c.style.height=a.offsetHeight+d;c.style.lineHeight="12px";c.style.width=a.offsetWidth+d;c.appendChild(e);e.src="images3/workingModal.gif";e.alt=h;e.title=h;e.style.verticalAlign="middle";e.style.marginTop=a.offsetHeight/2-e.offsetHeight/2-6+d;if(i){f=document.createElement("span");c.appendChild(f);f.innerHTML="<br />"+i}};GPUI.prototype.hideWorkingPanel=function(a){if(typeof a=="string")a=document.getElementById(a);var b=document.getElementById("gpUI_workingBackground_"+a.id),c=document.getElementById("gpUI_workingPanel_"+a.id);document.body.removeChild(b);document.body.removeChild(c)};GPUI.prototype.evaluatePassword=function(b){var k="weak",d=false,p="abcdefghijklmnopqrstuvwxyz",n="0123456789",q="ABCDEFGHIJKLMNOPQRSTUVWXYZ",o="!!#$%&,.:-;?@[]^\u02c6_{|}~\u00a1\u00a1\u00a6\u00a6\u00a8\u00a8\u00af\u00af\u00b8\u00b8\u00bf\u00bf\u201a\u201e\u2039\u203a\u203a+<=>\u00b1\u00b1\u00ab\u00ab\u00bb\u00bb\u00d7\u00d7\u00f7\u00f7\u00a2\u00a2\u00a3\u00a3\u00a4\u00a4\u00a5\u00a5\u00a7\u00a7\u00a9\u00a9\u00ac\u00ac\u00ae\u00ae\u00b0\u00b0\u00b5\u00b5\u2020\u2021\u2022\u2026\u2030\u20ac\u00bc\u00bc\u00bd\u00bd\u00be\u00be\u00b9\u00b9\u00b2\u00b2\u00b3\u00b3\u00aa\u00aa\u00c1\u00e1\u00c0\u00e0\u00c2\u00e2\u00c4\u00e4\u00c3\u00e3\u00c5\u00e5\u00c6\u00e6\u00c7\u00e7\u00d0\u00f0\u00c9\u00e9\u00c8\u00e8\u00ca\u00ea\u00cb\u00eb\u0192\u00cd\u00ed\u00cc\u00ec\u00ce\u00ee\u00cf\u00ef\u00d1\u00f1\u00ba\u00ba\u00d3\u00f3\u00d2\u00f2\u00d4\u00f4\u00d6\u00f6\u00d5\u00f5\u00d8\u00f8\u0152\u0153\u0160\u0161\u00df\u00de\u00fe\u2122\u00da\u00fa\u00d9\u00f9\u00db\u00fb\u00dc\u00fc\u00dd\u00fd\u0178\u00ff\u017d\u017e",m="()*'`\u00b4\u2018\u2019\u201c\"\u201d\u00b6\u00b7/\\",h=d,f=d,i=d,g=d,e=d,c=0,a,j,l;if(b*1==b)return k;for(j=0,l=b.length;j<l;j++){if(h&&f&&g&&i||e)break;a=b.charAt(j);if(!e)e=m.indexOf(a)>-1;if(!h)h=p.indexOf(a)>-1;if(!f)f=n.indexOf(a)>-1;if(!g)g=o.indexOf(a)>-1;if(!i)i=q.indexOf(a)>-1}if(e)return "illegal";if(b.length<4)return k;if(h)c++;if(f)c++;if(g)c++;if(i)c++;if(b.length>=8)c++;switch(c){case 0:case 1:case 2:return k;break;case 3:return "medium";break;case 4:case 5:return "strong"}};GPUI.prototype.getElementPosition=function(a,e){var d="bottom",c="right";if(typeof a=="string")a=document.getElementById(a);if(a==null)return;var b=0;switch(e){case c:b+=a.offsetWidth;break;case d:b+=a.offsetHeight}if(a.offsetParent)while(true){switch(e){case "top":b+=a.offsetTop;break;case c:b+=a.offsetLeft;break;case d:b+=a.offsetTop;break;case "left":b+=a.offsetLeft}if(!a.offsetParent)break;a=a.offsetParent}else switch(e){case "top":if(a.y)b+=a.y;break;case c:if(a.x)b+=a.x;break;case d:if(a.y)b+=a.y;break;case "left":if(a.x)b+=a.x}return b};GPUI.prototype.getElementTop=function(a){return this.getElementPosition(a,"top")};GPUI.prototype.getElementRight=function(a){return this.getElementPosition(a,"right")};GPUI.prototype.getElementBottom=function(a){return this.getElementPosition(a,"bottom")};GPUI.prototype.getElementLeft=function(a){return this.getElementPosition(a,"left")};var gpUI=new GPUI