
Type.createNamespace('Windex');Windex.$create_LocatorSelect=function(){return {};}
Windex.$create_LocatorEntry=function(){return {};}
Windex.$create_StateSelect=function(){return {};}
Windex.$create_FormSelect=function(){return {};}
Windex.$create_NotifyPackage=function(){return {};}
Windex.$create_LatLong=function(){return {};}
Type.createNamespace('Windex.Locator');Windex.Locator.FormLocator=function(element,attributes){this.blankState=document.createElement('option');this.distances=['5','10','20','50','100'];Windex.Locator.FormLocator.constructBase(this,[element,'FormLocator']);var $0=ScriptLib.NameValueCollection.fromJSON(attributes);var $1=$0.get_item('unit');this.searchType=$0.get_item('searchtype');this.showMap=($0.get_item('showmap'))==='Yes';this.staticSearch=$0.get_item('staticsearch');var $2=$0.get_item('pagesize');if($2===''){}else if($2==='All'){this.pageSize=-1;}else{this.pageSize=Number.parse($2);}switch(this.searchType){case 'Full':break;case 'City':this.showAddress=false;this.showPostal=false;this.showDirections=false;this.showRange=false;this.showMap=false;break;case 'State':this.showAddress=false;this.showCity=false;this.showPostal=false;this.showDirections=false;this.showRange=false;this.showMap=false;break;case 'Postal':this.showAddress=false;this.showCity=false;this.showState=false;this.showInCity=false;this.showInState=false;break;case 'Static':this.showTop=false;this.showMap=false;this.showSearch=false;break;}var $3=$0.get_item('category');if($3!=='0:All'){var $6=$3.split(';');if($6.length>0){this.category=Kenwood.Kenworld.GT.fromString($6[0]);this.showLine=false;}if($6.length>1){this.subcategory=Kenwood.Kenworld.GT.fromString($6[1]);this.showType=false;}if(!this.searchType.compareTo('State')&&$6.length===1){this.companies=new Array($6.length);for(var $7=0;$7<$6.length;$7++){var $8=Windex.$create_LocatorSelect();var $9=Kenwood.Kenworld.GT.fromString($6[$7]);$8.Company=$9;var $A=$0.get_item('businesstype');var $B=null;if($A.length>0){var $C=$A.split(',');$B=new Array($C.length);for(var $D=0;$D<$C.length;$D++){var $E=$C[$D];var $F=$E.indexOf(':');$E=$E.substring($F+1,$E.length);$9=Kenwood.Kenworld.GT.fromString($E);$B[$D]=$9;}}$8.Types=$B;this.companies[$7]=$8;}}}Interop.Google.GoogleMaps.load('maps','2',Delegate.create(this,this.api_onload));Windex.Locator.FormLocator.$1_0[Windex.Locator.FormLocator.$1_0.length]=this;this.clientID=Windex.Util.getRandomId();switch($1){case 'K':case 'km':$1='K';break;case 'M':case 'mi':$1='M';break;default:throw new Error('Invalid unit: '+$1);}this.unit=$1;var $4=Windex.Locator.FormLocator.formHtml;$4=Replace($4,'{id}',this.clientID);element.innerHTML=$4;this.$1_1=new Windex.TabControl(this.gc('tabs'));this.$1_1.set_height(Windex.Skin.get_theme().tabHeight+1);this.$1_1.set_width(450);this.$1_1.set_selectedIndex(0);this.tabSearch=this.$1_1.get_tabPages().getItem(0);this.tabSearch.get_domElement().attachEvent('onkeydown',Delegate.create(this,this.tabSearch_onkeydown));if(!this.showSearch){this.tabSearch.set_visible(false);}this.$1_2=this.$1_1.get_tabPages().getItem(1);this.$1_2.set_visible(false);this.$1_3=this.gc('info');this.lblAddress=new ScriptFX.UI.Label(this.gc('lblAddress'));this.txtAddress=new ScriptFX.UI.TextBox(this.gc('address'));if(!this.showAddress){this.lblAddress.get_domElement().parentNode.parentNode.style.display='none';}this.lblCsp=new ScriptFX.UI.Label(this.gc('lblCsp'));this.txtCity=new ScriptFX.UI.TextBox(this.gc('city'));this.lstState=this.gc('state');this.txtPostal=new ScriptFX.UI.TextBox(this.gc('postal'));if(!this.showCity){this.txtCity.get_domElement().style.display='none';}if(!this.showState){this.lstState.style.display='none';}if(!this.showPostal){this.txtPostal.get_domElement().style.display='none';}this.lblSector=new ScriptFX.UI.Label(this.gc('lblSector'));this.lstSector=this.gc('sector');if(!this.showLine){this.lblSector.get_domElement().parentNode.parentNode.style.display='none';}this.lblType=new ScriptFX.UI.Label(this.gc('lblType'));this.lstType=this.gc('type');if(!this.showType){this.lblType.get_domElement().parentNode.parentNode.style.display='none';}this.lblList=new ScriptFX.UI.Label(this.gc('lblList'));this.lstRange=this.gc('listRange');if(!this.showRange){this.lblList.get_domElement().parentNode.parentNode.style.display='none';}this.cmdSearch=this.gc('cmdSearch');this.cmdSearch.attachEvent('onclick',Delegate.create(this,this.$1_11));this.$1_8=new Windex.LinkList(this.gc('infoLinks'));this.$1_9=Windex.LinkListItem.createButton('{getdirections}',Delegate.create(this,this.cmdGetDirections_onclick));this.$1_8.get_links().add(this.$1_9);this.$1_A=Windex.LinkListItem.createButton('{backtosearch}',Delegate.create(this,this.cmdBackToSearch_onclick));this.$1_8.get_links().add(this.$1_A);if(!this.showSearch){this.$1_A.set_visible(false);}this.$1_B=new Windex.LinkListItem(document.createElement('a'));this.$1_B.set_visible(false);(this.$1_B.get_domElement()).target='_blank';this.$1_8.get_links().add(this.$1_B);this.iframe=this.gc('iframe');this.mapDiv=this.gc('mapDiv');if(!this.showMap){this.mapDiv.style.display='none';}this.$1_5=new Windex.TabControl(this.gc('tabs2'));this.$1_5.set_formStyle(false);this.$1_5.set_showTabs(false);this.tabIframe=this.$1_5.get_tabPages().getItem(0);this.tabLoading=this.$1_5.get_tabPages().getItem(1);this.tabDirections=this.$1_5.get_tabPages().getItem(2);this.get_domElement().style.visibility='hidden';var $5={};$5['unit']=$1;Windex.Ajax.callAjax('/ScriptServices/LocatorAjax.asmx','GetFormSelect',$5,null,Delegate.create(this,this.$1_F),Delegate.create(this,this.$1_10));this.set_width(ScriptLib.Convert.toInt32($0.get_item('width')));if(!this.showTop){this.gc('topRow').style.display='none';}if(this.searchType==='Static'){var $10=ScriptLib.NameValueCollection.fromCSS($0.get_item('staticsearch'));var $enum1=$10.getKeys().getEnumerator();while($enum1.moveNext()){var $11=$enum1.get_current();switch($11.toLowerCase()){case 'range':switch(($10.get_item($11)).toLowerCase()){case 's':case 'state':this.rangeVal='S';break;case 'city':case 'c':this.rangeVal='C';break;default:this.rangeVal=$10.get_item($11);break;}break;case 'address':this.txtAddress.set_text($10.get_item($11));break;case 'city':this.txtCity.set_text($10.get_item($11));break;case 'state':this.stateVal=$10.get_item($11);break;case 'postal':this.txtPostal.set_text($10.get_item($11));break;}}this.cmdSearch.click();}}
Windex.Locator.FormLocator.create=function(attributes){var $0=document.createElement('div');return new Windex.Locator.FormLocator($0,attributes);}
Windex.Locator.FormLocator.notify=function(notify,doc){var $enum1=Windex.Locator.FormLocator.$1_0.getEnumerator();while($enum1.moveNext()){var $0=$enum1.get_current();$0.$1_14(notify,doc);}}
Windex.Locator.FormLocator.notifyUnload=function(){var $enum1=Windex.Locator.FormLocator.$1_0.getEnumerator();while($enum1.moveNext()){var $0=$enum1.get_current();$0.$1_12();}}
Windex.Locator.FormLocator.prototype={clientID:null,lblAddress:null,txtAddress:null,lblCsp:null,txtCity:null,lstState:null,txtPostal:null,lblSector:null,lstSector:null,lblType:null,lstType:null,lblList:null,mapDiv:null,tabIframe:null,tabLoading:null,tabDirections:null,$1_1:null,tabSearch:null,$1_2:null,$1_3:null,$1_4:null,$1_5:null,ico:null,originIco:null,lstRange:null,cmdSearch:null,iframe:null,$1_6:null,$1_7:null,anchors:null,markerEvents:null,originMarker:null,$1_8:null,$1_9:null,$1_A:null,$1_B:null,$1_C:null,listCount:null,$1_D:null,unit:null,dir:null,gc:function($p0){return $(this.clientID+'_'+$p0);},api_onload:function(){this.ico=new google.maps.Icon();this.ico.image='/images/maps/marker.png';this.ico.iconSize=new google.maps.Size(32,28);this.ico.shadow='/images/maps/markerShadow.png';this.ico.shadowSize=new google.maps.Size(32,28);this.ico.iconAnchor=new google.maps.Point(13,21);this.ico.infoWindowAnchor=new google.maps.Point(13,10);this.ico.transparent='/images/maps/markerTransparency.png';this.originIco=new google.maps.Icon();this.originIco.image='/images/maps/arrow.png';this.originIco.iconSize=new google.maps.Size(39,34);this.originIco.shadow='/images/maps/arrowshadow.png';this.originIco.shadowSize=new google.maps.Size(39,34);this.originIco.iconAnchor=new google.maps.Point(11,33);},showMap:false,searchType:null,staticSearch:null,showWithin:true,showNear:true,showInState:true,showInCity:true,showRange:true,showDirections:true,showAddress:true,showCity:true,showState:true,showPostal:true,showLine:true,showType:true,showSearch:true,showTop:true,rangeVal:null,stateVal:null,pageSize:5,category:null,subcategory:null,companies:null,tabSearch_onkeydown:function(){switch(window.event.keyCode){case 13:this.cmdSearch.click();window.event.cancelBubble=true;break;}},cmdGetDirections_onclick:function(){var $0='from:'+this.$1_D.lat()+','+this.$1_D.lng()+' to:'+this.$1_C.Latitude+','+this.$1_C.Longitude;$0='saddr='+this.txtAddress.get_text()+' '+this.txtCity.get_text()+' '+this.txtPostal.get_text()+'&daddr='+this.$1_C.Address1+' '+this.$1_C.Address2+' '+this.$1_C.City+' '+this.$1_C.State+' '+this.$1_C.PostalCode;var $1='http://maps.google.com/maps?'+$0;window.open($1+$0);},directions_Load:function(){this.$1_5.selectTab(this.tabDirections);var $0='<table><thead><tr><td colspan=\'3\'>';$0+='<div style=\'background-color: #efefef; border: solid 1px #c6c3c6; vertical-align: middle; text-align: left;\'>';$0+='<img src=\'/images/maps/arrow2.png\' width=\'39\' height=\'34\' border=\'0\' style=\'vertical-align: middle; margin: 5px 15px 5px 5px;\' />';$0+=this.dir.getGeocode(0).address.htmlEncode();$0+='</div></td></tr></thead><tbody>';for(var $1=0;$1<this.dir.getNumRoutes();$1++){var $2=this.dir.getRoute($1);$0+='<tr><td colspan=\'3\'>';$0+=$2.getSummaryHtml();$0+='</td></tr>';for(var $3=0;$3<$2.getNumSteps();$3++){$0+='<tr style=\'border-top: solid 1px #cecfce;\'><td>'+$3+'.</td><td>';var $4=$2.getStep($3);$0+=$4.getDescriptionHtml();$0+='</td><td>';$0+=$4.getDistance().html;$0+='</td></tr>';}}$0+='</tbody><tfoot><tr><td colspan=\'3\'><div style=\'background-color: #efefef; border: solid 1px #c6c3c6; vertical-align: middle; text-align: left;\'>';$0+='<img src=\'/images/maps/marker2.png\' width=\'54\' height=\'35\' border=\'0\' style=\'vertical-align: middle; margin: 5px 0px 5px 5px;\' />';$0+=this.$1_C.BusinessName.htmlEncode();$0+='</div></td></tr></tfoot></table>';this.tabDirections.get_domElement().innerHTML=$0;},directions_Error:function(){alert('Error: '+arguments[0]);},cmdBackToSearch_onclick:function(){this.$1_1.selectTab(this.tabSearch);this.$1_5.selectTab(this.tabIframe);},$1_E:'{website}',$1_F:function($p0,$p1){var $0=$p0;this.lblAddress.set_text($0.AddressText);switch(this.searchType){case 'City':this.lblCsp.set_text($0.CityText);break;case 'State':this.lblCsp.set_text($0.StateText);break;case 'Postal':this.lblCsp.set_text($0.PostalText);break;default:this.lblCsp.set_text($0.CSPText);break;}this.lblSector.set_text($0.SectorText);this.lblType.set_text($0.TypeText);this.lblList.set_text($0.ListText);this.cmdSearch.value=$0.SearchText;this.$1_9.set_text($0.GetDirectionsText);this.$1_A.set_text($0.BackToSearchText);this.tabSearch.set_text($0.SearchText);this.$1_2.set_text($0.InformationText);this.lstState.appendChild(this.blankState);if(this.rangeVal){var $1=document.createElement('option');$1.innerText=this.rangeVal;$1.value=this.rangeVal;this.lstRange.appendChild($1);this.lstRange.value=$1.value;}else{if(this.showInState){var $2=document.createElement('option');$2.innerText=$0.WithinStateText;$2.value='S';this.lstRange.appendChild($2);$2.selected=true;}if(this.showInCity){var $3=document.createElement('option');$3.innerText=$0.WithinCityText;$3.value='C';this.lstRange.appendChild($3);$3.selected=true;}if(this.showNear){var $4=null;var $enum1=this.distances.getEnumerator();while($enum1.moveNext()){var $5=$enum1.get_current();var $6=document.createElement('option');if(!$4){$4=$6;}$6.innerText=$0.NearestText.replace('#',$5);$6.value='N'+$5;this.lstRange.appendChild($6);}$4.selected=true;}if(this.showWithin){var $7=null;var $enum2=this.distances.getEnumerator();while($enum2.moveNext()){var $8=$enum2.get_current();var $9=document.createElement('option');if(!$7){$7=$9;}$9.innerText=$0.WithinText.replace('#',$8);$9.value='W'+$8;this.lstRange.appendChild($9);}}}Windex.Util.resizeSelect(this.lstRange);switch(this.searchType){case 'State':this.lstRange.value='S';break;case 'City':this.lstRange.value='C';break;}if(this.stateVal){var $A=document.createElement('option');$A.innerText=this.stateVal;$A.value=this.stateVal;this.lstState.appendChild($A);this.lstState.value=$A.value;}else{$0.States.sort();for(var $B=0;$B<$0.States.length;$B++){var $C=document.createElement('option');$C.innerText=$0.States[$B];$C.value=$0.States[$B];this.lstState.appendChild($C);}}Windex.Util.resizeSelect(this.lstState);if(this.companies){var $D=new Windex.Locator._LocatorSelectBehavior(this.lstSector,this.lstType,this.companies);if(this.lstSector.options.length===2){this.lstSector.selectedIndex=1;$D.$4();if(this.lstType.options.length===2){this.lstType.selectedIndex=1;this.lstType.parentNode.parentNode.style.display='none';$D.$4();}}}else{var $E=new Windex.Locator._LocatorSelectBehavior(this.lstSector,this.lstType,$0.LocatorSelects);if(this.category){this.lstSector.value=this.category.ID.toString();$E.$4();if(this.subcategory){this.lstType.value=this.subcategory.ID.toString();}}}this.get_domElement().style.visibility='';},$1_10:function($p0,$p1){alert($p0.Message);this.get_domElement().style.display='none';},$1_11:function(){if(this.lstRange.value==='C'&&(this.txtCity.get_text().trim()===''|this.lstState.value==='')){alert('Please select a city and state');return;}if(this.lstRange.value==='S'&&this.lstState.value===''){alert('Please select a state');return;}var $0=this.txtAddress.get_text();var $1=this.txtCity.get_text();var $2=this.lstState.value;var $3=this.txtPostal.get_text();var $4=this.lstSector.value;var $5=this.lstType.value;var $6=this.lstRange.value;this.$1_5.selectTab(this.tabLoading);var $7='/LocatorStatesGrid.aspx'+'?address='+escape($0)+'&city='+escape($1)+'&state='+escape($2)+'&country='+escape(eval('kwdCountryTwoLetter').toString())+'&postal='+escape($3)+'&company='+escape($4)+'&type='+escape($5)+'&range='+$6+'&pagesize='+this.pageSize+'&unit='+this.unit+'&cid='+eval('CountryID')+'&lid='+eval('LanguageID');this.iframe.src=$7;},iframeDocument:null,$1_12:function(){try{this.$1_5.set_selectedIndex(-1);if(this.showMap){this.$1_4.clearOverlays();}}catch($0){}},$1_13:function(){if(!this.$1_4){this.$1_4=new google.maps.Map2(this.mapDiv);this.$1_4.enableScrollWheelZoom();this.$1_4.enableContinuousZoom();this.$1_4.setCenter(new google.maps.LatLng(0,0));}},$1_14:function($p0,$p1){this.iframeDocument=$p1;this.$1_5.selectTab(this.tabIframe);var $0=$p0.Entries;if(this.showMap){this.$1_13();this.$1_4.clearOverlays();var $1=new google.maps.LatLng(0,0);this.$1_D=new google.maps.LatLng($p0.Origin.Latitude,$p0.Origin.Longitude);if(!this.$1_D.equals($1)){this.originMarker=new google.maps.Marker(this.$1_D,this.originIco,true);this.$1_4.addOverlay(this.originMarker);}this.$1_6=new Array($0.length);this.anchors=new Array($0.length);this.markerEvents=new Array($0.length);this.$1_7=new Array($0.length);if($0.length>0){var $2=new google.maps.LatLngBounds(new google.maps.LatLng($0[0].Latitude,$0[0].Longitude),new google.maps.LatLng($0[0].Latitude,$0[0].Longitude));for(var $3=0;$3<$0.length;$3++){var $4=$0[$3];var $5=new google.maps.LatLng($4.Latitude,$4.Longitude);if(!$5.equals($1)){$2.extend($5);var $6=new google.maps.Marker($5,this.ico);this.$1_4.addOverlay($6);this.$1_6[$3]=$6;this.anchors[$3]=$p1.getElementById('row'+$3);this.$1_7[$3]=this.anchors[$3].parentNode.parentNode;this.markerEvents[$3]=new Windex.Locator._MarkerEventsContext(this.$1_7[$3],$3,$6,$4,this);}}this.$1_4.setCenter($2.getCenter(),this.$1_4.getBoundsZoomLevel($2));this.$1_4.savePosition();}}},$1_15:0,get_width:function(){return this.$1_15;},set_width:function(value){this.$1_15=value;this.$1_5.set_width(value);this.iframe.style.width=value.toString()+'px';return value;}}
Windex.Locator._MarkerEventsContext=function(row,index,marker,loc,form){Windex.Locator._MarkerEventsContext.$5=-1;this.$2=row;this.$1=index;this.$0=form;this.$3=marker;this.$4=loc;row.attachEvent('onclick',Delegate.create(this,this.$6));row.attachEvent('onmouseover',Delegate.create(this,this.$7));row.attachEvent('onmouseout',Delegate.create(this,this.$8));google.maps.GEvent.addListener(marker,Interop.Google.MarkerEvents.mouseOver,Delegate.create(this,this.$7));google.maps.GEvent.addListener(marker,Interop.Google.MarkerEvents.mouseOut,Delegate.create(this,this.$8));google.maps.GEvent.addListener(marker,Interop.Google.MarkerEvents.click,Delegate.create(this,this.$6));}
Windex.Locator._MarkerEventsContext.prototype={$0:null,$1:0,$2:null,$3:null,$4:null,$6:function(){if(Windex.Locator._MarkerEventsContext.$5!==-1){this.$0.$1_7[Windex.Locator._MarkerEventsContext.$5].style.backgroundImage='';this.$0.$1_6[Windex.Locator._MarkerEventsContext.$5].setImage('/images/maps/marker.png');}if(Windex.Locator._MarkerEventsContext.$5===this.$1){this.$0.$1_4.returnToSavedPosition();Windex.Locator._MarkerEventsContext.$5=-1;this.$0.$1_2.set_visible(false);this.$0.$1_1.set_selectedIndex(0);return;}Windex.Locator._MarkerEventsContext.$5=this.$1;if(this.$0.$1_4.getZoom()!==12){this.$0.$1_4.setZoom(12);}this.$2.style.backgroundImage='url(/images/hardBack200.png)';this.$3.setImage('/images/maps/markerHighlight.png');this.$0.$1_4.panTo(this.$3.getLatLng());this.$0.$1_2.set_visible(true);var $0='';$0+='<b>'+this.$4.BusinessName.htmlEncode()+'</b>';if((this.$4.WebAddress||'')!==''){this.$0.$1_B.set_visible(true);this.$0.$1_B.set_text(this.$4.WebAddress);(this.$0.$1_B.get_domElement()).href=this.$4.WebAddress;}else{this.$0.$1_B.set_visible(false);}$0+='<br />';$0+=this.$4.Address1.htmlEncode();if(this.$4.Address2!==''){$0+=', '+this.$4.Address2.htmlEncode();}if(this.$4.City!==''){$0+=', '+this.$4.City.htmlEncode();}if(this.$4.State!==''){$0+=', '+this.$4.State.htmlEncode();}$0+='<br />';if(this.$4.Phone!==''){$0+=this.$4.Phone.htmlEncode()+'<br />';}this.$0.$1_3.innerHTML=$0;this.$0.$1_1.selectTab(this.$0.$1_2);this.$0.$1_C=this.$4;if((!this.$4.Latitude&!this.$4.Longitude)|(!this.$0.$1_D.lat()&!this.$0.$1_D.lng())){this.$0.$1_9.set_visible(false);}else{this.$0.$1_9.set_visible(true);}},$7:function(){if(this.$1!==Windex.Locator._MarkerEventsContext.$5){this.$3.setImage('/images/maps/markerHighlight.png');this.$2.style.backgroundImage='url(/images/softBack200.png)';}},$8:function(){if(this.$1!==Windex.Locator._MarkerEventsContext.$5){this.$3.setImage('/images/maps/marker.png');this.$2.style.backgroundImage='';}}}
Windex.Locator._LocatorSelectBehavior=function(sectorList,typeList,locatorSelects){this.$2=document.createElement('option');this.$3=document.createElement('option');this.$0=sectorList;this.$1=typeList;this.$0.appendChild(this.$2);for(var $0=0;$0<locatorSelects.length;$0++){var $1=locatorSelects[$0];var $2=document.createElement('option');$2.innerText=$1.Company.Text;$2.value=$1.Company.ID.toString();this.$0.appendChild($2);Windex.Util.setField($2,'ls',$1);var $3=new Array(0);for(var $4=0;$4<$1.Types.length;$4++){var $5=document.createElement('option');$3[$3.length]=$5;$5.innerText=$1.Types[$4].Text;$5.value=$1.Types[$4].ID.toString();}Windex.Util.setField($2,'types',$3);}Windex.Util.resizeSelect(this.$0);Windex.Util.resizeSelect(this.$1);this.$1.appendChild(this.$3);this.$0.attachEvent('onchange',Delegate.create(this,this.$5));}
Windex.Locator._LocatorSelectBehavior.prototype={$0:null,$1:null,$4:function(){this.$5();},$5:function(){while(this.$1.firstChild){this.$1.removeChild(this.$1.firstChild);}this.$1.appendChild(this.$3);var $0=this.$0.options[this.$0.selectedIndex];var $1=Windex.Util.getField($0,'types');if(!isNullOrUndefined($1)){for(var $2=0;$2<$1.length;$2++){this.$1.appendChild($1[$2]);}}else{}Windex.Util.resizeSelect(this.$1);}}
Windex.Locator.StateLocator=function(element){this.lblSelectState=Windex.Util.createLabel();this.lstStates=document.createElement('select');this.lblCompany=Windex.Util.createLabel();this.lstCompanies=document.createElement('select');this.lblType=Windex.Util.createLabel();this.lstTypes=document.createElement('select');this.blankState=document.createElement('option');this.cmdSearch=Windex.Util.createInputButton();this.iframe=document.createElement('iframe');this.cells=new Array(0);Windex.Locator.StateLocator.constructBase(this,[element,'StateLocator']);Windex.Ajax.callAjax(this.ajaxUrl,'GetStateSelect',null,null,Delegate.create(this,this.getStateSelect_Response),Delegate.create(this,this.getStateSelect_Exception));this.table=document.createElement('table');this.table.style.width='600px';var $0;var $1;$0=this.table.insertRow(-1);$1=$0.insertCell(-1);this.cells[0]=$1;$1.style.width='200px';this.lblSelectState.set_text('Select State: ');$1.appendChild(this.lblSelectState.get_domElement());$1.appendChild(this.lstStates);$1=$0.insertCell(-1);this.cells[1]=$1;$1.style.width='200px';this.lblCompany.set_text('Sector: ');$1.appendChild(this.lblCompany.get_domElement());$1.appendChild(this.lstCompanies);$1=$0.insertCell(-1);this.cells[2]=$1;$1.style.width='200px';this.lblType.set_text('Type: ');$1.appendChild(this.lblType.get_domElement());$1.appendChild(this.lstTypes);$1=$0.insertCell(-1);this.cells[3]=$1;(this.cmdSearch.get_domElement()).value='Search';$1.appendChild(this.cmdSearch.get_domElement());this.cmdSearch.add_click(Delegate.create(this,this.cmdSearch_Click));$0=this.table.insertRow(-1);$1=$0.insertCell(-1);$1.colSpan=4;this.iframe.src='/blank.htm';this.iframe.frameBorder='no';this.iframe.style.width='600px';this.iframe.style.height='400px';$1.appendChild(this.iframe);this.set_width(600);}
Windex.Locator.StateLocator.prototype={table:null,lsb:null,ajaxUrl:'/ScriptServices/LocatorAjax.asmx',cmdSearch_Click:function(sender,e){var $0=(this.lstStates.options[this.lstStates.selectedIndex]).value;var $1=(this.lstCompanies.options[this.lstCompanies.selectedIndex]).value;var $2=(this.lstTypes.options[this.lstTypes.selectedIndex]).value;var $3='/LocatorStatesGrid.aspx'+'?state='+escape($0)+'&company='+escape($1)+'&type='+escape($2)+'&cid='+eval('CountryID')+'&lid='+eval('LanguageID');this.iframe.src=$3;},getStateSelect_Response:function(val,context){var $0=val;this.lblSelectState.set_text($0.StateText);this.lblCompany.set_text($0.SectorText);this.lblType.set_text($0.TypeText);(this.cmdSearch.get_domElement()).value=$0.SearchText;this.lstStates.appendChild(this.blankState);for(var $1=0;$1<$0.States.length;$1++){var $2=document.createElement('option');$2.innerText=$0.States[$1];$2.value=$0.States[$1];this.lstStates.appendChild($2);}Windex.Util.resizeSelect(this.lstStates);this.lsb=new Windex.Locator._LocatorSelectBehavior(this.lstCompanies,this.lstTypes,$0.LocatorSelects);this.get_domElement().appendChild(this.table);},getStateSelect_Exception:function(ex,context){alert('We appologize, but our locator service is currently unavailable: \n'+ex.Message);},$1_0:600,get_width:function(){return this.$1_0;},set_width:function(value){this.$1_0=value;this.table.style.width=this.$1_0.toString()+'px';this.iframe.style.width=this.$1_0.toString()+'px';for(var $0=0;$0<4;$0++){this.cells[$0].style.width=(this.$1_0/4)+'px';}return value;}}
Windex.Locator.FormLocator.createClass('Windex.Locator.FormLocator',ScriptFX.UI.Behavior);Windex.Locator._MarkerEventsContext.createClass('Windex.Locator._MarkerEventsContext');Windex.Locator._LocatorSelectBehavior.createClass('Windex.Locator._LocatorSelectBehavior');Windex.Locator.StateLocator.createClass('Windex.Locator.StateLocator',ScriptFX.UI.Behavior);Windex.Locator.FormLocator.$1_0=new Array(0);Windex.Locator.FormLocator.dirDiv=null;Windex.Locator.FormLocator.formHtml='\r\n<table style=\'width: 100%;\'>\r\n\t<tr>\r\n\t\t<td id=\'{id}_topRow\' valign=\'top\'>\r\n\t\t\t<div id=\'{id}_tabs\'>\r\n\t\t\t\t<table title=\'{search}\'>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td><label for=\'{id}_address\' id=\'{id}_lblAddress\'>{address}</td>\r\n\t\t\t\t\t\t<td><input type=\'text\' id=\'{id}_address\' /></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td><label for=\'{id}_city\' id=\'{id}_lblCsp\'>{csp}</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<input type=\'text\' id=\'{id}_city\' style=\'width: 100px;\' />\r\n\t\t\t\t\t\t\t<select id=\'{id}_state\'></select>\r\n\t\t\t\t\t\t\t<input type=\'text\' id=\'{id}_postal\' style=\'width: 50px;\' />\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td><label for=\'{id}_sector\' id=\'{id}_lblSector\'>{sector}</td>\r\n\t\t\t\t\t\t<td><select id=\'{id}_sector\'></select></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td><label for=\'{id}_type\' id=\'{id}_lblType\'>{type}</td>\r\n\t\t\t\t\t\t<td><select id=\'{id}_type\'></select></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td><label for=\'{id}_listCount\' id=\'{id}_lblList\'>{list}</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<!--<select id=\'{id}_listCount\'></select>-->\r\n\t\t\t\t\t\t\t<select id=\'{id}_listRange\'></select>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td colspan=\'2\' style=\'text-align: right;\'><input type=\'button\' id=\'{id}_cmdSearch\' value=\'{search}\' /></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</table>\r\n\t\t\t\t<div title=\'{information}\' id=\'{id}_infotab\'>\r\n\t\t\t\t\t<table background=\'/images/maps/triangleBackBig.png\' style=\'background-repeat: no-repeat;\'>\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td width=\'35\'>&nbsp;</td>\r\n\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t<span id=\'{id}_info\'></span>\r\n\t\t\t\t\t\t\t\t<span id=\'{id}_infoLinks\'><!--\r\n\t\t\t\t\t\t\t\t\t<a href=\'javascript:void(0);\' id=\'{id}_cmdGetDirections\'>{getdirections}</a><span id=\'{id}_spacer1\'>&nbsp;\ufffd&nbsp;</span>\r\n\t\t\t\t\t\t\t\t\t<a href=\'javascript:void(0);\' id=\'{id}_cmdBackToSearch\'>{backtosearch}</a>\r\n\t\t\t\t\t\t\t\t--></span>\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</td>\r\n\t\t<td style=\'width: 355px;\'>\r\n\t\t\t<div id=\'{id}_mapDiv\' style=\'width: 355px; height: 200px;\'></div>\r\n\t\t</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td colspan=\'3\' id=\'{id}_tabs2\'>\r\n\t\t\t<div id=\'{id}_divIframe\' xstyle=\'height: 250px; overflow-y: scroll;\'>\r\n\t\t\t\t<iframe id=\'{id}_iframe\' style=\'width: 100%;\' frameborder=\'0\' src=\'blank.htm\'></iframe>\r\n\t\t\t</div>\r\n\t\t\t<div id=\'{id}_divLoading\' style=\'text-align: center;\'>\r\n\t\t\t\t<img src=\'/images/ajax/cat8-1.gif\' width=\'220\' height=\'19\' />\r\n\t\t\t</div>\r\n\t\t\t<div id=\'{id}_divDirections\'></div>\r\n\t\t</td>\r\n</table>';Windex.Locator._MarkerEventsContext.$5=-1;
// ---- Do not remove this footer ----
// Generated using Script# v0.5.1.0 (http://projects.nikhilk.net)
// -----------------------------------

