var GPUI=function(){this.version="1.0.2";this.defaultAnimationLength=300;this.showMessageCount=0;this.showAlertCount=0;this.defaultInterval=10;GPAddressParser=function(){this.streetSuffixes={ALLEE:"ALY",ALLEY:"ALY",ALLY:"ALY",ANEX:"ANX",ANNEX:"ANX",ANNX:"ANX",ARCADE:"ARC",AV:"AVE",AVEN:"AVE",AVENU:"AVE",AVENUE:"AVE",AVN:"AVE",AVNUE:"AVE",BAYOO:"BYU",BAYOU:"BYU",BEACH:"BCH",BEND:"BND",BLUF:"BLF",BLUFF:"BLF",BLUFFS:"BLFS",BOT:"BTM",BOTTM:"BTM",BOTTOM:"BTM",BOUL:"BLVD",BOULEVARD:"BLVD",BOULV:"BLVD",BRANCH:"BR",BRDGE:"BRG",BRIDGE:"BRG",BRNCH:"BR",BROOK:"BRK",BROOKS:"BRKS",BURG:"BG",BURGS:"BGS",BYPA:"BYP",BYPAS:"BYP",BYPASS:"BYP",BYPS:"BYP",CAMP:"CP",CANYN:"CYN",CANYON:"CYN",CAPE:"CPE",CAUSEWAY:"CSWY",CAUSWAY:"CSWY",CEN:"CTR",CENT:"CTR",CENTER:"CTR",CENTERS:"CTRS",CENTR:"CTR",CENTRE:"CTR",CIRC:"CIR",CIRCL:"CIR",CIRCLE:"CIR",CIRCLES:"CIRS",CK:"CRK",CLIFF:"CLF",CLIFFS:"CLFS",CLUB:"CLB",CMP:"CP",CNTER:"CTR",CNTR:"CTR",CNYN:"CYN",COMMON:"CMN",CORNER:"COR",CORNERS:"CORS",COURSE:"CRSE",COURT:"CT",COURTS:"CTS",COVE:"CV",COVES:"CVS",CR:"CRK",CRCL:"CIR",CRCLE:"CIR",CRECENT:"CRES",CREEK:"CRK",CRESCENT:"CRES",CRESENT:"CRES",CREST:"CRST",CROSSING:"XING",CROSSROAD:"XRD",CRSCNT:"CRES",CRSENT:"CRES",CRSNT:"CRES",CRSSING:"XING",CRSSNG:"XING",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:"EXPY",EXPR:"EXPY",EXPRESS:"EXPY",EXPRESSWAY:"EXPY",EXPW:"EXPY",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:"FWY",FREEWY:"FWY",FRRY:"FRY",FRT:"FT",FRWAY:"FWY",FRWY:"FWY",GARDEN:"GDN",GARDENS:"GDNS",GARDN:"GDN",GATEWAY:"GTWY",GATEWY:"GTWY",GATWAY:"GTWY",GLEN:"GLN",GLENS:"GLNS",GRDEN:"GDN",GRDN:"GDN",GRDNS:"GDNS",GREEN:"GRN",GREENS:"GRNS",GROV:"GRV",GROVE:"GRV",GROVES:"GRVS",GTWAY:"GTWY",HARB:"HBR",HARBOR:"HBR",HARBORS:"HBRS",HARBR:"HBR",HAVEN:"HVN",HAVN:"HVN",HEIGHT:"HTS",HEIGHTS:"HTS",HGTS:"HTS",HIGHWAY:"HWY",HIGHWY:"HWY",HILL:"HL",HILLS:"HLS",HIWAY:"HWY",HIWY:"HWY",HLLW:"HOLW",HOLLOW:"HOLW",HOLLOWS:"HOLW",HOLWS:"HOLW",HRBOR:"HBR",HT:"HTS",HWAY:"HWY",INLET:"INLT",ISLAND:"IS",ISLANDS:"ISS",ISLES:"ISLE",ISLND:"IS",ISLNDS:"ISS",JCTION:"JCT",JCTN:"JCT",JCTNS:"JCTS",JUNCTION:"JCT",JUNCTIONS:"JCTS",JUNCTN:"JCT",JUNCTON:"JCT",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:"MTN",MNTN:"MTN",MNTNS:"MTNS",MOTORWAY:"MTWY",MOUNT:"MT",MOUNTAIN:"MTN",MOUNTAINS:"MTNS",MOUNTIN:"MTN",MSSN:"MSN",MTIN:"MTN",NECK:"NCK",ORCHARD:"ORCH",ORCHRD:"ORCH",OVERPASS:"OPAS",OVL:"OVAL",PARKS:"PARK",PARKWAY:"PKWY",PARKWAYS:"PKWY",PARKWY:"PKWY",PASSAGE:"PSGE",PATHS:"PATH",PIKES:"PIKE",PINE:"PNE",PINES:"PNES",PK:"PARK",PKWAY:"PKWY",PKWYS:"PKWY",PKY:"PKWY",PLACE:"PL",PLAIN:"PLN",PLAINES:"PLNS",PLAINS:"PLNS",PLAZA:"PLZ",PLZA:"PLZ",POINT:"PT",POINTS:"PTS",PORT:"PRT",PORTS:"PRTS",PRAIRIE:"PR",PRARIE:"PR",PRK:"PARK",PRR:"PR",RAD:"RADL",RADIAL:"RADL",RADIEL:"RADL",RANCH:"RNCH",RANCHES:"RNCH",RAPID:"RPD",RAPIDS:"RPDS",RDGE:"RDG",REST:"RST",RIDGE:"RDG",RIDGES:"RDGS",RIVER:"RIV",RIVR:"RIV",RNCHS:"RNCH",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:"SPGS",SPRING:"SPG",SPRINGS:"SPGS",SPRNG:"SPG",SPRNGS:"SPGS",SPURS:"SPUR",SQR:"SQ",SQRE:"SQ",SQRS:"SQS",SQU:"SQ",SQUARE:"SQ",SQUARES:"SQS",STATION:"STA",STATN:"STA",STN:"STA",STR:"ST",STRAV:"STRA",STRAVE:"STRA",STRAVEN:"STRA",STRAVENUE:"STRA",STRAVN:"STRA",STREAM:"STRM",STREET:"ST",STREETS:"STS",STREME:"STRM",STRT:"ST",STRVN:"STRA",STRVNUE:"STRA",SUMIT:"SMT",SUMITT:"SMT",SUMMIT:"SMT",TERR:"TER",TERRACE:"TER",THROUGHWAY:"TRWY",TPK:"TPKE",TR:"TRL",TRACE:"TRCE",TRACES:"TRCE",TRACK:"TRAK",TRACKS:"TRAK",TRAFFICWAY:"TRFY",TRAIL:"TRL",TRAILS:"TRL",TRK:"TRAK",TRKS:"TRAK",TRLS:"TRL",TRNPK:"TPKE",TRPK:"TPKE",TUNEL:"TUNL",TUNLS:"TUNL",TUNNEL:"TUNL",TUNNELS:"TUNL",TUNNL:"TUNL",TURNPIKE:"TPKE",TURNPK:"TPKE",UNDERPASS:"UPAS",UNION:"UN",UNIONS:"UNS",VALLEY:"VLY",VALLEYS:"VLYS",VALLY:"VLY",VDCT:"VIA",VIADCT:"VIA",VIADUCT:"VIA",VIEW:"VW",VIEWS:"VWS",VILL:"VLG",VILLAG:"VLG",VILLAGE:"VLG",VILLAGES:"VLGS",VILLE:"VL",VILLG:"VLG",VILLIAGE:"VLG",VIST:"VIS",VISTA:"VIS",VLLY:"VLY",VST:"VIS",VSTA:"VIS",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":"PR","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(a){return a.replace(/[\s\n]+$/,"")};GPAddressParser.prototype.trimBeginning=function(a){return a.replace(/^[\s\n]+/,"")};GPAddressParser.prototype.trim=function(a){return a.replace(/^[\s\n]+|[\s\n]+$/,"")};GPAddressParser.prototype.getStatesRegEx=function(){var a="",b;for(b in this.states)a+=this.states[b]+"|";return a.replace(/\|$/,"")};GPAddressParser.prototype.getStreetSuffixRegEx=function(){var a="",b;for(b in this.streetSuffixes){if(!a.match(this.streetSuffixes[b]))a+=this.streetSuffixes[b]+"|";a+=b+"|"}return a.replace(/\|$/,"")};GPAddressParser.prototype.parseAddress=function(b){var a={},d="[\\dNSEW]+\\.?\\d*(?:-\\w+)?[^,]*$",c="(?!=,)(?:#\\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+)$";a.country="";a.name="";a.line1="";a.line2="";a.city="";a.state="";a.zip="";b=b.replace(/,/g," ").replace(/\./g,"").replace(/\n/g,",");b=this.trimEnd(b.toUpperCase());if(!b.match(/\d{5}(?:-\d{4})?$/)){a.country=b.match(/(?!=,)[\w ]+$/);if(!a.country)a.country="";b=this.trimEnd(b.replace(new RegExp(",?\\s*"+a.country+"$"),""))}a.zip=b.match(/\d{5}(?:-\d{4})?$/);if(!a.zip)a.zip="";b=this.trimEnd(b.replace(new RegExp(",?\\s*"+a.zip+"$"),""));a.state=b.match("\\b(?:"+this.getStatesRegEx()+")$");if(!a.state)a.state="";b=this.trimEnd(b.replace(new RegExp(",?\\s*"+a.state+"$"),""));a.city=b.match(/(?!=,)[\w ]+$/);if(!a.city)a.city="";b=this.trimEnd(b.replace(new RegExp(",?\\s*"+a.city+"$"),""));if(b.match(/(?:\b(?:(?:UNIT|PSC|CMR)\s+\d*\s+)?(?:[RHP]\.?[RCO]\.?\s+)?(?:\d+\s+)?BOX\s+\b[\d\w-]+\b)|(?:US(?:CGC|S).*)/)){a.line1=b.match(/(?:\b(?:(?:UNIT|PSC|CMR)\s+\d*\s+)?(?:[RHP]\.?[RCO]\.?\s+)?(?:\d+\s+)?BOX\s+\b[\d\w-]+\b)|(?:US(?:CGC|S).*)/);if(!a.line1)a.line1="";b=this.trimEnd(b.replace(new RegExp(",?\\s*"+a.line1+"$"),""))}else if(b.match(c)){a.line2=b.match(c);if(!a.line2)a.line2="";b=this.trimEnd(b.replace(new RegExp(",?\\s*"+a.line2+"$"),""));a.line1=b.match(d);if(!a.line1)a.line1="";b=this.trimEnd(b.replace(new RegExp(",?\\s*"+a.line1+"$"),""))}else{a.line1=b.match(d);if(!a.line1)a.line1="";b=this.trimEnd(b.replace(new RegExp(",?\\s*"+a.line1+"$"),""));if(b.match(c)){a.line2=b.match(c);if(!a.line2)a.line2="";b=this.trimEnd(b.replace(new RegExp(",?\\s*"+a.line2+"$"),""))}}a.name=b;if(a.name==""&&a.line1=="")if(a.city!=""){a.name=a.city;a.city="";a.line1=a.country;a.country=""}else if(a.country!=""){a.name=a.country;a.country=""}return a};this.gpAddressParser=new GPAddressParser};GPUI.prototype.trimStart=function(a){return a.replace(/^[\s\n]+/,"")};GPUI.prototype.trimEnd=function(a){return a.replace(/[\s\n]+$/,"")};GPUI.prototype.trim=function(a){return this.trimEnd(this.trimStart(a))};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(l,f,g){var i=this;if(!f||typeof f!="string")f="information";if(!g||typeof g!="number")g=10;this.showMessageCount++;var k=g*1e3,e,a,b,h,c,d,j=this.defaultAnimationLength;if(window.innerHeight)e=window.innerWidth-6;else if(document.documentElement&&document.documentElement.clientHeight)e=document.documentElement.clientWidth-6;else if(document.body)e=document.body.clientWidth-6;a=document.createElement("div");a.id="gpUI_messageWindow";a.style.zIndex=this.showMessageCount*100+10001;document.forms[0].appendChild(a);b=document.createElement("div");b.id="gpUI_messageBackground";b.className="gpUIMessageWindowBackground";b.style.zIndex=this.showMessageCount*100+1e4;document.forms[0].appendChild(b);if(f=="error"){a.className="gpUIMessageWindowError";b.className="gpUIMessageWindowBackgroundError"}else if(f=="success"){a.className="gpUIMessageWindowSuccess";b.className="gpUIMessageWindowBackgroundSuccess"}else{a.className="gpUIMessageWindowInformation";b.className="gpUIMessageWindowBackgroundInformation"}h=document.createElement("div");h.className="gpUIMessageBody";h.innerHTML=l;a.appendChild(h);d=a.offsetWidth;if(d>e-60){d=e-60;a.style.marginLeft="-"+(e-60)/2+"px";b.style.marginLeft="-"+(e-60)/2+"px"}else{a.style.marginLeft="-"+d/2+"px";b.style.marginLeft="-"+d/2+"px"}c=a.offsetHeight;a.style.top="-"+(c+10)+"px";b.style.top="-"+(c+10)+"px";a.style.height=c+"px";a.style.width=d+"px";b.style.height=c+"px";b.style.width=d+"px";a.style.left="50%";b.style.left="50%";i.iterator(function(c){a.style.top=c+"px";b.style.top=c+"px"},0-c-10,0,function(){window.setTimeout(function(){i.iterator(function(c){a.style.top=c+"px";b.style.top=c+"px"},0,0-c-10,function(){document.forms[0].removeChild(a);document.forms[0].removeChild(b);i.showMessageCount--},j,a)},k)},j,a)};GPUI.prototype.showAlert=function(n,h,m){this.showAlertCount==0&&this.showModalBackground();var l=this;if(!h||typeof h!="string")h="information";this.showAlertCount++;var f,e,a,b,j,d,c,o=this.defaultAnimationLength,i,g,k;if(window.innerHeight){f=window.innerWidth-6;e=window.innerHeight-6}else if(document.documentElement&&document.documentElement.clientHeight){f=document.documentElement.clientWidth-6;e=document.documentElement.clientHeight-6}else if(document.body){f=document.body.clientWidth-6;e=document.body.clientHeight-6}a=document.createElement("div");a.id="gpUI_alertWindow";a.style.zIndex=this.showAlertCount*100+10001;document.forms[0].appendChild(a);b=document.createElement("div");b.id="gpUI_alertBackground";b.className="gpUIAlertWindowBackground";b.style.zIndex=this.showAlertCount*100+1e4;document.forms[0].appendChild(b);if(h=="error"){a.className="gpUIAlertWindowError";b.className="gpUIAlertWindowBackgroundError"}else if(h=="success"){a.className="gpUIAlertWindowSuccess";b.className="gpUIAlertWindowBackgroundSuccess"}else{a.className="gpUIAlertWindowInformation";b.className="gpUIAlertWindowBackgroundInformation"}j=document.createElement("div");j.className="gpUIAlertBody";j.innerHTML=n;a.appendChild(j);i=document.createElement("div");i.className="gpUIAlertWindowButtonPanel";a.appendChild(i);g=document.createElement("div");if(m)g.className=m+" noFloat";else g.className="closeButtonSM noFloat";g.style.width="79px";g.style.margin="0 auto";i.appendChild(g);k=document.createElement("a");k.setAttribute("href","");g.appendChild(k);k.onclick=function(){this.blur();l.showAlertCount--;document.forms[0].removeChild(document.getElementById("gpUI_alertWindow"));document.forms[0].removeChild(document.getElementById("gpUI_alertBackground"));l.showAlertCount==0&&l.hideModalBackground();return false};c=a.offsetWidth;if(c<100){c=100;a.style.width="100px";b.style.width="100px"}if(c>f-60){c=f-60;a.style.marginLeft="-"+(f-60)/2+"px";b.style.marginLeft="-"+(f-60)/2+"px"}else{a.style.marginLeft="-"+c/2+"px";b.style.marginLeft="-"+c/2+"px"}d=a.offsetHeight+30;if(d>e-60){d=e-60;a.style.marginTop="-"+(e-60)/2+"px";b.style.marginTop="-"+(e-60)/2+"px"}else{a.style.marginTop="-"+d/2+"px";b.style.marginTop="-"+d/2+"px"}a.style.height=d+"px";a.style.width=c+"px";b.style.height=d+"px";b.style.width=c+"px";a.style.top="50%";b.style.top="50%";a.style.left="50%";b.style.left="50%"};GPUI.prototype.showModalBackground=function(d,b){if(!document.getElementById("gpUI_modalBackground")){if(b==null)b=true;var a=document.createElement("div"),c=0,g,f,e=this.defaultAnimationLength,h=this;if(document.documentElement&&document.documentElement.scrollTop)c=document.documentElement.scrollTop;if(document.body.scrollTop>c)c=document.body.scrollTop;a.id="gpUI_modalBackground";a.style.position="absolute";a.style.top=c+"px";a.style.left="0px";a.style.zIndex="100";a.style.margin="0px";a.style.padding="0px";a.style.backgroundColor="#aaa";if(b){a.fadeEffect=true;a.style.opacity="0.00";a.style.filter="alpha(opacity=00);"}else{a.style.opacity="0.50";a.style.filter="alpha(opacity=50);"}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+"px";else if(document.documentElement.clientWidth&&document.documentElement.clientWidth>0)a.style.width=document.documentElement.clientWidth+"px";else a.style.width=document.body.clientWidth+"px";if(window.innerHeight)a.style.height=window.innerHeight+"px";else if(document.documentElement.clientHeight&&document.documentElement.clientHeight>0)a.style.height=document.documentElement.clientHeight+"px";else a.style.height=document.body.clientHeight+"px";if(b){a.fadeTimer&&window.clearInterval(a.fadeTimer);g=(new Date).getTime();f=50;a.fadeTimer=window.setInterval(function(){var i=(new Date).getTime(),c=i-g,b;if(c>=e){window.clearInterval(a.fadeTimer);a.style.opacity="0.50";a.style.filter="alpha(opacity=50);";d&&d()}else{b=parseInt(h.easeOut(c,e,f));a.style.opacity=b/100;a.style.filter="alpha(opacity="+b+");"}},10)}else d&&d();if(window.addEventListener)window.addEventListener("resize",this.resizeModalBackground,false);else window.attachEvent("onresize",this.resizeModalBackground)}};GPUI.prototype.hideModalBackground=function(c){var a=document.getElementById("gpUI_modalBackground"),b,d=this.defaultAnimationLength,g=this;if(a)if(a.fadeEffect){a.fadeTimer&&window.clearInterval(a.fadeTimer);var f=(new Date).getTime(),e=-50;a.fadeTimer=window.setInterval(function(){var j=(new Date).getTime(),i=j-f,h;if(i>=d){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="auto";document.body.style.overflow="auto";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);c&&c()}else{h=50+parseInt(g.easeOut(i,d,e));a.style.opacity=h/100;a.style.filter="alpha(opacity="+h+");"}},10)}else{a.style.width=0;a.style.height=0;if(document.documentElement)document.documentElement.style.overflow="auto";document.body.style.overflow="auto";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);c&&c()}if(window.removeEventListener)window.removeEventListener("resize",this.resizeModalBackground,false);else window.detachEvent("onresize",this.resizeModalBackground)};GPUI.prototype.resizeModalBackground=function(){var a=document.getElementById("gpUI_modalBackground");if(a){if(window.innerWidth)a.style.width=window.innerWidth+"px";else if(document.documentElement.clientWidth&&document.documentElement.clientWidth>0)a.style.width=document.documentElement.clientWidth+"px";else a.style.width=document.body.clientWidth+"px";if(window.innerHeight)a.style.height=window.innerHeight+"px";else if(document.documentElement.clientHeight&&document.documentElement.clientHeight>0)a.style.height=document.documentElement.clientHeight+"px";else a.style.height=document.body.clientHeight+"px"}};GPUI.prototype.showWorkingMessage=function(c){if(!document.getElementById("gpUI_workingPanel")){var a=document.createElement("div"),d=document.createElement("img"),b;this.showModalBackground();document.body.appendChild(a);a.id="gpUI_workingPanel";a.className="rounded shadowed";a.style.position="absolute";a.style.textAlign="center";a.style.zIndex="1100";a.style.top="50%";a.style.left="50%";a.style.height="100px";a.style.lineHeight="12px";a.style.width="100px";a.style.background="#fbfdff url('images/workingModal.gif') no-repeat center 20px";a.style.border="solid 1px #9cd4f9";a.style.color="#20526e";a.style.opacity="0.9";a.style.filter="alpha(opacity=90), progid:DXImageTransform.Microsoft.dropShadow(color=#22000000, offX=5, offY=5,  positive=true)";a.style.margin="-50px 0 0 -50px";if(c){b=document.createElement("div");b.style.padding="57px 5px 5px";a.appendChild(b);b.innerHTML=c}}};GPUI.prototype.hideWorkingMessage=function(){var a=document.getElementById("gpUI_workingPanel");if(a){this.hideModalBackground();document.body.removeChild(a)}};GPUI.prototype.showWorkingPanel=function(a,f){if(typeof a=="string")a=document.getElementById(a);var b=document.createElement("div"),c=document.createElement("div"),d=document.createElement("img"),e;document.body.appendChild(b);b.id="gpUI_workingBackground_"+a.id;b.style.position="absolute";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+"px";b.style.left=a.offsetLeft+"px";b.style.height=a.offsetHeight+"px";b.style.width=a.offsetWidth+"px";document.body.appendChild(c);c.id="gpUI_workingPanel_"+a.id;c.style.position="absolute";c.style.textAlign="center";c.style.zIndex="1100";c.style.top=a.offsetTop+"px";c.style.left=a.offsetLeft+"px";c.style.height=a.offsetHeight+"px";c.style.lineHeight="12px";c.style.width=a.offsetWidth+"px";c.appendChild(d);d.src="images3/workingModal.gif";d.alt="Working...";d.title="Working...";d.style.verticalAlign="middle";d.style.marginTop=a.offsetHeight/2-d.offsetHeight/2-6+"px";if(f){e=document.createElement("span");c.appendChild(e);e.innerHTML="<br />"+f}};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 n="abcdefghijklmnopqrstuvwxyz",l="0123456789",o="ABCDEFGHIJKLMNOPQRSTUVWXYZ",m="!!#$%&,.:-;?@[]^\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",k="()*'`\u00b4\u2018\u2019\u201c\"\u201d\u00b6\u00b7/\\",g=false,e=false,h=false,f=false,d=false,c=0,a,i,j;if(b*1==b)return"weak";for(i=0,j=b.length;i<j;i++){if(g&&e&&f&&h||d)break;a=b.charAt(i);if(!d)d=k.indexOf(a)>-1;if(!g)g=n.indexOf(a)>-1;if(!e)e=l.indexOf(a)>-1;if(!f)f=m.indexOf(a)>-1;if(!h)h=o.indexOf(a)>-1}if(d)return"illegal";if(b.length<4)return"weak";if(g)c++;if(e)c++;if(f)c++;if(h)c++;if(b.length>=8)c++;switch(c){case 0:case 1:case 2:return"weak";break;case 3:return"medium";break;case 4:case 5:return"strong"}};GPUI.prototype.getElementPosition=function(a,c){if(typeof a=="string")a=document.getElementById(a);if(a==null)return;var b=0;switch(c){case"right":b+=a.offsetWidth;break;case"bottom":b+=a.offsetHeight}if(a.offsetParent)while(true){switch(c){case"top":b+=a.offsetTop;break;case"right":b+=a.offsetLeft;break;case"bottom":b+=a.offsetTop;break;case"left":b+=a.offsetLeft}if(!a.offsetParent)break;a=a.offsetParent}else switch(c){case"top":if(a.y)b+=a.y;break;case"right":if(a.x)b+=a.x;break;case"bottom":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")};GPUI.prototype.isValidEmail=function(a){return a==""?true:a.match(/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$/)!=null};GPUI.prototype.contains=function(b,d){for(var a=0,c=b.length;a<c;a++)if(b[a]===d)return a;return-1};GPUI.prototype.createTextInput=function(e,d,c,b){if(!b)b="";var a;a=document.createElement("input");a.type="text";a.id=e;if(b!=""&&d==""){a.value=b;a.className=c+" emptyInput"}else{a.value=d;a.className=c}a.onfocus=function(){if(this.value==b){this.value="";this.className=c}if(this.value!="")if(this.createTextRange){var a=this.createTextRange();a.findText(this.value);a.select()}else if(this.setSelectionRange)this.setSelectionRange(0,this.value.length);else this.select()};a.onblur=function(){if(this.value==""||this.value==b){this.className=c+" emptyInput";this.value=b}};return a};GPUI.prototype.cleanString=function(b){var a=b;a=a.replace(/\\/g,"\\\\");a=a.replace(/'/g,"\\'");a=a.replace(/</g,"");a=a.replace(/>/g,"");return a};GPUI.prototype.filterUnsafeCharacters=function(b){var c=b.which?b.which:event.keyCode,a;if(c==13)return false;a=String.fromCharCode(c);return a=="<"||a==">"?false:true};GPUI.prototype.addClass=function(a,b){var c=new RegExp("(^| )"+b+"( |$)");if(!c.test(a.className))a.className+=" "+b};GPUI.prototype.removeClass=function(a,c){var b=new RegExp("(^| )"+c+"( |$)");a.className=a.className.replace(b," ").replace(/^\s+|\s+$/g,"")};GPUI.prototype.createElement=function(c){var b=document.createElement("div"),a;b.innerHTML=c;a=b.firstChild;b.removeChild(a);return a};GPUI.prototype.attachEvent=function(a,b,c){if(a.addEventListener)a.addEventListener(b,c,false);else a.attachEvent&&a.attachEvent("on"+b,c)};GPUI.prototype.detachEvent=function(a,b,c){if(a.removeEventListener)a.removeEventListener(b,c,false);else a.attachEvent&&a.detachEvent("on"+b,c)};var gpUI=new GPUI
