Type.registerNamespace('Model.Entities');
Model.Entities.ObjectType=function(){};Model.Entities.ObjectType.prototype = {photo:1,event:2,venue:3,place:4,none:5,thread:6,country:7,article:8,para:9,brand:10,promoter:11,mainPage:999,usr:12,region:13,gallery:14,group:15,banner:16,guestlistCredit:17,ticket:18,insertionOrder:19,emailSpotlight:20,campaignCredit:21,invoice:22,comp:23,misc:24,usrDonationIcon:25}
Model.Entities.ObjectType.registerEnum('Model.Entities.ObjectType',false);Type.registerNamespace('SpottedScript.Pages.MapBrowser');SpottedScript.Pages.MapBrowser.MapItem=function(){}
SpottedScript.Pages.MapBrowser.MapItem.prototype={data:null,lat:0,lon:0,hoverText:null}
Type.registerNamespace('SpottedScript.Behaviours.CreateUsersFromEmails');
SpottedScript.Behaviours.CreateUsersFromEmails.Controller=function(selector){this.selector=selector;this.$0=selector.onSuggestionsRequested;selector.onSuggestionsRequested=Function.createDelegate(this,this.checkForEmailAddresses);}
SpottedScript.Behaviours.CreateUsersFromEmails.Controller.getPicTitleDetailTemplateHtml=function(imageSrc,title,detail){return String.format('<table cellspacing=\'0\' cellpadding=\'0\'><tr><td width=\'40\'><img src=\'{0}\' border=0 width=40 hspace=0 height=40 /></td><td style=\'padding:3px;\' valign=\'top\'><b>{1}</b><br />{2}</td></tr></table>',imageSrc,title,detail);}
SpottedScript.Behaviours.CreateUsersFromEmails.Controller.prototype={$0:null,selector:null,checkForEmailAddresses:function(){Utils.Trace.write('CheckingForEmailAddresses');var $0=new RegExp('\\s|,|;| +','g');var $1=this.selector.get_text().replace($0,' ');while($1.indexOf('  ')>-1){$1=$1.replace('  ',' ');}$1=$1.trim();for(var $3=this.selector.suggestions.get_count()-1;$3>-1;$3--){Utils.Trace.write(this.selector.suggestions.get_item($3).value);if(this.selector.suggestions.get_item($3).value.startsWith('{\'emails\': ')){this.selector.suggestions.removeAt($3);break;}}var $2=new RegExp('^( *([^\\@\\s]+\\@[A-Za-z0-9\\-]{1}[.A-Za-z0-9\\-]+\\.[.A-Za-z0-9\\-]*[A-Za-z0-9]) *){2,}$');if($2.test($1)){this.selector.set_text($1);this.selector.suggestions.clear();var $4=$1.split(' ');var $5=new ScriptSharpLibrary.Suggestion();$5.html=SpottedScript.Behaviours.CreateUsersFromEmails.Controller.getPicTitleDetailTemplateHtml('/gfx/icon40-inbox.png','Add '+$4.length+' email addresses as buddies','Next time you want to include these email addresses, just add all your buddies and they will be included.');$5.text=$4.length+' email addresses as buddies';$5.value='{\'emails\': \''+escape($1)+'\', \'buddies\':\'true\'}';$5.priority=this.selector.get_text().length*100;this.selector.addSuggestion($5);var $6=new ScriptSharpLibrary.Suggestion();$6.html=SpottedScript.Behaviours.CreateUsersFromEmails.Controller.getPicTitleDetailTemplateHtml('/gfx/icon40-inbox.png','Add '+$4.length+' email addresses, but NOT as buddies','Next time you want to include these email addresses you\'ll have to copy them in again');$6.text=$4.length+' email addresses';$6.value='{\'emails\': \''+escape($1)+'\', \'buddies\':\'false\'}';$6.priority=this.selector.get_text().length*100;this.selector.addSuggestion($6);this.selector.displaySuggestionsInPopupMenu();}if(this.$0){this.$0();}}}
SpottedScript.Behaviours.CreateUsersFromEmails._EmailsSuggestionValue=function(){}
SpottedScript.Behaviours.CreateUsersFromEmails._EmailsSuggestionValue.prototype={$0:null,$1:false}
Type.registerNamespace('SpottedScript.Behaviours.CreateUserFromEmail');
SpottedScript.Behaviours.CreateUserFromEmail.Controller=function(selector){this.selector=selector;this.$0=selector.onSuggestionsRequested;selector.onSuggestionsRequested=Function.createDelegate(this,this.checkForEmailAddress);}
SpottedScript.Behaviours.CreateUserFromEmail.Controller.getPicTitleDetailTemplateHtml=function(imageSrc,title,detail){return String.format('<table cellspacing=\'0\' cellpadding=\'0\'><tr><td width=\'40\'><img src=\'{0}\' border=0 width=40 hspace=0 height=40 /></td><td style=\'padding:3px;\' valign=\'top\'><b>{1}</b><br />{2}</td></tr></table>',imageSrc,title,detail);}
SpottedScript.Behaviours.CreateUserFromEmail.Controller.prototype={oldItemChosen:null,selector:null,$0:null,itemChosen:function(item){if(item.value.startsWith('{\'email\':')){var $0=eval('('+item.value+')');Spotted.WebServices.Controls.MultiBuddyChooser.Service.createUsrFromEmailAndReturnK($0.$0,Function.createDelegate(this,this.createUsrFromEmailAndReturnKSuccessCallback),Function.createDelegate(null,Utils.Trace.webServiceFailure),item,3000);}else{if(this.oldItemChosen){this.oldItemChosen(item);}}},createUsrFromEmailAndReturnKSuccessCallback:function(result,userContext,methodName){var $0=userContext;$0.value=result.toString();this.selector.set_value($0.value);if(this.oldItemChosen){this.oldItemChosen($0);}},checkForEmailAddress:function(){Utils.Trace.write('CheckingForEmailAddress');var $0=new RegExp('^[^\\@\\s]+\\@[A-Za-z0-9\\-]{1}[.A-Za-z0-9\\-]+\\.[.A-Za-z0-9\\-]*[A-Za-z0-9]$');var $1=this.selector.get_text().trim();if($0.test($1)){var $2=new ScriptSharpLibrary.Suggestion();$2.html=SpottedScript.Behaviours.CreateUserFromEmail.Controller.getPicTitleDetailTemplateHtml('/gfx/icon40-inbox.png','Add '+this.selector.get_text().trim()+' as a buddy','When they join DontStayIn they will be added as one of your buddies.  If you type a name after the email address you can use that in future to find this person.');$2.text=this.selector.get_text();$2.value='{\'email\': \''+escape(this.selector.get_text())+'\'}';$2.priority=this.selector.get_text().length*100;for(var $3=0;$3<this.selector.suggestions.get_count();$3++){if(this.selector.suggestions.get_item($3).value.startsWith('{\'email\': ')){this.selector.suggestions.removeAt($3);break;}}this.selector.addSuggestion($2);this.selector.displaySuggestionsInPopupMenu();}if(this.$0){this.$0();}}}
SpottedScript.Behaviours.CreateUserFromEmail._EmailSuggestionValue=function(){}
SpottedScript.Behaviours.CreateUserFromEmail._EmailSuggestionValue.prototype={$0:null}
Type.registerNamespace('Net.Comet');
Net.Comet.CometProxy=function(){}
Net.Comet.CometProxy.invoke=function(url,ProcessMessage,onComplete){var $0=document.createElement('IFRAME');var $1=new Net.Comet.CometRequest($0);var $2=Function.createDelegate(null,function(){
$1.$0();});$1.onCometRequestComplete=onComplete;$0.receive = function(message){ProcessMessage(unescape(message));};;$0.notifyComplete = $2;;$0.src=url;$0.style.visibility='hidden';document.body.appendChild($0);return $1;}
Net.Comet.CometRequest=function(iFrame){this.iFrame=iFrame;}
Net.Comet.CometRequest.prototype={onCometRequestComplete:null,iFrame:null,completed:false,abort:function(){if(!this.completed){this.iFrame.src='';try{this.iFrame.parentNode.removeChild(this.iFrame);}catch($0){}if(this.onCometRequestComplete){this.onCometRequestComplete();}this.completed=true;}},$0:function(){this.abort();}}
Type.registerNamespace('ScriptSharpLibrary');
ScriptSharpLibrary._HtmlAutoCompleteMode=function(){};ScriptSharpLibrary._HtmlAutoCompleteMode.prototype = {$1:1,$2:2}
ScriptSharpLibrary._HtmlAutoCompleteMode.registerEnum('ScriptSharpLibrary._HtmlAutoCompleteMode',false);ScriptSharpLibrary.HelloWorld=function(te){this.te=te;te.innerHTML='hello';var $0=Function.createDelegate(this,this.doSomething);$addHandler(te,'click',$0);}
ScriptSharpLibrary.HelloWorld.prototype={te:null,doSomething:function(ev){this.te.innerHTML='goodbye at '+(new Date()).getTime();}}
ScriptSharpLibrary.HtmlAutoCompleteAttributes=function(){}
ScriptSharpLibrary.HtmlAutoCompleteBehaviour=function(input,hiddenInput,anchor,isSuggest,parametersHiddenField){this.suggestions=new ScriptSharpLibrary.SuggestionsCollection();this.currentTimer=-2;var $0=input.getAttributeNode(ScriptSharpLibrary.HtmlAutoCompleteAttributes.cometServiceUrl);this.remoteSuggestionsGetter=new ScriptSharpLibrary.HtmlAutoComplete.WebServiceRemoteSuggestionsGetter(input.getAttributeNode(ScriptSharpLibrary.HtmlAutoCompleteAttributes.webServiceUrl).value,input.getAttributeNode(ScriptSharpLibrary.HtmlAutoCompleteAttributes.webServiceMethod).value);this.mode=(isSuggest)?1:2;this.$1=input;this.hiddenInput=hiddenInput;this.anchor=(!anchor)?input:anchor;$addHandler(input,'blur',Function.createDelegate(this,function($p1_0){
window.setTimeout(Function.createDelegate(this,this.doBlur),250);}));$addHandler(input,'keydown',Function.createDelegate(this,this.handleKeyDown));$addHandler(input,'keyup',Function.createDelegate(this,this.handleKeyUp));$addHandler(input,'focus',Function.createDelegate(this,this.$2));var $1=input.getAttributeNode(ScriptSharpLibrary.HtmlAutoCompleteAttributes.watermark);if($1){this.watermarker=new ScriptSharpLibrary.WatermarkExtender(input,input.getAttributeNode(ScriptSharpLibrary.HtmlAutoCompleteAttributes.watermark).value);}var $2=input.getAttributeNode(ScriptSharpLibrary.HtmlAutoCompleteAttributes.popupLeftOffset);this.popupLeftOffset=(!$2)?0:Number.parseInvariant($2.value);var $3=input.getAttributeNode(ScriptSharpLibrary.HtmlAutoCompleteAttributes.popupTopOffset);this.popupTopOffset=(!$3)?0:Number.parseInvariant($3.value);var $4=input.getAttributeNode(ScriptSharpLibrary.HtmlAutoCompleteAttributes.rightAlign);this.$0=(!$4)?false:Boolean.parse($4.value);if(input.getAttributeNode(ScriptSharpLibrary.HtmlAutoCompleteAttributes.popupLeftOffset)){this.popupLeftOffset=Number.parseInvariant(input.getAttributeNode(ScriptSharpLibrary.HtmlAutoCompleteAttributes.popupLeftOffset).value);}this.parameters=new ScriptSharpLibrary.PairListField(parametersHiddenField);this.suggestions.onSuggestionsChanged=Function.createDelegate(this,function(){
this.displaySuggestionsInPopupMenu();});this.remoteSuggestionsGetter.onAllSuggestionsReceived=Function.createDelegate(this,function(){
this.$6();this.hideAjaxIcon();});this.remoteSuggestionsGetter.onSuggestionsRequested=Function.createDelegate(this,function(){
this.showAjaxIcon();});this.remoteSuggestionsGetter.onSuggestionReceived=Function.createDelegate(this,function($p1_0){
Utils.Trace.write('Received'+$p1_0.length+'suggestions');if(this.transformReceivedSuggestions){this.$4(this.transformReceivedSuggestions($p1_0,this.get_maxNumberOfItemsToGet()));}else{this.$4($p1_0);}});this.remoteSuggestionsGetter.onAbortCurrentRequest=Function.createDelegate(this,function(){
this.hideAjaxIcon();});}
ScriptSharpLibrary.HtmlAutoCompleteBehaviour.prototype={popupLeftOffset:0,popupTopOffset:0,$0:false,onSuggestionsRequested:null,remoteSuggestionsGetter:null,onhighlight:null,itemChosen:null,onTextPasted:null,$1:null,hiddenInput:null,anchor:null,_popupMenu:null,setWebMethod:function(methodName){this.remoteSuggestionsGetter.methodName=methodName;},mode:0,watermarker:null,parameters:null,onFocus:null,$2:function($p0){if(this.onFocus){this.onFocus($p0);}},transformReceivedSuggestions:null,$3:null,hideAjaxIcon:function(){if(this.$3){this.$3.style.display='none';}},showAjaxIcon:function(){if(!this.$3){this.$3=document.createElement('IMG');this.$3.src='/Gfx/autocomplete-loading.gif';this.$3.style.height='16px';this.$3.style.width='16px';this.$3.style.position='absolute';var $0=jQuery(this.anchor).offset();this.$3.style.left=($0.left+this.anchor.clientWidth-18)+'px';this.$3.style.top=($0.top+2)+'px';this.$3.style.zIndex=200;document.body.appendChild(this.$3);}this.$3.style.display='';},addSuggestion:function(newSuggestion){this.$4([newSuggestion]);},$4:function($p0){Utils.Trace.write('Adding '+$p0.length+' suggestions. Suggestions length = '+this.suggestions.get_count());this.suggestions.addRange($p0);while(this.suggestions.get_count()>this.get_maxNumberOfItemsToGet()){Utils.Trace.write('Suggestions length '+this.suggestions.get_count()+' Removing suggestion');this.suggestions.removeAt(this.suggestions.get_count()-1);}Utils.Trace.write('Finished adding '+$p0.length+' suggestions. Suggestions length = '+this.suggestions.get_count());},displaySuggestionsInPopupMenu:function(){Utils.Trace.write('DisplaySuggestionsInPopupMenu');this.get_popupMenu().clear();for(var $0=0;$0<this.suggestions.get_count();$0++){var $1=this.suggestions.get_item($0);var $2=new ScriptSharpLibrary.KeyValuePair();$2.key=$1.html;var $3=new ScriptSharpLibrary.KeyValuePair();$3.key=$1.text;$3.value=(this.mode===2)?$1.value:$1.text;$2.value=$3;this.get_popupMenu().addItem($2);}this.$5();this.get_popupMenu().show(this.anchor,this.get_minWidth(),this.get_maxWidth(),this.popupTopOffset,this.popupLeftOffset,this.$0);},$5:function(){if(this.mode===2&&!this.get_popupMenu().get_currentlyHighlightedItem()){this.get_popupMenu().set_indexOfCurrentlyHighlightedItem(0);}},$6:function(){this.$7();this.$8();},$7:function(){for(var $0=0;$0<this.suggestions.get_count();$0++){if(this.suggestions.get_item($0).priority===-1){this.suggestions.removeAt($0);$0--;continue;}}},$8:function(){for(var $0=0;$0<this.suggestions.get_count();$0++){this.suggestions.get_item($0).priority=-1;}},get_popupMenu:function(){if(!this._popupMenu){var $0=this.$1.getAttributeNode(ScriptSharpLibrary.HtmlAutoCompleteAttributes.popupMenuClassName);var $1=this.$1.getAttributeNode(ScriptSharpLibrary.HtmlAutoCompleteAttributes.popupMenuHighlightedItemClassName);this._popupMenu=new ScriptSharpLibrary.PopupMenu((!$0)?ScriptSharpLibrary.HtmlAutoCompleteAttributes.popupMenuClassName:$0.value,(!$1)?ScriptSharpLibrary.HtmlAutoCompleteAttributes.popupMenuHighlightedItemClassName:$1.value);this._popupMenu.itemClick=Function.createDelegate(this,this.$A);this._popupMenu.itemHighlighted=this.onhighlight;}return this._popupMenu;},doBlur:function(){if(this.hiddenInput.value===''){this.$9();}else{this.get_popupMenu().hide();}},handleKeyDown:function(e){if(e.keyCode===38){if(this.get_popupMenu()){this.get_popupMenu().set_indexOfCurrentlyHighlightedItem(this.get_popupMenu().get_indexOfCurrentlyHighlightedItem()-1);}}else if(e.keyCode===40){if(this.get_popupMenu()){this.get_popupMenu().set_indexOfCurrentlyHighlightedItem(this.get_popupMenu().get_indexOfCurrentlyHighlightedItem()+1);}}else if(e.keyCode===27){if(this.get_popupMenu().get_currentlyHighlightedItem()){this.clear();e.preventDefault();}else{this.$9();}}else if((e.keyCode===9&&!e.shiftKey)||e.keyCode===13){if(this.mode===1){if(this.get_suggestionIsHighlighted()){e.preventDefault();this.$A(this.get_popupMenu().get_currentlyHighlightedItem());this.get_popupMenu().clear();return;}else{if(this.get_validSelectionHasBeenMade()){var $0=new ScriptSharpLibrary.KeyValuePair();$0.key=this.$1.value;$0.value=this.$1.value;this.$A($0);return;}}}else if(this.mode===2){if(this.get_suggestionIsHighlighted()&&!this.get_validSelectionHasBeenMade()){if(e.keyCode===13){e.preventDefault();}this.$A(this.get_popupMenu().get_currentlyHighlightedItem());return;}}}else if(e.keyCode===8&&this.mode===2){this.suggestions.clear();if(this.get_validSelectionHasBeenMade()){this.hiddenInput.value='';this.$1.value='';}else{this.hiddenInput.value='';this.requestSuggestions();}}else if(e.keyCode===127&&this.mode===2){this.hiddenInput.value='';this.requestSuggestions();}},handleKeyUp:function(e){if(e.keyCode!==40&&e.keyCode!==35&&e.keyCode!==13&&e.keyCode!==27&&e.keyCode!==36&&e.keyCode!==37&&e.keyCode!==34&&e.keyCode!==33&&e.keyCode!==38){if(this.mode===1){this.hiddenInput.value=this.$1.value;}this.requestSuggestions();}},requestSuggestions:function(){this.$8();if(this.mode===2){this.set_value('');}if(this.onSuggestionsRequested){Utils.Trace.write('OnSuggestionsRequested');this.onSuggestionsRequested();}if(this.currentTimer!==-2){window.clearTimeout(this.currentTimer);}if(this.$1.value.trim().length>0){this.currentTimer=window.setTimeout(Function.createDelegate(this,function(){
this.remoteSuggestionsGetter.$0(this.$1.value,this.parameters.$4(),this.get_maxNumberOfItemsToGet());}),200);}},get_validSelectionHasBeenMade:function(){return this.hiddenInput.value&&this.hiddenInput.value!=='';},get_suggestionIsHighlighted:function(){return this.get_popupMenu().get_currentlyHighlightedItem();},$9:function(){this.clear();this.$1.value='';this.hiddenInput.value='';this.remoteSuggestionsGetter.$2();},clear:function(){this.suggestions.clear();this.get_popupMenu().clear();this.remoteSuggestionsGetter.$2();},get_maxNumberOfItemsToGet:function(){var $0=this.$1.getAttributeNode(ScriptSharpLibrary.HtmlAutoCompleteAttributes.maxNumberOfItemsToGet);return (!$0)?10:Number.parseInvariant($0.value);},get_minWidth:function(){var $0=this.$1.getAttributeNode(ScriptSharpLibrary.HtmlAutoCompleteAttributes.minimumPopupWidth);return (!$0)?0:Number.parseInvariant($0.value);},get_maxWidth:function(){var $0=this.$1.getAttributeNode(ScriptSharpLibrary.HtmlAutoCompleteAttributes.maximumPopupWidth);return (!$0)?0:Number.parseInvariant($0.value);},$A:function($p0){this.remoteSuggestionsGetter.$2();var $0=$p0;this.$1.value=$0.key;this.hiddenInput.value=$0.value;this.clear();if(this.itemChosen){this.itemChosen($0);}var $1=this.$1.getAttributeNode('AutoPostBackFunction');if($1){eval($1.value);}},get_text:function(){return this.$1.value;},set_text:function(value){this.$1.value=value;return value;},get_value:function(){return this.hiddenInput.value;},set_value:function(value){this.hiddenInput.value=value;return value;},get_currentlyHighlighedItem:function(){return this.get_popupMenu().get_currentlyHighlightedItem();},focus:function(){this.$1.focus();if(this.watermarker){this.watermarker.onFocus(null);}}}
ScriptSharpLibrary.KeyValuePair=function(){}
ScriptSharpLibrary.KeyValuePair.prototype={key:null,value:null}
ScriptSharpLibrary.KeyStringPair=function(){}
ScriptSharpLibrary.KeyStringPair.prototype={key:null,value:null}
ScriptSharpLibrary.MultiSelectorAttributes=function(){}
ScriptSharpLibrary.MultiSelectorBehaviour=function(container,htmlAutoComplete,hiddenOutput){this.container=container;this.hiddenOutput=hiddenOutput;this.htmlAutoComplete=htmlAutoComplete;this.htmlAutoComplete.itemChosen=Function.createDelegate(this,this.htmlAutoComplete_ItemChosen);this.$0=new ScriptSharpLibrary.PairListField(hiddenOutput);this.$1();$addHandler(this.container,'click',Function.createDelegate(this,this.$2));}
ScriptSharpLibrary.MultiSelectorBehaviour.prototype={itemAdded:null,itemRemoved:null,htmlAutoComplete:null,container:null,hiddenOutput:null,$0:null,$1:function(){this.$0.$3();for(var $0=0;$0<this.container.childNodes.length;$0++){var $1=this.container.childNodes[$0];if($1.nodeType===1&&$1.childNodes.length>1&&$1.childNodes[0].tagName!=='INPUT'){$addHandler($1.childNodes[1],'click',Function.createDelegate(this,this.deleteButtonClick));this.$0.set($1.childNodes[0].nodeValue,$1.getAttributeNode('val').value);}}},$2:function($p0){this.htmlAutoComplete.focus();},addItem:function(text,value){if(this.$0.containsKey(text)){return;}var $0=document.createElement('LI');var $1=this.container.getAttributeNode('MultiSelectorListBoxItem');$0.className=($1)?$1.value:'MultiSelectorListBoxItem';var $2=document.createElement('SPAN');$2.innerHTML='&nbsp;&nbsp;';var $3=this.container.getAttributeNode('MultiSelectorDelButton');$2.className=($3)?$3.value:'MultiSelectorDelButton';$addHandler($2,'click',Function.createDelegate(this,this.deleteButtonClick));$0.appendChild($2);var $4=document.createElement('SPAN');$4.innerHTML=text;$0.appendChild($4);var $5=document.createAttribute('text');$5.value=text;$0.setAttributeNode($5);var $6=document.createAttribute('val');$6.value=value;$0.setAttributeNode($6);var $7=this.container.lastChild;while(!$7.childNodes.length||$7.childNodes[0].tagName!=='INPUT'){$7=$7.previousSibling;}this.container.insertBefore($0,$7);this.$0.set(text,value);if(this.itemAdded){this.itemAdded(text,value);}},htmlAutoComplete_ItemChosen:function(item){this.addItem(item.key,item.value);this.htmlAutoComplete.set_text('');this.htmlAutoComplete.set_value('');this.htmlAutoComplete.focus();},deleteButtonClick:function(e){$clearHandlers(e.target);this.removeItem(e.target.parentNode);},removeItem:function(item){var $0=item.getAttributeNode('text').value;var $1=item.getAttributeNode('val').value;this.$0.set($0,null);item.parentNode.removeChild(item);this.htmlAutoComplete.focus();if(this.itemRemoved){this.itemRemoved($0,$1);}},getSelections:function(){return this.$0;},clear:function(){for(var $0=this.container.childNodes.length-1;$0>=0;$0--){var $1=this.container.childNodes[$0];if($1.nodeType===1&&$1.childNodes[0].tagName!=='INPUT'){$clearHandlers($1.childNodes[1]);this.$0.set($1.childNodes[0].nodeValue,null);$1.parentNode.removeChild($1);}}}}
ScriptSharpLibrary.PairListField=function(hiddenField){this.hiddenField=hiddenField;}
ScriptSharpLibrary.PairListField.prototype={hiddenField:null,$0:function($p0,$p1){if(this.hiddenField.value.length>0){this.hiddenField.value+=';';}this.hiddenField.value+=escape($p0)+':'+escape($p1);},set:function(key,value){this.$1(key);if(value){if(this.hiddenField.value.length>0){this.hiddenField.value+=';';}if(Date.isInstanceOfType(value)){this.hiddenField.value+=escape(key)+':'+escape((value).toDateString());}else{this.hiddenField.value+=escape(key)+':'+escape(value.toString());}}},removeAt:function(index){var $0=this.toArray();var $1=[];for(var $2=0;$2<$0.length;$2++){if($2===index){continue;}else{$1[$1.length]=$0[$2];}}this.$2($1);},get_count:function(){if(this.hiddenField.value.length>0){return this.hiddenField.value.split(';').length;}else{return 0;}},$1:function($p0){this.removeAt(this.indexOf($p0));},containsKey:function(key){return this.indexOf(key)>-1;},indexOf:function(key){var $0=this.toArray();for(var $1=0;$1<$0.length;$1++){if(($0[$1])[0]===key){return $1;}}return -1;},$2:function($p0){this.hiddenField.value='';var $0=[];for(var $1=0;$1<$p0.length;$1++){var $2=$p0[$1];$0[$1]=escape($2[0])+':'+escape($2[1]);}this.hiddenField.value=$0.join(';');},toArray:function(){var $0=[];if(this.hiddenField.value.length>0){var $1=this.hiddenField.value.split(';');for(var $2=0;$2<$1.length;$2++){var $3=$1[$2].split(':');$3[0]=unescape($3[0]);$3[1]=unescape($3[1]);$0[$0.length]=$3;}}return $0;},$3:function(){this.hiddenField.value='';},$4:function(){var $0=this.toArray();var $1={};for(var $2=0;$2<$0.length;$2++){var $3=$0[$2];$1[$3[0]]=$3[1];}return $1;}}
ScriptSharpLibrary.PopupMenu=function(cssClass,highlightedItemCssClass){this.indexOfCurrentlyHighlightedItem=-1;this.container=document.createElement('DIV');this.container.className=(!cssClass)?'PopupMenu':cssClass;this.highlightedItemCssClass=(!highlightedItemCssClass)?'PopupMenuHighlightedItem':highlightedItemCssClass;this.container.style.display='none';document.body.appendChild(this.container);}
ScriptSharpLibrary.PopupMenu.prototype={itemClick:null,itemHighlighted:null,container:null,highlightedItemCssClass:null,addItem:function(pair){var $0=document.createElement('DIV');var $1=$0;$1['value']=pair.value;if(pair.key.indexOf('<')>-1){$0.innerHTML=pair.key;}else{$0.innerHTML='<div class=\"DefaultPopupMenuItem\">'+pair.key+'</div>';}this.container.appendChild($0);$addHandler($0,'click',Function.createDelegate(this,this.$0));$addHandler($0,'mouseover',Function.createDelegate(this,this.$1));},$0:function($p0){if(this.itemClick){this.itemClick(this.get_currentlyHighlightedItem());}},$1:function($p0){var $0=$p0.target;while($0.parentNode!==this.container){$0=$0.parentNode;}for(var $1=0;$1<this.container.childNodes.length;$1++){if(this.container.childNodes[$1]===$0){this.set_indexOfCurrentlyHighlightedItem($1);return;}}},clear:function(){while(this.container.childNodes.length>0){$clearHandlers(this.container.childNodes[0]);this.container.removeChild(this.container.childNodes[0]);}this.indexOfCurrentlyHighlightedItem=-1;this.container.style.display='none';},show:function(anchor,minWidth,maxWidth,topOffset,leftOffset,rightAlign){this.container.style.display=(this.container.childNodes.length>0)?'':'none';if(this.container.childNodes.length>0){var $0=jQuery(anchor);var $1=(!anchor)?0:anchor.offsetHeight;var $2=(!anchor)?0:anchor.offsetWidth;if(!minWidth&&!maxWidth){minWidth=$2;maxWidth=$2;}var $3=(Sys.Browser.agent===Sys.Browser.InternetExplorer)?-2:0;var $4=(Sys.Browser.agent===Sys.Browser.InternetExplorer)?-2:0;var $5=(Sys.Browser.agent===Sys.Browser.InternetExplorer)?0:-2;this.container.style.left=$0.offset().left+$3+leftOffset+'px';this.container.style.top=$0.offset().top+$1+$4-1+topOffset+'px';this.container.style.width='auto';if(this.container.offsetWidth<minWidth){this.container.style.width=minWidth+$5+'px';}else if(this.container.offsetWidth>maxWidth){this.container.style.width=maxWidth+$5+'px';}if(rightAlign){Utils.Trace.write(''+$0.offset().left+', '+$3+', '+anchor.clientWidth+', '+this.container.clientWidth);this.container.style.left=($0.offset().left+$3+anchor.clientWidth-this.container.clientWidth)+'px';}}},hide:function(){eval('try{htm();}catch(e){}');this.container.style.display='none';},get_indexOfCurrentlyHighlightedItem:function(){return (this.indexOfCurrentlyHighlightedItem<this.container.childNodes.length)?this.indexOfCurrentlyHighlightedItem:-1;},set_indexOfCurrentlyHighlightedItem:function(value){if(this.get_currentlyHighlightedElement()){this.get_currentlyHighlightedElement().className='';}this.indexOfCurrentlyHighlightedItem=(value+this.container.childNodes.length)%this.container.childNodes.length;if(this.get_currentlyHighlightedElement()){this.get_currentlyHighlightedElement().className=this.highlightedItemCssClass;if(this.itemHighlighted){this.itemHighlighted();}}return value;},get_currentlyHighlightedItem:function(){if(!this.get_currentlyHighlightedElement()){return null;}else{return (this.get_currentlyHighlightedElement())['value'];}},get_currentlyHighlightedElement:function(){if(this.get_indexOfCurrentlyHighlightedItem()===-1){return null;}else{return this.container.childNodes[this.get_indexOfCurrentlyHighlightedItem()];}},findPosLeft:function(el){var $0=0;if(el.offsetParent){do{$0+=el.offsetLeft;el=el.offsetParent;}while(el);}return $0;},findPosTop:function(el){var $0=0;if(el.offsetParent){do{$0+=el.offsetTop;el=el.offsetParent;}while(el);}return $0;}}
ScriptSharpLibrary.Suggestion=function(){}
ScriptSharpLibrary.Suggestion.getPicTitleDetailTemplateHtml=function(imageSrc,title,detail){return String.format('<table cellspacing=\'0\' cellpadding=\'0\'><tr><td width=\'40\'><img src=\'{0}\' border=0 width=40 hspace=0 height=40 style=\'border-right:1px solid #999999;display:block;\'/></td><td style=\'padding:2px 3px 2px 3px;\' valign=\'top\'><b>{1}</b><br />{2}</td></tr></table>',imageSrc,title,detail);}
ScriptSharpLibrary.Suggestion.addSuggestion=function(suggestions,suggestion,maxNumberOfItemsToGet){suggestion.priority=(suggestions.length>0)?suggestions[suggestions.length-1].priority:1;suggestions[(suggestions.length<maxNumberOfItemsToGet)?suggestions.length:suggestions.length-1]=suggestion;}
ScriptSharpLibrary.Suggestion.addSuggestionAtTop=function(suggestions,suggestion){suggestion.priority=(suggestions.length>0)?(suggestions[0].priority+1):1;for(var $0=suggestions.length;$0>0;$0--){var $1=suggestions[$0-1];suggestions[$0-1]=null;suggestions[$0]=$1;}suggestions[0]=suggestion;}
ScriptSharpLibrary.Suggestion.prototype={html:null,text:null,value:null,priority:0}
ScriptSharpLibrary.SuggestionsCollection=function(){this.suggestions=[];}
ScriptSharpLibrary.SuggestionsCollection.prototype={onSuggestionsChanged:null,add:function(newSuggestion){this.$0(newSuggestion);this.$1();if(this.onSuggestionsChanged){this.onSuggestionsChanged();}},$0:function($p0){var $0=0;for($0=0;$0<this.suggestions.length;$0++){var $1=this.suggestions[$0];if($1.value===$p0.value){if($p0.priority<$1.priority){$p0.priority=$1.priority;}break;}}this.suggestions[$0]=$p0;},addRange:function(newSuggestions){for(var $0=0;$0<newSuggestions.length;$0++){this.$0(newSuggestions[$0]);}this.$1();if(this.onSuggestionsChanged){this.onSuggestionsChanged();}},$1:function(){this.suggestions.sort(Function.createDelegate(this,function($p1_0,$p1_1){
return ($p1_1).priority-($p1_0).priority;}));},removeAt:function(index){var $0=this.suggestions.length;var $1=[];for(var $2=0;$2<this.suggestions.length;$2++){if($2===index){continue;}$1[$1.length]=this.suggestions[$2];}this.suggestions=$1;if($0!==this.suggestions.length&&this.onSuggestionsChanged){this.onSuggestionsChanged();}},clear:function(){this.suggestions=[];},get_count:function(){return this.suggestions.length;},get_item:function(index){return (this.suggestions[index]);}}
ScriptSharpLibrary.SuggestionsGetter=function(webServiceUrl,webServiceCommand,maxNumberOfItemsToGet){this.webServiceUrl=webServiceUrl;this.webServiceCommand=webServiceCommand;this.maxNumberOfItemsToGet=maxNumberOfItemsToGet;}
ScriptSharpLibrary.SuggestionsGetter.prototype={suggestionsGot:null,webRequest:null,webServiceUrl:null,webServiceCommand:null,maxNumberOfItemsToGet:0,suggestions:null,requestSuggestions:function(textSoFar){var $0={};$0['text']=textSoFar;$0['maxNumberOfItemsToGet']=this.maxNumberOfItemsToGet;this.cancelRequests();this.webRequest=Sys.Net.WebServiceProxy.invoke(this.webServiceUrl,this.webServiceCommand,true,$0,Function.createDelegate(this,this.successCallback),Function.createDelegate(this,this.failureCallback),textSoFar,-1);},cancelRequests:function(){if(this.webRequest){this.webRequest.get_executor().abort();this.webRequest=null;}},successCallback:function(result,userContext,methodName){this.suggestions=result;if(this.suggestionsGot){this.suggestionsGot(this,Sys.EventArgs.Empty);}},failureCallback:function(error,userContext,methodName){}}
ScriptSharpLibrary.WatermarkExtender=function(el,watermark){this.el=el;this.watermark=watermark;$addHandler(el,'focus',Function.createDelegate(this,this.onFocus));$addHandler(el,'blur',Function.createDelegate(this,this.onBlur));(el)['readOnly']=null;}
ScriptSharpLibrary.WatermarkExtender.prototype={el:null,watermark:null,timeoutId:0,onBlur:function(ev){this.timeoutId=window.setTimeout(Function.createDelegate(this,this.addWatermark),300);},onFocus:function(ev){window.clearTimeout(this.timeoutId);if(this.el.value===this.watermark){this.el.className='';this.el.value='';}},addWatermark:function(){if(this.el.value===''){this.el.className='Watermark';this.el.value=this.watermark;}}}
Type.registerNamespace('ScriptSharpLibrary.HtmlAutoComplete');
ScriptSharpLibrary.HtmlAutoComplete._CometRemoteSuggestionsGetter=function(url){ScriptSharpLibrary.HtmlAutoComplete._CometRemoteSuggestionsGetter.initializeBase(this);this.$4=url;}
ScriptSharpLibrary.HtmlAutoComplete._CometRemoteSuggestionsGetter.prototype={$4:null,$5:null,makeRequest:function($p0,$p1,$p2){var $0=this.$4+'?text='+escape($p0)+'&maxNumberOfItemsToGet='+$p2;var $dict1=$p1;for(var $key2 in $dict1){var $1={key:$key2,value:$dict1[$key2]};$0+='&'+escape($1.key)+'='+escape($1.value.toString());}this.$5=Net.Comet.CometProxy.invoke($0,Function.createDelegate(this,function($p1_0){
if(this.onSuggestionReceived){this.onSuggestionReceived(eval('('+$p1_0+')'));}}),Function.createDelegate(this,function(){
if(this.onAllSuggestionsReceived){this.onAllSuggestionsReceived();}}));},get_$1:function(){return this.$5;},$3:function(){if(this.$5){this.$5.abort();this.$5=null;}}}
ScriptSharpLibrary.HtmlAutoComplete.RemoteSuggestionsGetter=function(){}
ScriptSharpLibrary.HtmlAutoComplete.RemoteSuggestionsGetter.prototype={onSuggestionsGot:null,onSuggestionsRequested:null,onAllSuggestionsReceived:null,onSuggestionReceived:null,onAbortCurrentRequest:null,$0:function($p0,$p1,$p2){if(this.get_$1()){this.$2();}if($p0.length<50){this.makeRequest($p0,$p1,$p2);}if(this.onSuggestionsRequested){this.onSuggestionsRequested();}},$2:function(){this.$3();if(this.onAbortCurrentRequest){this.onAbortCurrentRequest();}}}
ScriptSharpLibrary.HtmlAutoComplete.WebServiceRemoteSuggestionsGetter=function(url,methodName){ScriptSharpLibrary.HtmlAutoComplete.WebServiceRemoteSuggestionsGetter.initializeBase(this);this.url=url;this.methodName=methodName;}
ScriptSharpLibrary.HtmlAutoComplete.WebServiceRemoteSuggestionsGetter.prototype={url:null,methodName:null,webRequest:null,makeRequest:function(text,requestParameters,maxNumberOfItemsToGet){var $0={};$0['text']=text;$0['maxNumberOfItemsToGet']=maxNumberOfItemsToGet;$0['parameters']=requestParameters;if(this.webRequest&&this.webRequest.get_executor().get_started()){this.webRequest.get_executor().abort();}this.webRequest=Sys.Net.WebServiceProxy.invoke(this.url,this.methodName,true,$0,Function.createDelegate(this,this.successCallback),Function.createDelegate(null,Utils.Trace.webServiceFailure),text,-1);},successCallback:function(rawResult,userContext,methodName){if(this.onSuggestionReceived){this.onSuggestionReceived(rawResult);}if(this.onAllSuggestionsReceived){this.onAllSuggestionsReceived();}},get_$1:function(){return this.webRequest;},$3:function(){if(this.webRequest){this.webRequest.get_executor().abort();this.webRequest=null;}}}
Type.registerNamespace('SpottedScript.Controls.PagedData');
SpottedScript.Controls.PagedData._IParameterSource=function(){};SpottedScript.Controls.PagedData._IParameterSource.registerInterface('SpottedScript.Controls.PagedData._IParameterSource');Type.registerNamespace('SpottedScript.Controls.Picker');SpottedScript.Controls.Picker.Controller=function(view){this.regexQuote=new RegExp('\'');this.view=view;Sys.Application.add_navigate(Function.createDelegate(this,this.navigate));if(SpottedScript.Misc.get_browserIsIE()){jQuery(document.body).ready(Function.createDelegate(this,this.initialise));}else{this.initialise();}}
SpottedScript.Controls.Picker.Controller.prototype={view:null,initialise:function(){this.initialiseSearchType();this.initialiseKey();this.initialiseMe();this.initialiseSpotter();this.initialiseBrand();this.initialiseCountry();this.initialisePlace();this.initialiseVenue();this.initialiseMusic();this.initialiseDate();this.initialiseEvent();this.navigateSearchType(this.view.get_selectedSearchTypeHidden().value);this.navigateKey(this.view.get_selectedKeyHidden().value);this.navigateSpotter(this.view.get_selectedSpotterHidden().value);this.navigateBrand(this.view.get_selectedBrandHidden().value);this.navigateCountry(this.view.get_selectedCountryHidden().value);this.navigatePlace(this.view.get_selectedPlaceHidden().value);this.navigateVenue(this.view.get_selectedVenueHidden().value);this.navigateMusic(this.view.get_selectedMusicHidden().value);this.navigateDate(this.view.get_selectedDateHidden().value);this.navigateEvent(this.view.get_selectedEventHidden().value);if(SpottedScript.Misc.get_browserIsIE()){this.addHistory('','');}this.updateUI();this.initialiseFirstUnknownControl();this.view.get_holder().style.display='';},firstEverNavigate:true,navigate:function(sender,e){if(e.get_state()[this.view.clientId+'_SearchType']||e.get_state()[this.view.clientId+'_Key']||e.get_state()[this.view.clientId+'_Spotter']||e.get_state()[this.view.clientId+'_Brand']||e.get_state()[this.view.clientId+'_Country']||e.get_state()[this.view.clientId+'_Place']||e.get_state()[this.view.clientId+'_Venue']||e.get_state()[this.view.clientId+'_Music']||e.get_state()[this.view.clientId+'_Date']||e.get_state()[this.view.clientId+'_Event']){this.navigateSearchType(this.getVal(e,'SearchType'));this.navigateKey(this.getVal(e,'Key'));this.navigateSpotter(this.getVal(e,'Spotter'));this.navigateBrand(this.getVal(e,'Brand'));this.navigateCountry(this.getVal(e,'Country'));this.navigatePlace(this.getVal(e,'Place'));this.navigateVenue(this.getVal(e,'Venue'));this.navigateMusic(this.getVal(e,'Music'));this.navigateDate(this.getVal(e,'Date'));this.navigateEvent(this.getVal(e,'Event'));if(this.firstEverNavigate){this.firstEverNavigate=false;this.updateUI();if(this.eventSelectionSepcificationChanged){this.eventSelectionSepcificationChanged(this,new SpottedScript.Controls.Picker.EventSelectionArgs(this.getCurrentEventSelectionSepcification()));}if(this.get_event()&&(this.get_searchType()===7||this.get_searchType()===2||this.get_searchType()===1)&&this.selectedEventChanged){this.selectedEventChanged(this,new SpottedScript.Controls.Picker.ObjectArgs(this.get_event()));}if(this.get_venue()&&this.get_searchType()===1&&this.selectedVenueChanged){this.selectedVenueChanged(this,new SpottedScript.Controls.Picker.ObjectArgs(this.get_venue()));}if(this.get_place()&&(this.get_searchType()===1||this.get_searchType()===3)&&this.selectedPlaceChanged){this.selectedPlaceChanged(this,new SpottedScript.Controls.Picker.ObjectArgs(this.get_place()));}if(this.get_country()&&(this.get_searchType()===1||this.get_searchType()===3)&&this.selectedCountryChanged){this.selectedCountryChanged(this,new SpottedScript.Controls.Picker.ObjectArgs(this.get_country()));}if(this.get_brand()&&this.get_searchType()===2&&this.selectedBrandChanged){this.selectedBrandChanged(this,new SpottedScript.Controls.Picker.ObjectArgs(this.get_brand()));}if(this.get_spotter()&&this.get_spotter().length>0&&this.get_searchType()===5&&this.selectedSpotterChanged){this.selectedSpotterChanged(this,new SpottedScript.Controls.Picker.StringArgs(this.get_spotter()));}if(this.get_key()&&this.get_key().length>0&&this.get_searchType()===7&&this.selectedKeyChanged){this.selectedKeyChanged(this,new SpottedScript.Controls.Picker.StringArgs(this.get_key()));}}}},getVal:function(e,item){return (!e.get_state()[this.view.clientId+'_'+item])?'':decodeURI(e.get_state()[this.view.clientId+'_'+item].toString());},updateUI:function(){this.updateUISearchType();this.updateUIKey(false);this.updateUISpotter();this.updateUIBrand(false);this.updateUICountry(false);this.updateUIPlace(false);this.updateUIVenue(false);this.updateUIMusic(false);this.updateUIDate(false);this.updateUIEvent();},eventSelectionSepcificationChanged:null,getCurrentEventSelectionSepcification:function(){return new SpottedScript.Controls.Picker.EventSelectionSpecification((this.get_searchType()===2)?this.get_brand():null,(this.get_searchType()===1||this.get_searchType()===3)?this.get_place():null,(this.get_searchType()===1)?this.get_venue():null,(this.get_searchType()===3)?this.get_music():null,this.get_date(),this.get_searchType()===6);},fireEventSelectionChange:function(){if(this.eventSelectionSepcificationChanged){this.eventSelectionSepcificationChanged(this,new SpottedScript.Controls.Picker.EventSelectionArgs(this.getCurrentEventSelectionSepcification()));}},get_searchType:function(){if(this.get_searchTypeHasMultipleOptions()){return (this.view.get_selectedSearchTypeHidden().value==='key')?7:(this.view.get_selectedSearchTypeHidden().value==='me')?6:(this.view.get_selectedSearchTypeHidden().value==='spotter')?5:(this.view.get_selectedSearchTypeHidden().value==='venue')?1:(this.view.get_selectedSearchTypeHidden().value==='brand')?2:(this.view.get_selectedSearchTypeHidden().value==='music')?3:(this.view.get_selectedSearchTypeHidden().value==='google')?4:0;}else if(this.get_optionKey()){return 7;}else if(this.get_optionMe()){return 6;}else if(this.get_optionSpotter()){return 5;}else if(this.get_optionBrand()){return 2;}else if(this.get_optionCountry()){return 1;}else if(this.get_optionMusic()){return 3;}else if(this.get_optionGoogle()){return 4;}else{return 0;}},get_searchTypeHasMultipleOptions:function(){var $0=((this.get_optionKey())?1:0)+((this.get_optionMe())?1:0)+((this.get_optionSpotter())?1:0)+((this.get_optionBrand())?1:0)+((this.get_optionCountry())?1:0)+((this.get_optionMusic())?1:0)+((this.get_optionGoogle())?1:0);return $0>1;},initialiseSearchType:function(){$addHandler(this.view.get_searchTypeKey(),'click',Function.createDelegate(this,this.searchTypeRadioClick));$addHandler(this.view.get_searchTypeMe(),'click',Function.createDelegate(this,this.searchTypeRadioClick));$addHandler(this.view.get_searchTypeSpotter(),'click',Function.createDelegate(this,this.searchTypeRadioClick));$addHandler(this.view.get_searchTypeVenue(),'click',Function.createDelegate(this,this.searchTypeRadioClick));$addHandler(this.view.get_searchTypeBrand(),'click',Function.createDelegate(this,this.searchTypeRadioClick));$addHandler(this.view.get_searchTypeMusic(),'click',Function.createDelegate(this,this.searchTypeRadioClick));$addHandler(this.view.get_searchTypeGoogle(),'click',Function.createDelegate(this,this.searchTypeRadioClick));this.view.get_searchTypeKey().parentNode.style.display=(this.get_optionKey())?'block':'none';this.view.get_searchTypeMe().parentNode.style.display=(this.get_optionMe())?'block':'none';this.view.get_searchTypeSpotter().parentNode.style.display=(this.get_optionSpotter())?'block':'none';this.view.get_searchTypeVenue().parentNode.style.display=(this.get_optionVenue())?'block':'none';this.view.get_searchTypeBrand().parentNode.style.display=(this.get_optionBrand())?'block':'none';this.view.get_searchTypeMusic().parentNode.style.display=(this.get_optionMusic())?'block':'none';this.view.get_searchTypeGoogle().parentNode.style.display=(this.get_optionGoogle())?'block':'none';},searchTypeRadioClick:function(e){var $0=(this.view.get_searchTypeKey().checked)?'key':(this.view.get_searchTypeMe().checked)?'me':(this.view.get_searchTypeSpotter().checked)?'spotter':(this.view.get_searchTypeVenue().checked)?'venue':(this.view.get_searchTypeBrand().checked)?'brand':(this.view.get_searchTypeMusic().checked)?'music':(this.view.get_searchTypeGoogle().checked)?'google':'unknown';if($0==='unknown'){if(this.get_searchType()===7){this.view.get_searchTypeKey().checked=true;}else if(this.get_searchType()===6){this.view.get_searchTypeMe().checked=true;}else if(this.get_searchType()===5){this.view.get_searchTypeSpotter().checked=true;}else if(this.get_searchType()===1){this.view.get_searchTypeVenue().checked=true;}else if(this.get_searchType()===2){this.view.get_searchTypeBrand().checked=true;}else if(this.get_searchType()===3){this.view.get_searchTypeMusic().checked=true;}else if(this.get_searchType()===4){this.view.get_searchTypeGoogle().checked=true;}if(!this.firstEverNavigate){if(this.eventSelectionSepcificationChanged){this.eventSelectionSepcificationChanged(this,new SpottedScript.Controls.Picker.EventSelectionArgs(null));}}}else{this.addHistory('SearchType',$0);this.initialiseFirstUnknownControl();this.initialiseEventDropDown();if(!this.firstEverNavigate){if(this.eventSelectionSepcificationChanged){this.eventSelectionSepcificationChanged(this,new SpottedScript.Controls.Picker.EventSelectionArgs(this.getCurrentEventSelectionSepcification()));}}}},initialiseFirstUnknownControl:function(){if(this.get_searchType()===5){if(!this.get_spotter().length){this.initialiseSpotterControl();}}else if(this.get_searchType()===7){if(!this.get_key().length){this.initialiseKeyControl();}}else if(this.get_searchType()===2){if(!this.get_brand()){this.initialiseBrandDropDown();}else if(!this.get_event()){this.initialiseEventDropDown();}}else if(this.get_searchType()===1||this.get_searchType()===3){if(!this.get_country()){this.initialiseCountryDropDown();}else if(!this.get_place()){this.initialisePlaceDropDown();}else if(this.get_searchType()===1&&!this.get_venue()||this.get_searchType()===3){if(this.get_searchType()===1&&!this.get_venue()){this.initialiseVenueDropDown(null);}else if(this.get_searchType()===3){this.initialiseMusicDropDown();}}else if(!this.get_event()){this.initialiseEventDropDown();}}else if(this.get_searchType()===4){}},navigateSearchTypePreviousValue:'',navigateSearchType:function(value){if(!value.length||value===this.navigateSearchTypePreviousValue){return;}if(value==='key'&&!this.view.get_searchTypeKey().checked){this.view.get_searchTypeKey().checked=true;}if(value==='me'&&!this.view.get_searchTypeMe().checked){this.view.get_searchTypeMe().checked=true;}if(value==='spotter'&&!this.view.get_searchTypeSpotter().checked){this.view.get_searchTypeSpotter().checked=true;}if(value==='venue'&&!this.view.get_searchTypeVenue().checked){this.view.get_searchTypeVenue().checked=true;}if(value==='brand'&&!this.view.get_searchTypeBrand().checked){this.view.get_searchTypeBrand().checked=true;}if(value==='music'&&!this.view.get_searchTypeMusic().checked){this.view.get_searchTypeMusic().checked=true;}if(value==='google'&&!this.view.get_searchTypeGoogle().checked){this.view.get_searchTypeGoogle().checked=true;}this.view.get_selectedSearchTypeHidden().value=value;if(!this.firstEverNavigate){this.updateUI();}this.navigateSearchTypePreviousValue=value;},updateUISearchType:function(){this.view.get_searchTypeHolder().style.display=(this.get_searchTypeHasMultipleOptions())?'':'none';},get_optionKey:function(){return Boolean.parse(this.view.get_optionKeyHidden().value);},selectedKeyChanged:null,keyControlIsInitialised:false,get_key:function(){if(!this.get_optionKey()||!this.view.get_selectedKeyHidden().value){return '';}return this.view.get_selectedKeyHidden().value;},initialiseKey:function(){if(!this.get_optionKey()){return;}$addHandler(this.view.get_keySearchButton(),'click',Function.createDelegate(this,this.keyChange));$addHandler(this.view.get_keySelectedChangeLink(),'click',Function.createDelegate(this,this.keySelectedChangeLinkClick));},keySelectedChangeLinkClick:function(e){e.preventDefault();this.initialiseKeyControl();},initialiseKeyControl:function(){if(!this.get_optionKey()){return;}this.keyControlIsInitialised=true;if(this.get_key()&&this.get_key().length>0){this.view.get_keyTextBox().value=this.get_key();}this.updateUIKey(true);},keyChange:function(e){e.preventDefault();if(!this.view.get_keyTextBox().value||!this.view.get_keyTextBox().value.length){return;}this.addHistory('Key',this.view.get_keyTextBox().value);this.initialiseEventDropDown();},navigateKeyPreviousValue:'',navigateKey:function(value){if(!this.get_optionKey()||!value.length||value===this.navigateKeyPreviousValue){return;}if(value==='0'){this.view.get_keyTextBox().value='';this.view.get_keySelectedLabel().innerHTML='None selected';this.view.get_selectedKeyHidden().value='';if(!this.firstEverNavigate){if(this.selectedKeyChanged){this.selectedKeyChanged(this,new SpottedScript.Controls.Picker.StringArgs(null));}}}else{if(this.keyControlIsInitialised&&this.view.get_keyTextBox().value!==value){this.view.get_keyTextBox().value=value;}if(!this.keyControlIsInitialised){this.view.get_keySelectedLabel().innerHTML=value;}this.view.get_selectedKeyHidden().value=value;if(!this.firstEverNavigate){if(this.selectedKeyChanged){this.selectedKeyChanged(this,new SpottedScript.Controls.Picker.StringArgs(value));}}}this.navigateKeyPreviousValue=value;},updateUIKey:function(recursive){this.view.get_keyHolder().style.display=(this.get_optionKey()&&this.get_searchType()===7)?'':'none';this.view.get_keySelectedHolder().style.display=(!this.keyControlIsInitialised)?'':'none';this.view.get_keyChoiceHolder().style.display=(this.keyControlIsInitialised)?'':'none';if(recursive){this.updateUIEvent();}},get_optionMe:function(){return Boolean.parse(this.view.get_optionMeHidden().value);},initialiseMe:function(){},get_optionSpotter:function(){return Boolean.parse(this.view.get_optionSpotterHidden().value);},selectedSpotterChanged:null,spotterControlIsInitialised:false,get_spotter:function(){if(!this.get_optionSpotter()||!this.view.get_selectedSpotterHidden().value){return '';}return this.view.get_selectedSpotterHidden().value;},initialiseSpotter:function(){if(!this.get_optionSpotter()){return;}$addHandler(this.view.get_spotterSearchButton(),'click',Function.createDelegate(this,this.spotterChange));$addHandler(this.view.get_spotterSelectedChangeLink(),'click',Function.createDelegate(this,this.spotterSelectedChangeLinkClick));},spotterSelectedChangeLinkClick:function(e){e.preventDefault();this.initialiseSpotterControl();},initialiseSpotterControl:function(){if(!this.get_optionSpotter()){return;}this.spotterControlIsInitialised=true;if(this.get_spotter()&&this.get_spotter().length>0){this.view.get_spotterTextBox().value=this.get_spotter();}this.updateUISpotter();},spotterChange:function(e){e.preventDefault();if(!this.view.get_spotterTextBox().value||!this.view.get_spotterTextBox().value.length){return;}this.addHistory('Spotter',this.view.get_spotterTextBox().value);},navigateSpotterPreviousValue:'',navigateSpotter:function(value){if(!this.get_optionSpotter()||!value.length||value===this.navigateSpotterPreviousValue){return;}if(!value.length){this.view.get_spotterTextBox().value='';this.view.get_spotterSelectedLabel().innerHTML='None selected';this.view.get_selectedSpotterHidden().value='';if(!this.firstEverNavigate){if(this.selectedSpotterChanged){this.selectedSpotterChanged(this,new SpottedScript.Controls.Picker.StringArgs(null));}}}else{if(this.spotterControlIsInitialised&&this.view.get_spotterTextBox().value!==value){this.view.get_spotterTextBox().value=value;}if(!this.spotterControlIsInitialised){this.view.get_spotterSelectedLabel().innerHTML=value;}this.view.get_selectedSpotterHidden().value=value;if(!this.firstEverNavigate){if(this.selectedSpotterChanged){this.selectedSpotterChanged(this,new SpottedScript.Controls.Picker.StringArgs(value));}}}this.navigateSpotterPreviousValue=value;},updateUISpotter:function(){this.view.get_spotterHolder().style.display=(this.get_optionSpotter()&&this.get_searchType()===5)?'':'none';this.view.get_spotterSelectedHolder().style.display=(!this.spotterControlIsInitialised)?'':'none';this.view.get_spotterChoiceHolder().style.display=(this.spotterControlIsInitialised)?'':'none';},get_optionBrand:function(){return Boolean.parse(this.view.get_optionBrandHidden().value);},selectedBrandChanged:null,brandDropDownIsInitialised:false,get_brand:function(){if(!this.get_optionBrand()||!this.view.get_selectedBrandHidden().value||!this.view.get_selectedBrandHidden().value.length){return null;}return SpottedScript.Controls.Picker.ObjectStub.fromString(this.view.get_selectedBrandHidden().value);},initialiseBrand:function(){if(!this.get_optionBrand()){return;}this.view.get_brandAutoComplete().itemChosen=Function.createDelegate(this,this.brandDropDownChange);$addHandler(this.view.get_brandSelectedChangeLink(),'click',Function.createDelegate(this,this.brandSelectedChangeLinkClick));},brandSelectedChangeLinkClick:function(e){e.preventDefault();this.initialiseBrandDropDown();},initialiseBrandDropDown:function(){if(!this.get_optionBrand()){return;}this.brandDropDownIsInitialised=true;if(this.get_brand()){this.view.get_brandAutoComplete().set_value(this.get_brand().k.toString());this.view.get_brandAutoComplete().set_text(this.get_brand().name);}this.updateUIBrand(true);},brandDropDownChange:function(e){if(!e.value||!e.value.length){return;}var $0=new SpottedScript.Controls.Picker.ObjectStub(Number.parseInvariant(e.value),e.key);if(!$0.k){return;}else{this.addHistory('Brand',$0.toString());this.initialiseDateDropDowns();this.initialiseEventDropDown();}},navigateBrandPreviousValue:'',navigateBrand:function(value){if(!this.get_optionBrand()||!value.length||value===this.navigateBrandPreviousValue){return;}if(value==='0'){this.view.get_brandAutoComplete().set_text('');this.view.get_brandAutoComplete().set_value('');this.view.get_brandSelectedLabel().innerHTML='None selected';this.view.get_selectedBrandHidden().value='';if(!this.firstEverNavigate){if(this.selectedBrandChanged){this.selectedBrandChanged(this,new SpottedScript.Controls.Picker.ObjectArgs(null));}if(this.eventSelectionSepcificationChanged){this.eventSelectionSepcificationChanged(this,new SpottedScript.Controls.Picker.EventSelectionArgs(null));}}}else{var $0=SpottedScript.Controls.Picker.ObjectStub.fromString(value);if(this.brandDropDownIsInitialised&&this.view.get_brandAutoComplete().get_value()!==$0.k.toString()){this.view.get_brandAutoComplete().set_value($0.k.toString());this.view.get_brandAutoComplete().set_text($0.name);}if(!this.brandDropDownIsInitialised){this.view.get_brandSelectedLabel().innerHTML=$0.name;}this.view.get_selectedBrandHidden().value=$0.toString();if(!this.firstEverNavigate){if(this.selectedBrandChanged){this.selectedBrandChanged(this,new SpottedScript.Controls.Picker.ObjectArgs($0));}if(this.eventSelectionSepcificationChanged){this.eventSelectionSepcificationChanged(this,new SpottedScript.Controls.Picker.EventSelectionArgs(new SpottedScript.Controls.Picker.EventSelectionSpecification((this.get_searchType()===2)?$0:null,(this.get_searchType()===1||this.get_searchType()===3)?this.get_place():null,(this.get_searchType()===1)?this.get_venue():null,(this.get_searchType()===3)?this.get_music():null,this.get_date(),this.get_searchType()===6)));}}}this.navigateBrandPreviousValue=value;},updateUIBrand:function(recursive){this.view.get_brandHolder().style.display=(this.get_optionBrand()&&this.get_searchType()===2)?'':'none';this.view.get_brandSelectedHolder().style.display=(!this.brandDropDownIsInitialised)?'':'none';this.view.get_brandChoiceHolder().style.display=(this.brandDropDownIsInitialised)?'':'none';if(recursive){this.updateUIDate(true);}},get_optionCountry:function(){return Boolean.parse(this.view.get_optionCountryHidden().value);},selectedCountryChanged:null,countryDropDownJ:null,countryDropDownIsInitialised:false,get_country:function(){if(!this.get_optionCountry()||!this.view.get_selectedCountryHidden().value||!this.view.get_selectedCountryHidden().value.length){return null;}return SpottedScript.Controls.Picker.ObjectStub.fromString(this.view.get_selectedCountryHidden().value);},initialiseCountry:function(){if(!this.get_optionCountry()){return;}this.countryDropDownJ=jQuery(this.view.get_countryDropDown());$addHandler(this.view.get_countryDropDown(),'change',Function.createDelegate(this,this.countryDropDownChange));$addHandler(this.view.get_countrySelectedChangeLink(),'click',Function.createDelegate(this,this.countrySelectedChangeLinkClick));},countrySelectedChangeLinkClick:function(e){e.preventDefault();this.initialiseCountryDropDown();},initialiseCountryDropDown:function(){if(!this.get_optionCountry()){return;}if(!this.countryDropDownIsInitialised){this.countryDropDownJ.ajaxAddOption('/support/getcached.aspx?type=country',null,false,Function.createDelegate(this,this.countryDropDownInitialised),null);}else{this.countryDropDownInitialised();}},countryDropDownInitialised:function(){this.countryDropDownIsInitialised=true;if(this.get_country()){var $0=this.setK(this.view.get_countryDropDown(),this.get_country().k);if(!$0){this.addHistorys(['Country','0','Place','0','Venue','0','Event','0']);}}this.updateUICountry(true);},countryDropDownChange:function(e){var $0=new SpottedScript.Controls.Picker.ObjectStub(this.getK(this.view.get_countryDropDown()),this.getText(this.view.get_countryDropDown()));if(!$0.k){if(!this.get_country()){this.setIndex(this.view.get_countryDropDown(),0);}else{this.setK(this.view.get_countryDropDown(),this.get_country().k);}}else{this.addHistory('Country',$0.toString());this.initialisePlaceDropDown();}},navigateCountryPreviousValue:'',navigateCountry:function(value){if(!this.get_optionCountry()||!value.length||value===this.navigateCountryPreviousValue){return;}if(value==='0'){this.setIndex(this.view.get_countryDropDown(),0);this.view.get_countrySelectedLabel().innerHTML='None selected';this.view.get_selectedCountryHidden().value='';if(this.selectedCountryChanged){this.selectedCountryChanged(this,new SpottedScript.Controls.Picker.ObjectArgs(null));}}else{var $0=SpottedScript.Controls.Picker.ObjectStub.fromString(value);if(this.countryDropDownIsInitialised&&this.getK(this.view.get_countryDropDown())!==$0.k){this.setK(this.view.get_countryDropDown(),$0.k);}if(!this.countryDropDownIsInitialised){this.view.get_countrySelectedLabel().innerHTML=$0.name;}this.view.get_selectedCountryHidden().value=$0.toString();if(this.selectedCountryChanged){this.selectedCountryChanged(this,new SpottedScript.Controls.Picker.ObjectArgs($0));}}this.navigateCountryPreviousValue=value;},updateUICountry:function(recursive){this.view.get_countryHolder().style.display=(this.get_optionCountry()&&(this.get_searchType()===1||this.get_searchType()===3))?'':'none';this.view.get_countrySelectedHolder().style.display=(!this.countryDropDownIsInitialised)?'':'none';this.view.get_countryChoiceHolder().style.display=(this.countryDropDownIsInitialised)?'':'none';if(recursive){this.updateUIPlace(true);}},get_optionPlace:function(){return Boolean.parse(this.view.get_optionPlaceHidden().value);},selectedPlaceChanged:null,placeDropDownJ:null,placeDropDownIsInitialised:false,placeDropDownCountryK:0,placeDropDownPreviouslySelectedIndex:0,get_place:function(){if(!this.get_optionPlace()||!this.view.get_selectedPlaceHidden().value||!this.view.get_selectedPlaceHidden().value.length){return null;}return SpottedScript.Controls.Picker.ObjectStub.fromString(this.view.get_selectedPlaceHidden().value);},initialisePlace:function(){if(!this.get_optionPlace()){return;}this.placeDropDownJ=jQuery(this.view.get_placeDropDown());$addHandler(this.view.get_placeDropDown(),'change',Function.createDelegate(this,this.placeDropDownChange));$addHandler(this.view.get_placeSelectedChangeLink(),'click',Function.createDelegate(this,this.placeSelectedChangeLinkClick));},placeSelectedChangeLinkClick:function(e){e.preventDefault();this.initialisePlaceDropDown();},initialisePlaceDropDown:function(){if(!this.get_optionPlace()){return;}if(!this.placeDropDownIsInitialised||this.placeDropDownCountryK!==this.get_country().k){this.placeDropDownCountryK=this.get_country().k;this.placeDropDownJ.ajaxAddOption('/support/getcached.aspx?type=place&countryk='+this.get_country().k+'&return=k',null,false,Function.createDelegate(this,this.placeDropDownInitialised),null);}else{this.placeDropDownInitialised();}},placeDropDownInitialised:function(){this.placeDropDownIsInitialised=true;if(this.get_place()){var $0=this.setK(this.view.get_placeDropDown(),this.get_place().k);if(!$0){this.addHistorys(['Place','0','Venue','0','Event','0']);}}this.placeDropDownPreviouslySelectedIndex=this.getIndex(this.view.get_placeDropDown());this.updateUIPlace(true);},placeDropDownChange:function(e){var $0=this.getK(this.view.get_placeDropDown());if($0>0){var $1=new SpottedScript.Controls.Picker.ObjectStub(this.getK(this.view.get_placeDropDown()),this.getText(this.view.get_placeDropDown()));this.addHistory('Place',$1.toString());this.initialiseVenueDropDown(null);this.initialiseDateDropDowns();this.initialiseMusicDropDown();}else{this.setIndex(this.view.get_placeDropDown(),this.placeDropDownPreviouslySelectedIndex);}this.placeDropDownPreviouslySelectedIndex=this.getIndex(this.view.get_placeDropDown());},navigatePlacePreviousValue:'',navigatePlace:function(value){if(!this.get_optionPlace()||!value.length||value===this.navigatePlacePreviousValue){return;}if(value==='0'){this.setIndex(this.view.get_placeDropDown(),0);this.view.get_placeSelectedLabel().innerHTML='None selected';this.view.get_selectedPlaceHidden().value='';if(!this.firstEverNavigate){if(this.selectedPlaceChanged){this.selectedPlaceChanged(this,new SpottedScript.Controls.Picker.ObjectArgs(null));}if(this.eventSelectionSepcificationChanged){this.eventSelectionSepcificationChanged(this,new SpottedScript.Controls.Picker.EventSelectionArgs(null));}}}else{var $0=SpottedScript.Controls.Picker.ObjectStub.fromString(value);if(this.placeDropDownIsInitialised&&this.getK(this.view.get_placeDropDown())!==$0.k){this.setK(this.view.get_placeDropDown(),$0.k);}if(!this.placeDropDownIsInitialised){this.view.get_placeSelectedLabel().innerHTML=$0.name;}this.view.get_selectedPlaceHidden().value=$0.toString();if(!this.firstEverNavigate){if(this.selectedPlaceChanged){this.selectedPlaceChanged(this,new SpottedScript.Controls.Picker.ObjectArgs($0));}if(this.eventSelectionSepcificationChanged){this.eventSelectionSepcificationChanged(this,new SpottedScript.Controls.Picker.EventSelectionArgs(new SpottedScript.Controls.Picker.EventSelectionSpecification((this.get_searchType()===2)?this.get_brand():null,(this.get_searchType()===1||this.get_searchType()===3)?$0:null,(this.get_searchType()===1)?this.get_venue():null,(this.get_searchType()===3)?this.get_music():null,this.get_date(),this.get_searchType()===6)));}}}this.navigatePlacePreviousValue=value;},updateUIPlace:function(recursive){this.view.get_placeHolder().style.display=(this.get_optionPlace()&&(this.get_searchType()===1||this.get_searchType()===3)&&this.get_country()&&(!this.placeDropDownIsInitialised||this.placeDropDownCountryK===this.get_country().k))?'':'none';this.view.get_placeSelectedHolder().style.display=(!this.placeDropDownIsInitialised)?'':'none';this.view.get_placeChoiceHolder().style.display=(this.placeDropDownIsInitialised)?'':'none';if(recursive){this.updateUIVenue(true);}},get_optionVenue:function(){return Boolean.parse(this.view.get_optionVenueHidden().value);},selectedVenueChanged:null,venueDropDownJ:null,venueByLetterDropDownJ:null,venueDropDownIsInitialised:false,venueDropDownPlaceK:0,venueByLetterDropDownIsInitialised:false,venueByLetterDropDownPlaceK:0,venueByLetterDropDownLetter:null,venueDropDownPreviouslySelectedIndex:0,get_venue:function(){if(!this.get_optionVenue()||!this.view.get_selectedVenueHidden().value||!this.view.get_selectedVenueHidden().value.length){return null;}return SpottedScript.Controls.Picker.ObjectStub.fromString(this.view.get_selectedVenueHidden().value);},get_venueDropDownIsVenueSelectedCurrently:function(){return this.get_venueDropDownVenueSelectedCurrently()>0;},get_venueDropDownVenueSelectedCurrently:function(){return this.getK(this.view.get_venueDropDown());},get_venueDropDownIsLetterSelectedCurrently:function(){return this.get_venueDropDownLetterSelectedCurrently().length>0;},get_venueDropDownLetterSelectedCurrently:function(){var $0=this.getValue(this.view.get_venueDropDown());if($0.indexOf('*')>-1){return $0.substr($0.length-1,1);}else{return '';}},get_venueByLetterDropDownIsVenueSelectedCurrently:function(){return this.get_venueByLetterDropDownVenueSelectedCurrently()>0;},get_venueByLetterDropDownVenueSelectedCurrently:function(){return this.getK(this.view.get_venueByLetterDropDown());},initialiseVenue:function(){if(!this.get_optionVenue()){return;}this.venueDropDownJ=jQuery(this.view.get_venueDropDown());this.venueByLetterDropDownJ=jQuery(this.view.get_venueByLetterDropDown());$addHandler(this.view.get_venueDropDown(),'change',Function.createDelegate(this,this.venueDropDownChange));$addHandler(this.view.get_venueByLetterDropDown(),'change',Function.createDelegate(this,this.venueByLetterDropDownChange));$addHandler(this.view.get_venueSelectedChangeLink(),'click',Function.createDelegate(this,this.venueSelectedChangeLinkClick));},venueSelectedChangeLinkClick:function(e){e.preventDefault();this.initialiseVenueDropDown(null);},initialiseVenueDropDown:function(changeVenue){if(!this.get_optionVenue()){return;}if(!this.venueDropDownIsInitialised||this.venueDropDownPlaceK!==this.get_place().k){this.venueDropDownPlaceK=this.get_place().k;this.venueDropDownJ.ajaxAddOption('/support/getcached.aspx?type=venue&placek='+this.get_place().k,null,false,Function.createDelegate(this,this.venueDropDownInitialised),[changeVenue]);}else{this.venueDropDownInitialised(changeVenue);}},venueDropDownInitialised:function(changeVenue){this.venueDropDownIsInitialised=true;if(this.get_venue()){var $0=this.setK(this.view.get_venueDropDown(),this.get_venue().k);if(!$0){this.addHistorys(['Venue','0','Event','0']);}}if(changeVenue){var $1=this.setK(this.view.get_venueDropDown(),changeVenue.k);if($1){this.venueDropDownChange(null);}}this.venueDropDownPreviouslySelectedIndex=this.getIndex(this.view.get_venueDropDown());this.updateUIVenue(true);},venueDropDownChange:function(e){if(this.get_venueDropDownIsVenueSelectedCurrently()){var $0=new SpottedScript.Controls.Picker.ObjectStub(this.get_venueDropDownVenueSelectedCurrently(),this.getText(this.view.get_venueDropDown()));this.addHistory('Venue',$0.toString());this.updateUIVenue(true);this.initialiseDateDropDowns();this.initialiseEventDropDown();}else if(this.get_venueDropDownIsLetterSelectedCurrently()){var $1=this.get_venueDropDownLetterSelectedCurrently();if(!this.venueByLetterDropDownIsInitialised||this.venueByLetterDropDownPlaceK!==this.get_place().k||this.venueByLetterDropDownLetter!==$1){this.venueByLetterDropDownPlaceK=this.get_place().k;this.venueByLetterDropDownLetter=$1;this.venueByLetterDropDownJ.ajaxAddOption('/support/getcached.aspx?type=venuebyletter&placek='+this.get_place().k+'&letter='+$1,null,false,Function.createDelegate(this,this.venueByLetterDropDownInitialised),null);}else{this.updateUIVenue(true);}}else{this.setIndex(this.view.get_venueDropDown(),this.venueDropDownPreviouslySelectedIndex);}this.venueDropDownPreviouslySelectedIndex=this.getIndex(this.view.get_venueDropDown());},venueByLetterDropDownChange:function(e){if(this.get_venueByLetterDropDownIsVenueSelectedCurrently()){var $0=new SpottedScript.Controls.Picker.ObjectStub(this.get_venueByLetterDropDownVenueSelectedCurrently(),this.getText(this.view.get_venueByLetterDropDown()));this.addHistory('Venue',$0.toString());this.initialiseDateDropDowns();this.initialiseEventDropDown();}},venueByLetterDropDownInitialised:function(){this.venueByLetterDropDownIsInitialised=true;this.addHistorys(['Venue','0','Event','0']);this.updateUIVenue(true);},navigateVenuePreviousValue:'',navigateVenue:function(value){if(!this.get_optionVenue()||!value.length||value===this.navigateVenuePreviousValue){return;}if(value==='0'){if(!this.get_venueDropDownIsLetterSelectedCurrently()){this.setIndex(this.view.get_venueDropDown(),0);}this.view.get_venueSelectedLabel().innerHTML='None selected';this.view.get_selectedVenueHidden().value='';if(!this.firstEverNavigate){if(this.selectedVenueChanged){this.selectedVenueChanged(this,new SpottedScript.Controls.Picker.ObjectArgs(null));}if(this.eventSelectionSepcificationChanged){this.eventSelectionSepcificationChanged(this,new SpottedScript.Controls.Picker.EventSelectionArgs(null));}}}else{var $0=SpottedScript.Controls.Picker.ObjectStub.fromString(value);if(this.venueDropDownIsInitialised&&this.getK(this.view.get_venueDropDown())!==$0.k){this.setK(this.view.get_venueDropDown(),$0.k);}if(!this.venueDropDownIsInitialised){this.view.get_venueSelectedLabel().innerHTML=$0.name;}this.view.get_selectedVenueHidden().value=$0.toString();if(!this.firstEverNavigate){if(this.selectedVenueChanged){this.selectedVenueChanged(this,new SpottedScript.Controls.Picker.ObjectArgs($0));}if(this.eventSelectionSepcificationChanged){this.eventSelectionSepcificationChanged(this,new SpottedScript.Controls.Picker.EventSelectionArgs(new SpottedScript.Controls.Picker.EventSelectionSpecification((this.get_searchType()===2)?this.get_brand():null,(this.get_searchType()===1||this.get_searchType()===3)?this.get_place():null,(this.get_searchType()===1)?$0:null,(this.get_searchType()===3)?this.get_music():null,this.get_date(),this.get_searchType()===6)));}}}this.navigateVenuePreviousValue=value;},updateUIVenue:function(recursive){this.view.get_venueHolder().style.display=(this.get_optionVenue()&&this.get_searchType()===1&&this.get_place()&&(!this.venueDropDownIsInitialised||this.venueDropDownPlaceK===this.get_place().k))?'':'none';this.view.get_venueByLetterDropDown().style.display=(this.get_optionVenue()&&this.venueByLetterDropDownIsInitialised&&this.get_place()&&this.venueByLetterDropDownPlaceK===this.get_place().k&&this.get_venueDropDownIsLetterSelectedCurrently()&&this.venueByLetterDropDownLetter===this.get_venueDropDownLetterSelectedCurrently())?'':'none';this.view.get_venueSelectedHolder().style.display=(!this.venueDropDownIsInitialised)?'':'none';this.view.get_venueChoiceHolder().style.display=(this.venueDropDownIsInitialised)?'':'none';if(recursive){this.updateUIMusic(true);}},get_optionMusic:function(){return Boolean.parse(this.view.get_optionMusicHidden().value);},selectedMusicChanged:null,musicDropDownJ:null,musicDropDownIsInitialised:false,musicDropDownPreviouslySelectedIndex:0,get_music:function(){if(!this.get_optionMusic()||!this.view.get_selectedMusicHidden().value||!this.view.get_selectedMusicHidden().value.length){return null;}return SpottedScript.Controls.Picker.ObjectStub.fromString(this.view.get_selectedMusicHidden().value);},get_musicIsSelectedCurrently:function(){return this.get_musicSelectedCurrently()>0;},get_musicSelectedCurrently:function(){return this.getK(this.view.get_musicDropDown());},initialiseMusic:function(){if(!this.get_optionMusic()){return;}this.musicDropDownJ=jQuery(this.view.get_musicDropDown());$addHandler(this.view.get_musicDropDown(),'change',Function.createDelegate(this,this.musicDropDownChange));$addHandler(this.view.get_musicSelectedChangeLink(),'click',Function.createDelegate(this,this.musicSelectedChangeLinkClick));},musicSelectedChangeLinkClick:function(e){e.preventDefault();this.initialiseMusicDropDown();},initialiseMusicDropDown:function(){if(!this.get_optionMusic()){return;}if(!this.musicDropDownIsInitialised){this.musicDropDownJ.ajaxAddOption('/support/getcached.aspx?type=music',null,false,Function.createDelegate(this,this.musicDropDownInitialised),null);}else{this.musicDropDownInitialised();}},musicDropDownInitialised:function(){this.musicDropDownIsInitialised=true;if(this.get_music()){var $0=this.setK(this.view.get_musicDropDown(),this.get_music().k);if(!$0){this.addHistorys(['Music','0','Event','0']);}}this.musicDropDownPreviouslySelectedIndex=this.getIndex(this.view.get_musicDropDown());this.updateUIMusic(true);},musicDropDownChange:function(e){if(this.get_musicIsSelectedCurrently()){var $0=this.getText(this.view.get_musicDropDown());if($0.substr(0,4)==='... '){$0=$0.substr(4);}var $1=new SpottedScript.Controls.Picker.ObjectStub(this.get_musicSelectedCurrently(),$0);this.addHistory('Music',$1.toString());this.initialiseDateDropDowns();}else{this.setIndex(this.view.get_musicDropDown(),this.musicDropDownPreviouslySelectedIndex);}this.musicDropDownPreviouslySelectedIndex=this.getIndex(this.view.get_musicDropDown());},navigateMusicPreviousValue:'',navigateMusic:function(value){if(!this.get_optionMusic()||!value.length||value===this.navigateMusicPreviousValue){return;}if(value==='0'){this.setIndex(this.view.get_musicDropDown(),0);this.view.get_musicSelectedLabel().innerHTML='None selected';this.view.get_selectedMusicHidden().value='';if(!this.firstEverNavigate){if(this.selectedMusicChanged){this.selectedMusicChanged(this,new SpottedScript.Controls.Picker.ObjectArgs(null));}if(this.eventSelectionSepcificationChanged){this.eventSelectionSepcificationChanged(this,new SpottedScript.Controls.Picker.EventSelectionArgs(null));}}}else{var $0=SpottedScript.Controls.Picker.ObjectStub.fromString(value);if(this.musicDropDownIsInitialised&&this.getK(this.view.get_musicDropDown())!==$0.k){this.setK(this.view.get_musicDropDown(),$0.k);}if(!this.musicDropDownIsInitialised){this.view.get_musicSelectedLabel().innerHTML=$0.name;}this.view.get_selectedMusicHidden().value=$0.toString();if(!this.firstEverNavigate){if(this.selectedMusicChanged){this.selectedMusicChanged(this,new SpottedScript.Controls.Picker.ObjectArgs($0));}if(this.eventSelectionSepcificationChanged){this.eventSelectionSepcificationChanged(this,new SpottedScript.Controls.Picker.EventSelectionArgs(new SpottedScript.Controls.Picker.EventSelectionSpecification((this.get_searchType()===2)?this.get_brand():null,(this.get_searchType()===1||this.get_searchType()===3)?this.get_place():null,(this.get_searchType()===1)?this.get_venue():null,(this.get_searchType()===3)?$0:null,this.get_date(),this.get_searchType()===6)));}}}this.navigateMusicPreviousValue=value;},updateUIMusic:function(recursive){this.view.get_musicHolder().style.display=(this.get_optionMusic()&&this.get_searchType()===3&&this.get_place())?'':'none';this.view.get_musicSelectedHolder().style.display=(!this.musicDropDownIsInitialised)?'':'none';this.view.get_musicChoiceHolder().style.display=(this.musicDropDownIsInitialised)?'':'none';if(recursive){this.updateUIDate(true);}},get_optionDate:function(){return Boolean.parse(this.view.get_optionDateHidden().value);},get_optionDateDay:function(){return Boolean.parse(this.view.get_optionDateDayHidden().value);},get_optionDateDayIncrement:function(){return Number.parseInvariant(this.view.get_optionDateDayIncrementHidden().value);},selectedDateChanged:null,dateDayDropDownJ:null,dateDropDownsAreInitialised:false,get_date:function(){if(!this.get_optionDate()||!this.view.get_selectedDateHidden().value||!this.view.get_selectedDateHidden().value.length){var $1=new Date();return new SpottedScript.Controls.Picker.DateStub($1.getFullYear(),$1.getMonth()+1,(this.get_optionDateDay())?$1.getDate():0);}var $0=SpottedScript.Controls.Picker.DateStub.fromString(this.view.get_selectedDateHidden().value);if(!this.get_optionDateDay()){$0.day=0;}return $0;},dateMonths:null,initialiseDate:function(){if(!this.get_optionDate()){return;}this.dateDayDropDownJ=jQuery(this.view.get_dateDayDropDown());this.dateMonths=['','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];$addHandler(this.view.get_dateDayDropDown(),'change',Function.createDelegate(this,this.dateDayDropDownChange));$addHandler(this.view.get_dateMonthDropDown(),'change',Function.createDelegate(this,this.dateMonthDropDownChange));$addHandler(this.view.get_dateYearTextBox(),'change',Function.createDelegate(this,this.dateYearTextBoxChange));$addHandler(this.view.get_dateYearTextBox(),'keyup',Function.createDelegate(this,this.dateYearTextBoxKeyUp));$addHandler(this.view.get_dateYearPlusImg(),'click',Function.createDelegate(this,this.dateYearPlusClick));$addHandler(this.view.get_dateYearMinusImg(),'click',Function.createDelegate(this,this.dateYearMinusClick));$addHandler(this.view.get_dateSelectedChangeLink(),'click',Function.createDelegate(this,this.dateSelectedChangeLinkClick));$addHandler(this.view.get_dateMonthPlusImg(),'click',Function.createDelegate(this,this.dateMonthPlusClick));$addHandler(this.view.get_dateMonthMinusImg(),'click',Function.createDelegate(this,this.dateMonthMinusClick));$addHandler(this.view.get_dateDayPlusImg(),'click',Function.createDelegate(this,this.dateDayPlusClick));$addHandler(this.view.get_dateDayMinusImg(),'click',Function.createDelegate(this,this.dateDayMinusClick));},dateSelectedChangeLinkClick:function(e){e.preventDefault();this.initialiseDateDropDowns();},initialiseDateDropDowns:function(){if(!this.get_optionDate()){return;}if(!this.dateDropDownsAreInitialised){for(var $1=1;$1<=12;$1++){this.addOption(this.view.get_dateMonthDropDown(),$1.toString(),this.dateMonths[$1]);}var $0=this.get_date();this.view.get_dateYearTextBox().value=$0.year.toString();this.setValue(this.view.get_dateMonthDropDown(),$0.month.toString());this.dateRefreshDays($0.year,$0.month);this.setValue(this.view.get_dateDayDropDown(),$0.day.toString());this.dateDropDownsAreInitialised=true;}this.updateUIDate(true);},dateRefreshDaysHasRunBefore:false,dateRefreshDaysPreviousNumberOfDaysInMonth:0,dateRefreshDaysPreviousFirstDayOfWeek:0,dateRefreshDays:function(year,month){if(!this.get_optionDateDay()){return;}var $0=SpottedScript.Controls.Picker.DateStub.daysInMonth(year,month);var $1=new Date(year,month-1,1).getDay();if(!this.dateRefreshDaysHasRunBefore||this.dateRefreshDaysPreviousNumberOfDaysInMonth!==$0||this.dateRefreshDaysPreviousFirstDayOfWeek!==$1){this.dateRefreshDaysPreviousNumberOfDaysInMonth=$0;this.dateRefreshDaysPreviousFirstDayOfWeek=$1;var $2=this.getIndex(this.view.get_dateDayDropDown());this.dateDayDropDownJ.removeAll();for(var $3=1;$3<=$0;$3++){var $4=new Date(year,month-1,$3).getDay();this.addOption(this.view.get_dateDayDropDown(),$3.toString(),(($3<10)?'0':'')+$3.toString()+(($4===6)?' Sat':(!$4)?' Sun':''));}if($2>-1){this.setIndex(this.view.get_dateDayDropDown(),$2);}this.dateRefreshDaysHasRunBefore=true;}},dateDayDropDownChange:function(e){var $0=this.getValueInt(this.view.get_dateDayDropDown());var $1=new SpottedScript.Controls.Picker.DateStub(this.get_date().year,this.get_date().month,$0);this.addHistory('Date',$1.toString());this.initialiseEventDropDown();},dateMonthDropDownChange:function(e){var $0=this.getValueInt(this.view.get_dateMonthDropDown());this.dateRefreshDays(this.get_date().year,$0);var $1=(this.get_optionDateDay())?this.getValueInt(this.view.get_dateDayDropDown()):0;var $2=new SpottedScript.Controls.Picker.DateStub(this.get_date().year,$0,$1);this.addHistory('Date',$2.toString());this.initialiseEventDropDown();},dateYearTextBoxKeyUp:function(e){this.dateYearTextBoxKeyUpChange(false);},dateYearTextBoxChange:function(e){this.dateYearTextBoxKeyUpChange(true);},dateYearTextBoxKeyUpChange:function(change){try{var $0=new RegExp('[^0-9]','g');if(!$0.test(this.view.get_dateYearTextBox().value)){var $1=Number.parseInvariant(this.view.get_dateYearTextBox().value);if($1>1900&&$1<2100){if($1!==this.get_date().year){this.dateRefreshDays($1,this.get_date().month);var $2=(this.get_optionDateDay())?this.getValueInt(this.view.get_dateDayDropDown()):0;var $3=new SpottedScript.Controls.Picker.DateStub($1,this.get_date().month,$2);this.addHistory('Date',$3.toString());this.initialiseEventDropDown();}}else{if(change){this.view.get_dateYearTextBox().value=this.get_date().year.toString();}}}else{if(change){this.view.get_dateYearTextBox().value=this.get_date().year.toString();}}}catch($4){if(change){this.view.get_dateYearTextBox().value=this.get_date().year.toString();}}},dateYearPlusClick:function(e){this.datePlusMinus(1,'y');},dateYearMinusClick:function(e){this.datePlusMinus(-1,'y');},dateMonthPlusClick:function(e){this.datePlusMinus(1,'m');},dateMonthMinusClick:function(e){this.datePlusMinus(-1,'m');},dateDayPlusClick:function(e){this.datePlusMinus(this.get_optionDateDayIncrement(),'d');},dateDayMinusClick:function(e){this.datePlusMinus(-this.get_optionDateDayIncrement(),'d');},dateChangePrivate:function(newDate){var $0=new SpottedScript.Controls.Picker.DateStub(this.get_date().year,this.get_date().month,this.get_date().day);if(newDate.year!==$0.year||newDate.month!==$0.month){this.dateRefreshDays(newDate.year,newDate.month);}if(newDate.day!==$0.day){this.setValue(this.view.get_dateDayDropDown(),newDate.day.toString());}if(newDate.month!==$0.month){this.setValue(this.view.get_dateMonthDropDown(),newDate.month.toString());}if(newDate.year!==$0.year){this.view.get_dateYearTextBox().value=newDate.year.toString();}if(!this.get_optionDateDay()&&newDate.day>0){newDate.day=0;}this.addHistory('Date',newDate.toString());this.initialiseEventDropDown();},datePlusMinus:function(modifier,unit){var $0=new SpottedScript.Controls.Picker.DateStub(this.get_date().year,this.get_date().month,this.get_date().day).modify(modifier,unit);this.dateChangePrivate($0);return $0;},dateModify:function(modifier,unit){return this.datePlusMinus(modifier,unit);},dateChange:function(newDate){this.dateChangePrivate(newDate);},navigateDatePreviousValue:'',navigateDate:function(value){if(!this.get_optionDate()||!value.length||value===this.navigateDatePreviousValue){return;}if(value==='0'){this.view.get_dateSelectedLabel().innerHTML='None selected';this.view.get_selectedDateHidden().value='';if(!this.firstEverNavigate){if(this.selectedDateChanged){this.selectedDateChanged(this,new SpottedScript.Controls.Picker.DateArgs(null));}if(this.eventSelectionSepcificationChanged){this.eventSelectionSepcificationChanged(this,new SpottedScript.Controls.Picker.EventSelectionArgs(null));}}}else{var $0=SpottedScript.Controls.Picker.DateStub.fromString(value);if(this.dateDropDownsAreInitialised){this.view.get_dateYearTextBox().value=$0.year.toString();this.setValue(this.view.get_dateMonthDropDown(),$0.month.toString());this.dateRefreshDays($0.year,$0.month);this.setValue(this.view.get_dateDayDropDown(),$0.day.toString());}if(!this.dateDropDownsAreInitialised){this.view.get_dateSelectedLabel().innerHTML=$0.toFriendlyString();}this.view.get_selectedDateHidden().value=$0.toString();if(!this.firstEverNavigate){if(this.selectedDateChanged){this.selectedDateChanged(this,new SpottedScript.Controls.Picker.DateArgs($0));}if(this.eventSelectionSepcificationChanged){this.eventSelectionSepcificationChanged(this,new SpottedScript.Controls.Picker.EventSelectionArgs(new SpottedScript.Controls.Picker.EventSelectionSpecification((this.get_searchType()===2)?this.get_brand():null,(this.get_searchType()===1||this.get_searchType()===3)?this.get_place():null,(this.get_searchType()===1)?this.get_venue():null,(this.get_searchType()===3)?this.get_music():null,$0,this.get_searchType()===6)));}}}this.navigateDatePreviousValue=value;},updateUIDate:function(recursive){this.view.get_dateHolder().style.display=(this.get_optionDate()&&((this.get_searchType()===1&&this.get_venue())||(this.get_searchType()===1&&!this.get_optionVenue()&&this.get_place())||(this.get_searchType()===3&&this.get_place()&&this.get_music())||(this.get_searchType()===2&&this.get_brand())))?'':'none';this.view.get_dateDayHolder().style.display=(this.get_optionDateDay())?'':'none';this.view.get_dateSelectedHolder().style.display=(!this.dateDropDownsAreInitialised)?'':'none';this.view.get_dateChoiceHolder().style.display=(this.dateDropDownsAreInitialised)?'':'none';if(recursive){this.updateUIEvent();}},get_optionEvent:function(){return Boolean.parse(this.view.get_optionEventHidden().value);},selectedEventChanged:null,eventListBoxJ:null,eventDropDownIsInitialised:false,eventDropDownVenueK:0,eventDropDownBrandK:0,eventDropDownKey:null,eventDropDownDate:null,eventDropDownPreviouslySelectedIndex:0,get_event:function(){if(!this.get_optionEvent()||!this.view.get_selectedEventHidden().value||!this.view.get_selectedEventHidden().value.length){return null;}return SpottedScript.Controls.Picker.ObjectStub.fromString(this.view.get_selectedEventHidden().value);},initialiseEvent:function(){if(!this.get_optionEvent()){return;}this.eventListBoxJ=jQuery(this.view.get_eventListBox());$addHandler(this.view.get_eventListBox(),'change',Function.createDelegate(this,this.eventDropDownChange));$addHandler(this.view.get_eventSelectedChangeLink(),'click',Function.createDelegate(this,this.eventSelectedChangeLinkClick));},eventSelectedChangeLinkClick:function(e){e.preventDefault();this.initialiseEventDropDown();},initialiseEventDropDown:function(){if(!this.get_optionEvent()){return;}if(!this.eventDropDownIsInitialised||((this.get_searchType()===1||this.get_searchType()===3)&&this.get_venue()&&this.eventDropDownVenueK!==this.get_venue().k)||(this.get_searchType()===2&&this.get_brand()&&this.eventDropDownBrandK!==this.get_brand().k)||(this.get_searchType()===7&&this.get_key()&&this.eventDropDownKey!==this.get_key())||this.eventDropDownDate.year!==this.get_date().year||this.eventDropDownDate.month!==this.get_date().month){if((this.get_searchType()===1||this.get_searchType()===3)&&this.get_venue()&&this.get_venue().k===1){return;}this.eventDropDownDate=this.get_date();this.eventDropDownVenueK=(this.get_venue()&&(this.get_searchType()===1||this.get_searchType()===3))?this.get_venue().k:0;this.eventDropDownBrandK=(this.get_brand()&&this.get_searchType()===2)?this.get_brand().k:0;this.eventDropDownKey=(this.get_key()&&this.get_searchType()===7)?this.get_key():'0';if(!this.eventDropDownVenueK&&!this.eventDropDownBrandK&&this.eventDropDownKey==='0'){return;}this.requestId++;var $0=this.requestId;var $1=this.loadId;this.eventListBoxJ.ajaxAddOption1('/support/getcached.aspx?type=event&key='+this.eventDropDownKey+'&venuek='+this.eventDropDownVenueK+'&brandk='+this.eventDropDownBrandK+'&date='+this.eventDropDownDate.toString(),null,false,Function.createDelegate(this,this.eventDropDownInitialised),[$0]);window.setTimeout(Function.createDelegate(this,function(){
if(this.loadId===$1){this.eventListBoxJ.removeAll();this.addOption(this.view.get_eventListBox(),'0','Loading...');}}),100);}else{this.eventDropDownConfigure();}},requestId:0,loadId:0,eventDropDownInitialised:function(args,data){var $0=Number.parseInvariant(args.toString());if(this.requestId===$0){this.loadId++;this.eventListBoxJ.removeAll();this.eventListBoxJ.addOption(data,false);this.eventDropDownConfigure();}},eventDropDownConfigure:function(){this.eventDropDownIsInitialised=true;this.view.get_eventListBox().size=(this.view.get_eventListBox().options.length<3)?3:this.view.get_eventListBox().options.length;if(this.get_event()){var $0=this.setK(this.view.get_eventListBox(),this.get_event().k);if(!$0){this.addHistory('Event','0');this.unSelect(this.view.get_eventListBox());}}this.eventDropDownPreviouslySelectedIndex=this.getIndex(this.view.get_eventListBox());this.updateUIEvent();},eventDropDownChange:function(e){var $0=this.getK(this.view.get_eventListBox());if($0>0){var $1=new SpottedScript.Controls.Picker.ObjectStub(this.getK(this.view.get_eventListBox()),this.getText(this.view.get_eventListBox()));this.addHistory('Event',$1.toString());}else{this.setIndex(this.view.get_eventListBox(),this.eventDropDownPreviouslySelectedIndex);}this.eventDropDownPreviouslySelectedIndex=this.getIndex(this.view.get_eventListBox());},navigateEventPreviousValue:'',navigateEvent:function(value){if(!this.get_optionEvent()||!value.length||value===this.navigateEventPreviousValue){return;}if(value==='0'){this.setIndex(this.view.get_eventListBox(),0);this.view.get_eventSelectedLabel().innerHTML='None selected';this.view.get_selectedEventHidden().value='';if(this.selectedEventChanged){this.selectedEventChanged(this,new SpottedScript.Controls.Picker.ObjectArgs(null));}}else{var $0=SpottedScript.Controls.Picker.ObjectStub.fromString(value);if(this.eventDropDownIsInitialised&&this.getK(this.view.get_eventListBox())!==$0.k){this.setK(this.view.get_eventListBox(),$0.k);}if(!this.eventDropDownIsInitialised){this.view.get_eventSelectedLabel().innerHTML=$0.name.substr(11);}this.view.get_selectedEventHidden().value=$0.toString();if(this.selectedEventChanged){this.selectedEventChanged(this,new SpottedScript.Controls.Picker.ObjectArgs($0));}}this.navigateEventPreviousValue=value;},updateUIEvent:function(){this.view.get_eventHolder().style.display=(this.get_optionEvent()&&(((this.get_searchType()===1||this.get_searchType()===3)&&this.get_venue()&&this.get_venue().k>1)||(this.get_searchType()===2&&this.get_brand()&&this.get_brand().k>1)||(this.get_searchType()===7&&this.get_key()&&this.get_key().length>0)))?'':'none';this.view.get_eventSelectedHolder().style.display=(!this.eventDropDownIsInitialised)?'':'none';this.view.get_eventChoiceHolder().style.display=(this.eventDropDownIsInitialised)?'':'none';},get_optionGoogle:function(){return Boolean.parse(this.view.get_optionGoogleHidden().value);},addOption:function(sel,key,value){var $0=document.createElement('OPTION');$0.text=value;$0.value=key;try{sel.add($0,null);}catch($1){sel.add($0);}},addHistory:function(key,value){if(key.length>0){this.firstEverNavigate=false;}var $0={};if(key.length>0){$0[this.view.clientId+'_'+key]=encodeURI(value).replace(this.regexQuote,'&#39;');}Sys.Application.addHistoryPoint($0);},addHistorys:function(keysAndValues){this.firstEverNavigate=false;var $0={};for(var $1=0;$1<keysAndValues.length;$1=$1+2){$0[this.view.clientId+'_'+keysAndValues[$1]]=encodeURI(keysAndValues[$1+1]).replace(this.regexQuote,'&#39;');}Sys.Application.addHistoryPoint($0);},getValue:function(sel){return (sel.selectedIndex===-1)?'':(sel.options[sel.selectedIndex]).value;},getValueInt:function(sel){return (sel.selectedIndex===-1)?0:Number.parseInvariant((sel.options[sel.selectedIndex]).value);},getIndex:function(sel){return sel.selectedIndex;},getK:function(sel){try{var $0=(sel.options[sel.selectedIndex]).value;$0=$0.substr(5,$0.length-5);return Number.parseInvariant($0);}catch($1){return 0;}},getText:function(sel){return (sel.options[sel.selectedIndex]).text;},setIndex:function(sel,index){try{var $0=(index>sel.options.length-1)?sel.options[sel.options.length-1]:sel.options[index];$0.selected=true;}catch($1){}},unSelect:function(sel){for(var $0=0;$0<sel.options.length;$0++){var $1=sel.options[$0];$1.selected=false;}},setValue:function(sel,value){for(var $0=0;$0<sel.options.length;$0++){var $1=sel.options[$0];if($1.value.toLowerCase()===value.toLowerCase()){$1.selected=true;return true;}}return false;},setK:function(sel,value){for(var $0=0;$0<sel.options.length;$0++){var $1=sel.options[$0];if($1.value.substr(5,$1.value.length-5).toLowerCase()===value.toString().toLowerCase()){$1.selected=true;return true;}}return false;},debugCount:0,debug:function(text){this.view.get_debug().style.display='';this.debugCount++;this.view.get_debug().value=this.debugCount.toString()+' '+text+'\n'+this.view.get_debug().value;}}
SpottedScript.Controls.Picker.DateStub=function(year,month,day){this.year=year;this.month=month;this.day=day;}
SpottedScript.Controls.Picker.DateStub.fromString=function(value){var $0=Number.parseInvariant(value.substr(0,4));var $1=Number.parseInvariant(value.substr(4,2));var $2=Number.parseInvariant(value.substr(6,2));return new SpottedScript.Controls.Picker.DateStub($0,$1,$2);}
SpottedScript.Controls.Picker.DateStub.daysInMonth=function(year,month){var $0=[31,28,31,30,31,30,31,31,30,31,30,31];if(month!==2){return $0[month-1];}if(year%4){return $0[1];}if(!year%100&&year%400){return $0[1];}return $0[1]+1;}
SpottedScript.Controls.Picker.DateStub.prototype={year:0,month:0,day:0,toString:function(){return this.year.toString()+((this.month<10)?'0':'')+this.month.toString()+((this.day<10)?'0':'')+this.day.toString();},toFriendlyString:function(){return this.year.toString()+'-'+((this.month<10)?'0':'')+this.month.toString()+((this.day>0)?('-'+((this.day<10)?'0':'')+this.day.toString()):'');},toDateTime:function(){return new Date(this.year,this.month-1,this.day);},modify:function(modifier,unit){var $0=new SpottedScript.Controls.Picker.DateStub(this.year,this.month,this.day);if(unit==='y'){$0.year=this.year+modifier;}else if(unit==='m'){if(modifier>0){if(this.month+modifier>12){$0.month=this.month+modifier-12;$0.year++;}else{$0.month=this.month+modifier;}}else{if(this.month+modifier<1){$0.month=12-(this.month+modifier);$0.year--;}else{$0.month=this.month+modifier;}}}else if(unit==='d'){var $1=SpottedScript.Controls.Picker.DateStub.daysInMonth(this.year,this.month);if(modifier>0){if(this.day+modifier>$1){if(this.month===12){$0.year++;$0.month=1;$0.day=this.day+modifier-$1;}else{$0.month++;$0.day=this.day+modifier-$1;}}else{$0.day=this.day+modifier;}}else{if(this.day+modifier<1){if(this.month===1){$0.year--;$0.month=12;$0.day=SpottedScript.Controls.Picker.DateStub.daysInMonth($0.year,$0.month)+this.day+modifier;}else{$0.month--;$0.day=SpottedScript.Controls.Picker.DateStub.daysInMonth($0.year,$0.month)+this.day+modifier;}}else{$0.day=this.day+modifier;}}}return $0;},dayOfWeek:function(){return this.toDateTime().getDay();},previousMonday:function(){var $0=this.dayOfWeek();var $1=(!$0)?-6:($0===1)?0:($0===2)?-1:($0===3)?-2:($0===4)?-3:($0===5)?-4:($0===6)?-5:0;return this.modify($1,'d');},nextSunday:function(){var $0=this.dayOfWeek();var $1=(!$0)?0:($0===1)?6:($0===2)?5:($0===3)?4:($0===4)?3:($0===5)?2:($0===6)?1:0;return this.modify($1,'d');},get_monthNameFull:function(){var $0=this.month;return ($0===1)?'January':($0===2)?'February':($0===3)?'March':($0===4)?'April':($0===5)?'May':($0===6)?'June':($0===7)?'July':($0===8)?'August':($0===9)?'September':($0===10)?'October':($0===11)?'November':($0===12)?'December':'';},debugCount:0,debug:function(text){var $0=document.getElementById('Content_Debug');$0.style.display='';this.debugCount++;$0.value=this.debugCount.toString()+' '+text+'\n'+$0.value;}}
SpottedScript.Controls.Picker.ObjectStub=function(k,name){this.k=k;this.name=name;}
SpottedScript.Controls.Picker.ObjectStub.fromString=function(value){if(!value||!value.length||value==='0'){return null;}var $0=Number.parseInvariant(value.substr(0,value.indexOf('-')));var $1=value.substr(value.indexOf('-')+1,value.length-value.indexOf('-')-1);return new SpottedScript.Controls.Picker.ObjectStub($0,$1);}
SpottedScript.Controls.Picker.ObjectStub.prototype={name:null,k:0,toString:function(){return this.k.toString()+'-'+this.name;}}
SpottedScript.Controls.Picker.EventSelectionSpecification=function(brand,place,venue,music,date,me){this.brand=brand;this.place=place;this.venue=venue;this.music=music;this.date=date;this.me=me;}
SpottedScript.Controls.Picker.EventSelectionSpecification.prototype={brand:null,place:null,venue:null,music:null,date:null,me:false,toString:function(){return 'Brand: '+((!this.brand)?'null':this.brand.toString())+'<br />'+'Place: '+((!this.place)?'null':this.place.toString())+'<br />'+'Venue: '+((!this.venue)?'null':this.venue.toString())+'<br />'+'Music: '+((!this.music)?'null':this.music.toString())+'<br />'+'Date: '+((!this.date)?'null':this.date.toFriendlyString())+'<br />'+'Me: '+this.me.toString().toLowerCase();}}
SpottedScript.Controls.Picker.StringArgs=function(val){SpottedScript.Controls.Picker.StringArgs.initializeBase(this);this.val=val;}
SpottedScript.Controls.Picker.StringArgs.prototype={val:null}
SpottedScript.Controls.Picker.ObjectArgs=function(ob){SpottedScript.Controls.Picker.ObjectArgs.initializeBase(this);this.object=ob;}
SpottedScript.Controls.Picker.ObjectArgs.prototype={object:null}
SpottedScript.Controls.Picker.DateArgs=function(d){SpottedScript.Controls.Picker.DateArgs.initializeBase(this);this.date=d;}
SpottedScript.Controls.Picker.DateArgs.prototype={date:null}
SpottedScript.Controls.Picker.EventSelectionArgs=function(specification){SpottedScript.Controls.Picker.EventSelectionArgs.initializeBase(this);this.specification=specification;}
SpottedScript.Controls.Picker.EventSelectionArgs.prototype={specification:null}
SpottedScript.Controls.Picker.View=function(clientId){this.clientId=clientId;}
SpottedScript.Controls.Picker.View.prototype={clientId:null,get_debug:function(){return document.getElementById(this.clientId+'_Debug');},get_holder:function(){return document.getElementById(this.clientId+'_Holder');},get_searchTypeHolder:function(){return document.getElementById(this.clientId+'_SearchTypeHolder');},get_searchTypeKey:function(){return document.getElementById(this.clientId+'_SearchTypeKey');},get_searchTypeSpotter:function(){return document.getElementById(this.clientId+'_SearchTypeSpotter');},get_searchTypeMe:function(){return document.getElementById(this.clientId+'_SearchTypeMe');},get_searchTypeVenue:function(){return document.getElementById(this.clientId+'_SearchTypeVenue');},get_searchTypeBrand:function(){return document.getElementById(this.clientId+'_SearchTypeBrand');},get_searchTypeMusic:function(){return document.getElementById(this.clientId+'_SearchTypeMusic');},get_searchTypeGoogle:function(){return document.getElementById(this.clientId+'_SearchTypeGoogle');},get_keyHolder:function(){return document.getElementById(this.clientId+'_KeyHolder');},get_keySelectedHolder:function(){return document.getElementById(this.clientId+'_KeySelectedHolder');},get_keySelectedLabel:function(){return document.getElementById(this.clientId+'_KeySelectedLabel');},get_keySelectedChangeLink:function(){return document.getElementById(this.clientId+'_KeySelectedChangeLink');},get_keyChoiceHolder:function(){return document.getElementById(this.clientId+'_KeyChoiceHolder');},get_keyTextBox:function(){return document.getElementById(this.clientId+'_KeyTextBox');},get_keySearchButton:function(){return document.getElementById(this.clientId+'_KeySearchButton');},get_spotterHolder:function(){return document.getElementById(this.clientId+'_SpotterHolder');},get_spotterSelectedHolder:function(){return document.getElementById(this.clientId+'_SpotterSelectedHolder');},get_spotterSelectedLabel:function(){return document.getElementById(this.clientId+'_SpotterSelectedLabel');},get_spotterSelectedChangeLink:function(){return document.getElementById(this.clientId+'_SpotterSelectedChangeLink');},get_spotterChoiceHolder:function(){return document.getElementById(this.clientId+'_SpotterChoiceHolder');},get_spotterTextBox:function(){return document.getElementById(this.clientId+'_SpotterTextBox');},get_spotterSearchButton:function(){return document.getElementById(this.clientId+'_SpotterSearchButton');},get_brandHolder:function(){return document.getElementById(this.clientId+'_BrandHolder');},get_brandSelectedHolder:function(){return document.getElementById(this.clientId+'_BrandSelectedHolder');},get_brandSelectedLabel:function(){return document.getElementById(this.clientId+'_BrandSelectedLabel');},get_brandSelectedChangeLink:function(){return document.getElementById(this.clientId+'_BrandSelectedChangeLink');},get_brandChoiceHolder:function(){return document.getElementById(this.clientId+'_BrandChoiceHolder');},get_brandAutoComplete:function(){return eval(this.clientId+'_BrandAutoCompleteBehaviour');},get_countryHolder:function(){return document.getElementById(this.clientId+'_CountryHolder');},get_countrySelectedHolder:function(){return document.getElementById(this.clientId+'_CountrySelectedHolder');},get_countrySelectedLabel:function(){return document.getElementById(this.clientId+'_CountrySelectedLabel');},get_countrySelectedChangeLink:function(){return document.getElementById(this.clientId+'_CountrySelectedChangeLink');},get_countryChoiceHolder:function(){return document.getElementById(this.clientId+'_CountryChoiceHolder');},get_countryDropDown:function(){return document.getElementById(this.clientId+'_CountryDropDown');},get_placeHolder:function(){return document.getElementById(this.clientId+'_PlaceHolder');},get_placeSelectedHolder:function(){return document.getElementById(this.clientId+'_PlaceSelectedHolder');},get_placeSelectedLabel:function(){return document.getElementById(this.clientId+'_PlaceSelectedLabel');},get_placeSelectedChangeLink:function(){return document.getElementById(this.clientId+'_PlaceSelectedChangeLink');},get_placeChoiceHolder:function(){return document.getElementById(this.clientId+'_PlaceChoiceHolder');},get_placeDropDown:function(){return document.getElementById(this.clientId+'_PlaceDropDown');},get_venueHolder:function(){return document.getElementById(this.clientId+'_VenueHolder');},get_venueSelectedHolder:function(){return document.getElementById(this.clientId+'_VenueSelectedHolder');},get_venueSelectedLabel:function(){return document.getElementById(this.clientId+'_VenueSelectedLabel');},get_venueSelectedChangeLink:function(){return document.getElementById(this.clientId+'_VenueSelectedChangeLink');},get_venueChoiceHolder:function(){return document.getElementById(this.clientId+'_VenueChoiceHolder');},get_venueDropDown:function(){return document.getElementById(this.clientId+'_VenueDropDown');},get_venueByLetterDropDown:function(){return document.getElementById(this.clientId+'_VenueByLetterDropDown');},get_musicHolder:function(){return document.getElementById(this.clientId+'_MusicHolder');},get_musicSelectedHolder:function(){return document.getElementById(this.clientId+'_MusicSelectedHolder');},get_musicSelectedLabel:function(){return document.getElementById(this.clientId+'_MusicSelectedLabel');},get_musicSelectedChangeLink:function(){return document.getElementById(this.clientId+'_MusicSelectedChangeLink');},get_musicChoiceHolder:function(){return document.getElementById(this.clientId+'_MusicChoiceHolder');},get_musicDropDown:function(){return document.getElementById(this.clientId+'_MusicDropDown');},get_dateHolder:function(){return document.getElementById(this.clientId+'_DateHolder');},get_dateSelectedHolder:function(){return document.getElementById(this.clientId+'_DateSelectedHolder');},get_dateSelectedLabel:function(){return document.getElementById(this.clientId+'_DateSelectedLabel');},get_dateSelectedChangeLink:function(){return document.getElementById(this.clientId+'_DateSelectedChangeLink');},get_dateChoiceHolder:function(){return document.getElementById(this.clientId+'_DateChoiceHolder');},get_dateDayHolder:function(){return document.getElementById(this.clientId+'_DateDayHolder');},get_dateDayDropDown:function(){return document.getElementById(this.clientId+'_DateDayDropDown');},get_dateDayPlusImg:function(){return document.getElementById(this.clientId+'_DateDayPlusImg');},get_dateDayMinusImg:function(){return document.getElementById(this.clientId+'_DateDayMinusImg');},get_dateMonthDropDown:function(){return document.getElementById(this.clientId+'_DateMonthDropDown');},get_dateMonthPlusImg:function(){return document.getElementById(this.clientId+'_DateMonthPlusImg');},get_dateMonthMinusImg:function(){return document.getElementById(this.clientId+'_DateMonthMinusImg');},get_dateYearTextBox:function(){return document.getElementById(this.clientId+'_DateYearTextBox');},get_dateYearPlusImg:function(){return document.getElementById(this.clientId+'_DateYearPlusImg');},get_dateYearMinusImg:function(){return document.getElementById(this.clientId+'_DateYearMinusImg');},get_eventHolder:function(){return document.getElementById(this.clientId+'_EventHolder');},get_eventSelectedHolder:function(){return document.getElementById(this.clientId+'_EventSelectedHolder');},get_eventSelectedLabel:function(){return document.getElementById(this.clientId+'_EventSelectedLabel');},get_eventSelectedChangeLink:function(){return document.getElementById(this.clientId+'_EventSelectedChangeLink');},get_eventChoiceHolder:function(){return document.getElementById(this.clientId+'_EventChoiceHolder');},get_eventListBox:function(){return document.getElementById(this.clientId+'_EventListBox');},get_selectedSearchTypeHidden:function(){return document.getElementById(this.clientId+'_SelectedSearchTypeHidden');},get_selectedKeyHidden:function(){return document.getElementById(this.clientId+'_SelectedKeyHidden');},get_selectedSpotterHidden:function(){return document.getElementById(this.clientId+'_SelectedSpotterHidden');},get_selectedBrandHidden:function(){return document.getElementById(this.clientId+'_SelectedBrandHidden');},get_selectedCountryHidden:function(){return document.getElementById(this.clientId+'_SelectedCountryHidden');},get_selectedPlaceHidden:function(){return document.getElementById(this.clientId+'_SelectedPlaceHidden');},get_selectedVenueHidden:function(){return document.getElementById(this.clientId+'_SelectedVenueHidden');},get_selectedMusicHidden:function(){return document.getElementById(this.clientId+'_SelectedMusicHidden');},get_selectedDateHidden:function(){return document.getElementById(this.clientId+'_SelectedDateHidden');},get_selectedEventHidden:function(){return document.getElementById(this.clientId+'_SelectedEventHidden');},get_optionKeyHidden:function(){return document.getElementById(this.clientId+'_OptionKeyHidden');},get_optionMeHidden:function(){return document.getElementById(this.clientId+'_OptionMeHidden');},get_optionSpotterHidden:function(){return document.getElementById(this.clientId+'_OptionSpotterHidden');},get_optionBrandHidden:function(){return document.getElementById(this.clientId+'_OptionBrandHidden');},get_optionCountryHidden:function(){return document.getElementById(this.clientId+'_OptionCountryHidden');},get_optionPlaceHidden:function(){return document.getElementById(this.clientId+'_OptionPlaceHidden');},get_optionVenueHidden:function(){return document.getElementById(this.clientId+'_OptionVenueHidden');},get_optionMusicHidden:function(){return document.getElementById(this.clientId+'_OptionMusicHidden');},get_optionDateHidden:function(){return document.getElementById(this.clientId+'_OptionDateHidden');},get_optionDateDayHidden:function(){return document.getElementById(this.clientId+'_OptionDateDayHidden');},get_optionDateDayIncrementHidden:function(){return document.getElementById(this.clientId+'_OptionDateDayIncrementHidden');},get_optionEventHidden:function(){return document.getElementById(this.clientId+'_OptionEventHidden');},get_optionGoogleHidden:function(){return document.getElementById(this.clientId+'_OptionGoogleHidden');}}
Type.registerNamespace('SpottedScript.Controls.Picker.Shared');
SpottedScript.Controls.Picker.Shared.SearchTypes=function(){};SpottedScript.Controls.Picker.Shared.SearchTypes.prototype = {unknown:0,venue:1,brand:2,music:3,google:4,spotter:5,me:6,key:7}
SpottedScript.Controls.Picker.Shared.SearchTypes.registerEnum('SpottedScript.Controls.Picker.Shared.SearchTypes',false);Type.registerNamespace('SpottedScript.Controls.SiteSearchBox');SpottedScript.Controls.SiteSearchBox.Controller=function(view){this.$0=view;this.$1=this.$0.get_uiAuto().transformReceivedSuggestions;this.$0.get_uiAuto().transformReceivedSuggestions=Function.createDelegate(this,this.$6);this.$2=this.$0.get_uiAuto().itemChosen;this.$0.get_uiAuto().itemChosen=Function.createDelegate(this,this.$5);this.$3=view.get_uiAuto().onSuggestionsRequested;view.get_uiAuto().onSuggestionsRequested=Function.createDelegate(this,this.$4);}
SpottedScript.Controls.SiteSearchBox.Controller.prototype={$0:null,$1:null,$2:null,$3:null,$4:function(){this.$0.get_uiAuto().addSuggestion(this.$7());},$5:function($p0){if($p0.value==='{google}'){eval('window.location = \'http://www.google.co.uk/search?q=site:dontstayin.com+'+encodeURI($p0.key).replace(new RegExp('\'','g'),'\\\'')+'\';');}else{eval('window.location = \''+$p0.value+'\';');}},$6:function($p0,$p1){ScriptSharpLibrary.Suggestion.addSuggestionAtTop($p0,this.$7());if(this.$1){$p0=this.$1($p0,$p1);}return $p0;},$7:function(){var $0=new ScriptSharpLibrary.Suggestion();$0.html=ScriptSharpLibrary.Suggestion.getPicTitleDetailTemplateHtml('/gfx/icon40-google.png','Search DSI using Google','');$0.text=this.$0.get_uiAuto().get_text();$0.value='{google}';return $0;}}
SpottedScript.Controls.SiteSearchBox.View=function(clientId){this.clientId=clientId;}
SpottedScript.Controls.SiteSearchBox.View.prototype={clientId:null,get_uiAuto:function(){return eval(this.clientId+'_uiAutoBehaviour');},get_googleSearchCode:function(){return document.getElementById(this.clientId+'_GoogleSearchCode');}}
Type.registerNamespace('SpottedScript.Controls.Tabbing.Tab');
SpottedScript.Controls.Tabbing.Tab.ITabController=function(){};SpottedScript.Controls.Tabbing.Tab.ITabController.registerInterface('SpottedScript.Controls.Tabbing.Tab.ITabController');Type.registerNamespace('SpottedScript.Controls.VenueCreator');SpottedScript.Controls.VenueCreator.CountryInfo=function(){}
SpottedScript.Controls.VenueCreator.CountryInfo.prototype={name:null,k:0}
SpottedScript.Controls.VenueCreator.PlaceInfo=function(){}
SpottedScript.Controls.VenueCreator.PlaceInfo.nameWithCountry=function(pi){return pi.name+', '+pi.country.name;}
SpottedScript.Controls.VenueCreator.PlaceInfo.prototype={name:null,k:0,country:null}
SpottedScript.Controls.VenueCreator.VenueInfo=function(){}
SpottedScript.Controls.VenueCreator.VenueInfo.nameWithPlace=function(vi){return vi.name+', '+SpottedScript.Controls.VenueCreator.PlaceInfo.nameWithCountry(vi.place);}
SpottedScript.Controls.VenueCreator.VenueInfo.prototype={name:null,k:0,place:null,url:null,picPath:null}
SpottedScript.Controls.VenueCreator.Controller=function(view){this.$7=new RegExp('^((([A-PR-UWYZ](\\d([A-HJKSTUW]|\\d)?|[A-HK-Y]\\d([ABEHMNPRVWXY]|\\d)?))\\s*(\\d[ABD-HJLNP-UW-Z]{2})?)|GIR\\s*0AA)$','i');if(!SpottedScript.Controls.VenueCreator.Controller.$2){SpottedScript.Controls.VenueCreator.Controller.$2=this;this.$0=view;}this.$3=this.$0.get_uiNameSuggest().transformReceivedSuggestions;this.$0.get_uiNameSuggest().transformReceivedSuggestions=Function.createDelegate(this,this.$D);this.$4=view.get_uiNameSuggest().itemChosen;this.$0.get_uiNameSuggest().itemChosen=Function.createDelegate(this,this.$B);this.$5=this.$0.get_uiPlace().itemChosen;this.$0.get_uiPlace().itemChosen=Function.createDelegate(this,this.$A);this.$0.get_uiPlace().parameters.set('returnInfo',true);$addHandler(view.get_uiPostCode(),'blur',Function.createDelegate(this,this.$9));$addHandler(view.get_uiContainer(),'keydown',Function.createDelegate(this,this.$6));}
SpottedScript.Controls.VenueCreator.Controller.prototype={$0:null,$1:null,$3:null,$4:null,$5:null,$6:function($p0){if($p0.keyCode===27){this.$C(null,null,null);}},$8:null,$9:function($p0){if(this.$0.get_uiPostCode().value===''||this.$0.get_uiPostCode().disabled||this.$7.test(this.$0.get_uiPostCode().value)){if(this.$8){this.$0.get_uiPostCode().style.border='';}}else{this.$8=this.$0.get_uiPostCode().style.border;this.$0.get_uiPostCode().focus();}},$A:function($p0){var $0=Sys.Serialization.JavaScriptSerializer.deserialize($p0.value);this.setPlaceText($0.country.k);this.$0.get_uiNameSuggest().parameters.set('placeK',$0.k);if(this.$5){this.$5($p0);}},setPlaceText:function(countryK){this.$0.get_uiPostCode().disabled=(countryK!==224);if(this.$0.get_uiPostCode().disabled){this.$0.get_uiPostCode().value='UK only';}},$B:function($p0){if($p0.value==='{addMethod:quick}'){var $0=Sys.Serialization.JavaScriptSerializer.deserialize(this.$0.get_uiPlace().get_value());Spotted.WebServices.Controls.VenueCreator.Service.createVenue(this.$0.get_uiNameSuggest().get_text(),$0.k,(this.$0.get_uiPostCode().disabled)?'':this.$0.get_uiPostCode().value,Function.createDelegate(this,this.$C),Function.createDelegate(null,Utils.Trace.webServiceFailure),null,5000);}else if($p0.value==='{filloutFields}'){this.$0.get_uiPlace().focus();}else{this.$C(Sys.Serialization.JavaScriptSerializer.deserialize($p0.value),null,null);}if(this.$4){this.$4($p0);}},$C:function($p0,$p1,$p2){this.$0.get_uiContainer().style.display='none';if(this.$1){this.$1($p0);}},$D:function($p0,$p1){if(this.$0.get_uiPlace().get_value()&&this.$0.get_uiNameSuggest().get_text()!==''){var $0=this.$0.get_uiNameSuggest().get_text()+', '+this.$0.get_uiPlace().get_text();var $1=new ScriptSharpLibrary.Suggestion();$1.html=ScriptSharpLibrary.Suggestion.getPicTitleDetailTemplateHtml('@/gfx/icon40-eventcreator-venue-add.png','Add <b>'+$0+'</b> as a new venue','You\'ll be able to add more details later if you like');$1.value='{addMethod:quick}';$1.text=this.$0.get_uiNameSuggest().get_text();ScriptSharpLibrary.Suggestion.addSuggestion($p0,$1,$p1);}else{var $2=new ScriptSharpLibrary.Suggestion();$2.html=ScriptSharpLibrary.Suggestion.getPicTitleDetailTemplateHtml('/gfx/icon40-eventcreator-venue-noadd.png','Can\'t add <b>'+this.$0.get_uiNameSuggest().get_text()+'</b> as a new place','Fill out all the fields');$2.value='{filloutFields}';$2.text=$2.value;ScriptSharpLibrary.Suggestion.addSuggestion($p0,$2,$p1);}if(this.$3){$p0=this.$3($p0,$p1);}return $p0;},createVenue:function(name,place,callbackIn){this.$0.get_uiContainer().style.display='';this.$0.get_uiNameSuggest().focus();if(name){this.$0.get_uiNameSuggest().set_value(name);this.$0.get_uiNameSuggest().set_text(name);this.$0.get_uiPlace().focus();}if(place){this.$0.get_uiPlace().set_text(place.key);this.$0.get_uiPlace().set_value(place.value.toString());}if(place&&name){this.$0.get_uiNameSuggest().focus();this.$0.get_uiNameSuggest().requestSuggestions();}this.$1=callbackIn;}}
SpottedScript.Controls.VenueCreator.View=function(clientId){this.clientId=clientId;}
SpottedScript.Controls.VenueCreator.View.prototype={clientId:null,get_uiContainer:function(){return document.getElementById(this.clientId+'_uiContainer');},get_h1:function(){return document.getElementById(this.clientId+'_H1');},get_uiPlace:function(){return eval(this.clientId+'_uiPlaceBehaviour');},get_uiNameSuggest:function(){return eval(this.clientId+'_uiNameSuggestBehaviour');},get_uiPostCode:function(){return document.getElementById(this.clientId+'_uiPostCode');}}
Type.registerNamespace('SpottedScript.CustomControls.DsiCalendar');
SpottedScript.CustomControls.DsiCalendar.Controller=function(view){jQuery(window.document).ready(Function.createDelegate(this,this.$1));}
SpottedScript.CustomControls.DsiCalendar.Controller.prototype={$0:null,$1:function(){jQuery('.CalendarAddLink').click(Function.createDelegate(this,function($p1_0){
this.$0=$p1_0.originalEvent.srcElement.parentElement;var $1_0=new Date(this.$0.date);SpottedScript.Controls.EventCreator.Controller.instance.showPopup($1_0,null,null,Function.createDelegate(this,this.$2));return false;}));},$2:function($p0){if($p0){var $0=document.createElement('div');$0.className='CalendarItemToday';$0.innerHTML=String.format('<b>{0}</b>',$p0.name);this.$0.insertBefore($0);this.$0=null;}}}
Type.registerNamespace('JQ');
JQ.TabsSelectEventArgs=function(){}
JQ.TabsSelectEventArgs.prototype={instance:null,options:null,tab:null,panel:null}
Type.registerNamespace('Utils');
Utils.Trace=function(){}
Utils.Trace.write=function(message){}
Utils.Trace.webServiceFailure=function(error,userContext,methodName){Utils.Trace.write('Message: '+error.get_message()+'<br>Type: '+error.get_exceptionType()+'<br>Stack trace: '+error.get_stackTrace()+'<br>Status code: '+error.get_statusCode()+'<br>Timed out: '+error.get_timedOut());}
Utils._TraceObjects=function(){}
Type.registerNamespace('SpottedScript.Utils');
SpottedScript.Utils._IProviderService=function(){};SpottedScript.Utils._IProviderService.registerInterface('SpottedScript.Utils._IProviderService');SpottedScript.Utils._IPagedProviderService=function(){};SpottedScript.Utils._IPagedProviderService.registerInterface('SpottedScript.Utils._IPagedProviderService');SpottedScript.Utils._ProviderService=function(servicePath,serviceMethod,timeOut){this.$0=servicePath;this.$1=serviceMethod;this.$2=timeOut;}
SpottedScript.Utils._ProviderService.prototype={$0:null,$1:null,$2:0,$3:null,$4:null,$5:null,callWebService:function($p0,$p1,$p2,$p3){this.$4=$p1;this.$5=$p2;if(this.$3){Utils.Trace.write('ABORT');this.$3.get_executor().abort();}this.$3=Sys.Net.WebServiceProxy.invoke(this.$0,this.$1,false,$p0,Function.createDelegate(this,this.$6),Function.createDelegate(this,this.$7),$p3,this.$2);},$6:function($p0,$p1,$p2){this.$3=null;this.$4($p0,$p1,$p2);},$7:function($p0,$p1,$p2){this.$3=null;this.$5($p0,$p1,$p2);}}
SpottedScript.Utils._PagedProviderService=function(servicePath,serviceMethod,timeOut){SpottedScript.Utils._PagedProviderService.initializeBase(this,[servicePath,serviceMethod,timeOut]);}
SpottedScript.Utils._PagedProviderService.prototype={callWebService:function($p0,$p1,$p2,$p3,$p4,$p5){var $0={};$0['firstRowIndex']=$p0;$0['lastRowIndex']=$p1;var $dict1=$p2;for(var $key2 in $dict1){var $1={key:$key2,value:$dict1[$key2]};$0[$1.key]=$1.value;}SpottedScript.Utils._PagedProviderService.callBaseMethod(this, 'callWebService',[$0,$p3,$p4,$p5]);}}
SpottedScript.Utils._CachedPagedProvider=function(provider){this.$10=-1;this.$11=-1;this.$1=provider;this.$A();}
SpottedScript.Utils._CachedPagedProvider.$15=function($p0){var $0=new Sys.StringBuilder();var $dict1=$p0;for(var $key2 in $dict1){var $1={key:$key2,value:$dict1[$key2]};$0.append($1.key);$0.append(':');$0.append($1.value.toString());$0.append(';');}return $0.toString();}
SpottedScript.Utils._CachedPagedProvider.prototype={$1:null,$2:null,$3:null,get_$4:function(){return (this.$3[this.$2]||(this.$3[this.$2]=[]));},$5:null,get_$6:function(){return (this.$5[this.$2]||(this.$5[this.$2]=0));},set_$6:function($p0){this.$5[this.$2]=$p0;return $p0;},$7:null,get_$8:function(){return (this.$7[this.$2]);},set_$8:function($p0){this.$7[this.$2]=$p0;return $p0;},$9:function(){this.$A();},$A:function(){this.$3={};this.$5={};this.$7={};},$B:null,$C:null,$D:0,$E:0,$F:null,$12:function($p0,$p1,$p2,$p3,$p4){this.$B=$p3;this.$C=$p4;this.$D=$p0;this.$E=$p1;this.$F=$p2;this.$2=SpottedScript.Utils._CachedPagedProvider.$15($p2);var $0=new Array(0);var $1=false;for(var $2=($p0-1)*$p1;$2<$p0*$p1-1;$2++){if(this.get_$4()[$2]){if(SpottedScript.Utils._NoMoreData.isInstanceOfType(this.get_$4()[$2])){break;}$0[$0.length]=this.get_$4()[$2];}else{$1=true;break;}}if($1&&!this.get_$8()){var $3=1*$p1;this.$10=Math.floor(($p0-1)/1)*$3;this.$11=this.$10+$3-1;if(this.get_$4()){for(;this.$10<this.$11;this.$10++){if(!this.get_$4()[this.$10]){break;}}}this.$1.callWebService(this.$10,this.$11+1,$p2,Function.createDelegate(this,this.$14),Function.createDelegate(this,this.$13),null);}else{$p3($0,this.get_$6(),!this.get_$8());}},$13:function($p0,$p1,$p2){Utils.Trace.webServiceFailure($p0,$p1,$p2);this.$C();},$14:function($p0,$p1,$p2){var $0=$p0;for(var $1=0;$1<$0.length;$1++){this.get_$4()[this.$10+$1]=$0[$1];}if($0.length>this.$11-this.$10+1){this.set_$6(this.$11+1);this.set_$8(false);}else{this.set_$6(this.$10+$0.length);this.set_$8(true);this.get_$4()[this.$10+$0.length]=new SpottedScript.Utils._NoMoreData();}this.$12(this.$D,this.$E,this.$F,this.$B,this.$C);}}
SpottedScript.Utils._NoMoreData=function(){}
Type.registerNamespace('Spotted.System.Text');
Spotted.System.Text.StringBuilder=function(){this.stringArray=[];}
Spotted.System.Text.StringBuilder.prototype={stringArray:null,append:function(s){this.stringArray[this.stringArray.length]=s;},toString:function(){return this.stringArray.join('');},appendAttribute:function(name,value){this.stringArray[this.stringArray.length]=' ';this.stringArray[this.stringArray.length]=name;this.stringArray[this.stringArray.length]='=\"';this.stringArray[this.stringArray.length]=value.replace(new RegExp('\"','g'),'&#34;');this.stringArray[this.stringArray.length]='\"';}}
Type.registerNamespace('SpottedScript');
SpottedScript.Misc=function(){}
SpottedScript.Misc.getPicUrlFromGuid=function(guid){var $0=eval('StoragePath(\''+guid+'\');');return $0;}
SpottedScript.Misc.redirect=function(url){eval('window.location = \''+url+'\'');}
SpottedScript.Misc.addHoverText=function(el,hoverText){$addHandler(el,'mouseover',Function.createDelegate(null,function(){
SpottedScript.Misc.$0(hoverText);}));$addHandler(el,'mouseout',Function.createDelegate(null,function(){
SpottedScript.Misc.$1();}));}
SpottedScript.Misc.redirectToAnchor=function(anchorName){window.location.hash=anchorName;}
SpottedScript.Misc.showWaitingCursor=function(){eval('ShowWaitingCursor();');}
SpottedScript.Misc.hideWaitingCursor=function(){eval('HideWaitingCursor();');}
SpottedScript.Misc.$0=function($p0){eval('stt(\''+$p0+'\');');}
SpottedScript.Misc.$1=function(){eval('htm();');}
SpottedScript.Misc.get_browserIsFirefox=function(){return Sys.Browser.agent===Sys.Browser.Firefox;}
SpottedScript.Misc.get_browserIsIE=function(){return Sys.Browser.agent===Sys.Browser.InternetExplorer;}
SpottedScript.Misc.get_browserVersion=function(){return Sys.Browser.version;}
SpottedScript.Misc.combineAction=function(runFirst,runSecond){var $0=Function.createDelegate(null,function(){
if(runFirst){runFirst();}if(runSecond){runSecond();}});return $0;}
SpottedScript.Misc.combineEventHandler=function(runFirst,runSecond){var $0=Function.createDelegate(null,function($p1_0,$p1_1){
if(runFirst){runFirst($p1_0,$p1_1);}if(runSecond){runSecond($p1_0,$p1_1);}});return $0;}
SpottedScript.Misc.$2=function(){debugger;;}
SpottedScript.IntEventArgs=function(value){SpottedScript.IntEventArgs.initializeBase(this);this.value=value;}
SpottedScript.IntEventArgs.prototype={value:0}
Type.registerNamespace('Spotted.WebServices');
Spotted.WebServices.ChatService=function(){}
Spotted.WebServices.ChatService.send=function(message,roomGuidString,lastItemGuidString,sessionID,pageUrl,roomState,success,failure,userContext,timeout){var $0={};$0['message']=message;$0['roomGuidString']=roomGuidString;$0['lastItemGuidString']=lastItemGuidString;$0['sessionID']=sessionID;$0['pageUrl']=pageUrl;$0['roomState']=roomState;return Sys.Net.WebServiceProxy.invoke('/WebServices/ChatService.asmx','Send',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.ChatService.resetSessionAndGetState=function(isFirstRequest,lastItemGuidString,sessionID,lastActionTicks,pageUrl,roomState,success,failure,userContext,timeout){var $0={};$0['isFirstRequest']=isFirstRequest;$0['lastItemGuidString']=lastItemGuidString;$0['sessionID']=sessionID;$0['lastActionTicks']=lastActionTicks;$0['pageUrl']=pageUrl;$0['roomState']=roomState;return Sys.Net.WebServiceProxy.invoke('/WebServices/ChatService.asmx','ResetSessionAndGetState',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.ChatService.deleteArchive=function(roomGuid,lastItemGuidString,sessionID,lastActionTicks,pageUrl,roomState,success,failure,userContext,timeout){var $0={};$0['roomGuid']=roomGuid;$0['lastItemGuidString']=lastItemGuidString;$0['sessionID']=sessionID;$0['lastActionTicks']=lastActionTicks;$0['pageUrl']=pageUrl;$0['roomState']=roomState;return Sys.Net.WebServiceProxy.invoke('/WebServices/ChatService.asmx','DeleteArchive',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.ChatService.getArchive=function(roomGuid,lastItemGuidString,sessionID,lastActionTicks,pageUrl,roomState,success,failure,userContext,timeout){var $0={};$0['roomGuid']=roomGuid;$0['lastItemGuidString']=lastItemGuidString;$0['sessionID']=sessionID;$0['lastActionTicks']=lastActionTicks;$0['pageUrl']=pageUrl;$0['roomState']=roomState;return Sys.Net.WebServiceProxy.invoke('/WebServices/ChatService.asmx','GetArchive',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.ChatService.refresh=function(isFirstRequest,lastItemGuidString,sessionID,lastActionTicks,pageUrl,roomState,success,failure,userContext,timeout){var $0={};$0['isFirstRequest']=isFirstRequest;$0['lastItemGuidString']=lastItemGuidString;$0['sessionID']=sessionID;$0['lastActionTicks']=lastActionTicks;$0['pageUrl']=pageUrl;$0['roomState']=roomState;return Sys.Net.WebServiceProxy.invoke('/WebServices/ChatService.asmx','Refresh',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.ChatService.moreInfo=function(roomGuid,lastItemGuidString,sessionID,lastActionTicks,pageUrl,roomState,success,failure,userContext,timeout){var $0={};$0['roomGuid']=roomGuid;$0['lastItemGuidString']=lastItemGuidString;$0['sessionID']=sessionID;$0['lastActionTicks']=lastActionTicks;$0['pageUrl']=pageUrl;$0['roomState']=roomState;return Sys.Net.WebServiceProxy.invoke('/WebServices/ChatService.asmx','MoreInfo',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.ChatService.pin=function(clientID,roomGuid,lastItemGuidString,sessionID,lastActionTicks,pageUrl,roomState,success,failure,userContext,timeout){var $0={};$0['clientID']=clientID;$0['roomGuid']=roomGuid;$0['lastItemGuidString']=lastItemGuidString;$0['sessionID']=sessionID;$0['lastActionTicks']=lastActionTicks;$0['pageUrl']=pageUrl;$0['roomState']=roomState;return Sys.Net.WebServiceProxy.invoke('/WebServices/ChatService.asmx','Pin',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.ChatService.switchPhotoRoom=function(clientID,roomGuid,lastItemGuidString,sessionID,lastActionTicks,pageUrl,roomState,success,failure,userContext,timeout){var $0={};$0['clientID']=clientID;$0['roomGuid']=roomGuid;$0['lastItemGuidString']=lastItemGuidString;$0['sessionID']=sessionID;$0['lastActionTicks']=lastActionTicks;$0['pageUrl']=pageUrl;$0['roomState']=roomState;return Sys.Net.WebServiceProxy.invoke('/WebServices/ChatService.asmx','SwitchPhotoRoom',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.ChatService.rePin=function(clientID,roomGuid,lastItemGuidString,sessionID,lastActionTicks,pageUrl,roomState,success,failure,userContext,timeout){var $0={};$0['clientID']=clientID;$0['roomGuid']=roomGuid;$0['lastItemGuidString']=lastItemGuidString;$0['sessionID']=sessionID;$0['lastActionTicks']=lastActionTicks;$0['pageUrl']=pageUrl;$0['roomState']=roomState;return Sys.Net.WebServiceProxy.invoke('/WebServices/ChatService.asmx','RePin',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.ChatService.unPin=function(clientID,roomGuid,lastItemGuidString,sessionID,lastActionTicks,pageUrl,roomState,success,failure,userContext,timeout){var $0={};$0['clientID']=clientID;$0['roomGuid']=roomGuid;$0['lastItemGuidString']=lastItemGuidString;$0['sessionID']=sessionID;$0['lastActionTicks']=lastActionTicks;$0['pageUrl']=pageUrl;$0['roomState']=roomState;return Sys.Net.WebServiceProxy.invoke('/WebServices/ChatService.asmx','UnPin',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.ChatService.star=function(clientID,roomGuid,starred,lastItemGuidString,sessionID,lastActionTicks,pageUrl,roomState,success,failure,userContext,timeout){var $0={};$0['clientID']=clientID;$0['roomGuid']=roomGuid;$0['starred']=starred;$0['lastItemGuidString']=lastItemGuidString;$0['sessionID']=sessionID;$0['lastActionTicks']=lastActionTicks;$0['pageUrl']=pageUrl;$0['roomState']=roomState;return Sys.Net.WebServiceProxy.invoke('/WebServices/ChatService.asmx','Star',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.ChatService.storeUpdatedRoomListOrder=function(lastItemGuidString,sessionID,lastActionTicks,pageUrl,roomState,success,failure,userContext,timeout){var $0={};$0['lastItemGuidString']=lastItemGuidString;$0['sessionID']=sessionID;$0['lastActionTicks']=lastActionTicks;$0['pageUrl']=pageUrl;$0['roomState']=roomState;return Sys.Net.WebServiceProxy.invoke('/WebServices/ChatService.asmx','StoreUpdatedRoomListOrder',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.ChatService.storeState=function(roomState,success,failure,userContext,timeout){var $0={};$0['roomState']=roomState;return Sys.Net.WebServiceProxy.invoke('/WebServices/ChatService.asmx','StoreState',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.ChatService.randomWait=function(min,max,success,failure,userContext,timeout){var $0={};$0['min']=min;$0['max']=max;return Sys.Net.WebServiceProxy.invoke('/WebServices/ChatService.asmx','RandomWait',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete=function(){}
Spotted.WebServices.AutoComplete.getTags=function(text,maxNumberOfItemsToGet,parameters,success,failure,userContext,timeout){var $0={};$0['text']=text;$0['maxNumberOfItemsToGet']=maxNumberOfItemsToGet;$0['parameters']=parameters;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetTags',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete.getTagSearchString=function(prefixText,count,success,failure,userContext,timeout){var $0={};$0['prefixText']=prefixText;$0['count']=count;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetTagSearchString',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete.getGroupMembers=function(maxNumberOfItemsToGet,text,parameters,success,failure,userContext,timeout){var $0={};$0['maxNumberOfItemsToGet']=maxNumberOfItemsToGet;$0['text']=text;$0['parameters']=parameters;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetGroupMembers',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete.getUsrsPublic=function(text,maxNumberOfItemsToGet,parameters,success,failure,userContext,timeout){var $0={};$0['text']=text;$0['maxNumberOfItemsToGet']=maxNumberOfItemsToGet;$0['parameters']=parameters;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetUsrsPublic',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete.getBuddiesThenUsrs=function(text,maxNumberOfItemsToGet,parameters,success,failure,userContext,timeout){var $0={};$0['text']=text;$0['maxNumberOfItemsToGet']=maxNumberOfItemsToGet;$0['parameters']=parameters;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetBuddiesThenUsrs',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete.getBuddies=function(text,maxNumberOfItemsToGet,parameters,success,failure,userContext,timeout){var $0={};$0['text']=text;$0['maxNumberOfItemsToGet']=maxNumberOfItemsToGet;$0['parameters']=parameters;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetBuddies',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete.getBrands=function(text,maxNumberOfItemsToGet,parameters,success,failure,userContext,timeout){var $0={};$0['text']=text;$0['maxNumberOfItemsToGet']=maxNumberOfItemsToGet;$0['parameters']=parameters;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetBrands',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete.getPromotersWithK=function(text,maxNumberOfItemsToGet,parameters,success,failure,userContext,timeout){var $0={};$0['text']=text;$0['maxNumberOfItemsToGet']=maxNumberOfItemsToGet;$0['parameters']=parameters;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetPromotersWithK',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete.getUsersWithK=function(text,maxNumberOfItemsToGet,parameters,success,failure,userContext,timeout){var $0={};$0['text']=text;$0['maxNumberOfItemsToGet']=maxNumberOfItemsToGet;$0['parameters']=parameters;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetUsersWithK',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete.getPlacesEnabled=function(maxNumberOfItemsToGet,text,parameters,success,failure,userContext,timeout){var $0={};$0['maxNumberOfItemsToGet']=maxNumberOfItemsToGet;$0['text']=text;$0['parameters']=parameters;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetPlacesEnabled',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete.getVenuesFull=function(maxNumberOfItemsToGet,text,parameters,success,failure,userContext,timeout){var $0={};$0['maxNumberOfItemsToGet']=maxNumberOfItemsToGet;$0['text']=text;$0['parameters']=parameters;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetVenuesFull',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete.getVenues=function(text,maxNumberOfItemsToGet,parameters,success,failure,userContext,timeout){var $0={};$0['text']=text;$0['maxNumberOfItemsToGet']=maxNumberOfItemsToGet;$0['parameters']=parameters;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetVenues',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete.getEvents=function(maxNumberOfItemsToGet,text,parameters,success,failure,userContext,timeout){var $0={};$0['maxNumberOfItemsToGet']=maxNumberOfItemsToGet;$0['text']=text;$0['parameters']=parameters;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetEvents',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete.getPlaces=function(maxNumberOfItemsToGet,text,parameters,success,failure,userContext,timeout){var $0={};$0['maxNumberOfItemsToGet']=maxNumberOfItemsToGet;$0['text']=text;$0['parameters']=parameters;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetPlaces',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete.getSiteSearchResults=function(text,maxNumberOfItemsToGet,parameters,success,failure,userContext,timeout){var $0={};$0['text']=text;$0['maxNumberOfItemsToGet']=maxNumberOfItemsToGet;$0['parameters']=parameters;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetSiteSearchResults',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete.getGroups=function(text,maxNumberOfItemsToGet,parameters,success,failure,userContext,timeout){var $0={};$0['text']=text;$0['maxNumberOfItemsToGet']=maxNumberOfItemsToGet;$0['parameters']=parameters;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetGroups',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete.getGroupsNoBrands=function(maxNumberOfItemsToGet,text,parameters,success,failure,userContext,timeout){var $0={};$0['maxNumberOfItemsToGet']=maxNumberOfItemsToGet;$0['text']=text;$0['parameters']=parameters;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetGroupsNoBrands',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete.getObjects=function(text,maxNumberOfItemsToGet,parameters,success,failure,userContext,timeout){var $0={};$0['text']=text;$0['maxNumberOfItemsToGet']=maxNumberOfItemsToGet;$0['parameters']=parameters;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetObjects',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.AutoComplete.getCountries=function(get,text,parameters,success,failure,userContext,timeout){var $0={};$0['get']=get;$0['text']=text;$0['parameters']=parameters;return Sys.Net.WebServiceProxy.invoke('/WebServices/AutoComplete.asmx','GetCountries',true,$0,success,failure,userContext,timeout);}
Type.registerNamespace('Spotted.WebServices.Controls.Banners.Generator');
Spotted.WebServices.Controls.Banners.Generator.Service=function(){}
Spotted.WebServices.Controls.Banners.Generator.Service.getBanner=function(positionAsInt,relevantPlacesCsv,relevantMusicTypesCsv,success,failure,userContext,timeout){var $0={};$0['positionAsInt']=positionAsInt;$0['relevantPlacesCsv']=relevantPlacesCsv;$0['relevantMusicTypesCsv']=relevantMusicTypesCsv;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/Banners/Generator/Service.asmx','GetBanner',false,$0,success,failure,userContext,timeout);}
Type.registerNamespace('Spotted.WebServices.Controls.CommentsDisplay');
Spotted.WebServices.Controls.CommentsDisplay.Service=function(){}
Spotted.WebServices.Controls.CommentsDisplay.Service.getThreadComments=function(threadK,pageNumber,getCommentsOnly,success,failure,userContext,timeout){var $0={};$0['threadK']=threadK;$0['pageNumber']=pageNumber;$0['getCommentsOnly']=getCommentsOnly;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/CommentsDisplay/Service.asmx','GetThreadComments',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.CommentsDisplay.Service.lolAtComment=function(commentK,success,failure,userContext,timeout){var $0={};$0['commentK']=commentK;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/CommentsDisplay/Service.asmx','LolAtComment',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.CommentsDisplay.Service.deleteComment=function(commentK,success,failure,userContext,timeout){var $0={};$0['commentK']=commentK;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/CommentsDisplay/Service.asmx','DeleteComment',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.CommentsDisplay.Service.setThreadUsr=function(threadK,page,success,failure,userContext,timeout){var $0={};$0['threadK']=threadK;$0['page']=page;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/CommentsDisplay/Service.asmx','SetThreadUsr',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.CommentsDisplay.Service.createNewThreadInGroup=function(groupK,discussableObjectType,discussableObjectK,duplicateGuid,rawCommentHtml,formatting,isNews,inviteUsrOptions,isPrivate,success,failure,userContext,timeout){var $0={};$0['groupK']=groupK;$0['discussableObjectType']=discussableObjectType;$0['discussableObjectK']=discussableObjectK;$0['duplicateGuid']=duplicateGuid;$0['rawCommentHtml']=rawCommentHtml;$0['formatting']=formatting;$0['isNews']=isNews;$0['inviteUsrOptions']=inviteUsrOptions;$0['isPrivate']=isPrivate;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/CommentsDisplay/Service.asmx','CreateNewThreadInGroup',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.CommentsDisplay.Service.createPrivateThread=function(discussableObjectType,discussableObjectK,duplicateGuid,rawCommentHtml,formatting,inviteUsrOptions,isSealed,success,failure,userContext,timeout){var $0={};$0['discussableObjectType']=discussableObjectType;$0['discussableObjectK']=discussableObjectK;$0['duplicateGuid']=duplicateGuid;$0['rawCommentHtml']=rawCommentHtml;$0['formatting']=formatting;$0['inviteUsrOptions']=inviteUsrOptions;$0['isSealed']=isSealed;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/CommentsDisplay/Service.asmx','CreatePrivateThread',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.CommentsDisplay.Service.createReply=function(discussableObjectType,discussableObjectK,threadK,duplicateGuid,rawCommentHtml,formatting,lastKnownCommentK,inviteUsrOptions,success,failure,userContext,timeout){var $0={};$0['discussableObjectType']=discussableObjectType;$0['discussableObjectK']=discussableObjectK;$0['threadK']=threadK;$0['duplicateGuid']=duplicateGuid;$0['rawCommentHtml']=rawCommentHtml;$0['formatting']=formatting;$0['lastKnownCommentK']=lastKnownCommentK;$0['inviteUsrOptions']=inviteUsrOptions;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/CommentsDisplay/Service.asmx','CreateReply',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.CommentsDisplay.Service.createNewPublicThread=function(discussableObjectType,discussableObjectK,duplicateGuid,rawCommentHtml,formatting,isNews,inviteUsrOptions,success,failure,userContext,timeout){var $0={};$0['discussableObjectType']=discussableObjectType;$0['discussableObjectK']=discussableObjectK;$0['duplicateGuid']=duplicateGuid;$0['rawCommentHtml']=rawCommentHtml;$0['formatting']=formatting;$0['isNews']=isNews;$0['inviteUsrOptions']=inviteUsrOptions;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/CommentsDisplay/Service.asmx','CreateNewPublicThread',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.CommentsDisplay.Service.createPublicThread=function(discussableObjectType,discussableObjectK,duplicateGuid,rawCommentHtml,formatting,isNews,inviteUsrOptions,success,failure,userContext,timeout){var $0={};$0['discussableObjectType']=discussableObjectType;$0['discussableObjectK']=discussableObjectK;$0['duplicateGuid']=duplicateGuid;$0['rawCommentHtml']=rawCommentHtml;$0['formatting']=formatting;$0['isNews']=isNews;$0['inviteUsrOptions']=inviteUsrOptions;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/CommentsDisplay/Service.asmx','CreatePublicThread',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.CommentsDisplay.Service.getNewGuid=function(success,failure,userContext,timeout){var $0={};return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/CommentsDisplay/Service.asmx','GetNewGuid',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.CommentsDisplay.Service.cleanHtml=function(html,success,failure,userContext,timeout){var $0={};$0['html']=html;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/CommentsDisplay/Service.asmx','CleanHtml',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.CommentsDisplay.Service.getPreviewHtml=function(previewType,rawCommentHtml,formatting,success,failure,userContext,timeout){var $0={};$0['previewType']=previewType;$0['rawCommentHtml']=rawCommentHtml;$0['formatting']=formatting;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/CommentsDisplay/Service.asmx','GetPreviewHtml',false,$0,success,failure,userContext,timeout);}
Type.registerNamespace('Spotted.WebServices.Controls.EventBox');
Spotted.WebServices.Controls.EventBox.Service=function(){}
Spotted.WebServices.Controls.EventBox.Service.getEventPage=function(key,success,failure,userContext,timeout){var $0={};$0['key']=key;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/EventBox/Service.asmx','GetEventPage',false,$0,success,failure,userContext,timeout);}
Type.registerNamespace('Spotted.WebServices.Controls.EventCreator');
Spotted.WebServices.Controls.EventCreator.Service=function(){}
Spotted.WebServices.Controls.EventCreator.Service.addEvent=function(date,venueK,name,shortDetails,brands,success,failure,userContext,timeout){var $0={};$0['date']=date;$0['venueK']=venueK;$0['name']=name;$0['shortDetails']=shortDetails;$0['brands']=brands;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/EventCreator/Service.asmx','AddEvent',false,$0,success,failure,userContext,timeout);}
Type.registerNamespace('Spotted.WebServices.Controls.MultiBuddyChooser');
Spotted.WebServices.Controls.MultiBuddyChooser.Service=function(){}
Spotted.WebServices.Controls.MultiBuddyChooser.Service.getPlacesAndMusicTypes=function(success,failure,userContext,timeout){var $0={};return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/MultiBuddyChooser/Service.asmx','GetPlacesAndMusicTypes',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.MultiBuddyChooser.Service.resolveUsrsFromMultiBuddyChooserValues=function(values,success,failure,userContext,timeout){var $0={};$0['values']=values;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/MultiBuddyChooser/Service.asmx','ResolveUsrsFromMultiBuddyChooserValues',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.MultiBuddyChooser.Service.getBuddiesSelectListHtml=function(success,failure,userContext,timeout){var $0={};return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/MultiBuddyChooser/Service.asmx','GetBuddiesSelectListHtml',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.MultiBuddyChooser.Service.createUsrFromEmailAndReturnK=function(textEnteredByUser,success,failure,userContext,timeout){var $0={};$0['textEnteredByUser']=textEnteredByUser;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/MultiBuddyChooser/Service.asmx','CreateUsrFromEmailAndReturnK',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.MultiBuddyChooser.Service.createUsrsFromEmails=function(spaceSeparatedListOfEmailAddresses,addAsBuddies,success,failure,userContext,timeout){var $0={};$0['spaceSeparatedListOfEmailAddresses']=spaceSeparatedListOfEmailAddresses;$0['addAsBuddies']=addAsBuddies;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/MultiBuddyChooser/Service.asmx','CreateUsrsFromEmails',false,$0,success,failure,userContext,timeout);}
Type.registerNamespace('Spotted.WebServices.Controls.LatestChat');
Spotted.WebServices.Controls.LatestChat.Service=function(){}
Spotted.WebServices.Controls.LatestChat.Service.getThreads=function(objectType,objectK,threadsCount,hasGroupObjectFilter,success,failure,userContext,timeout){var $0={};$0['objectType']=objectType;$0['objectK']=objectK;$0['threadsCount']=threadsCount;$0['hasGroupObjectFilter']=hasGroupObjectFilter;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/LatestChat/Service.asmx','GetThreads',true,$0,success,failure,userContext,timeout);}
Type.registerNamespace('Spotted.WebServices.Controls.PhotoControl');
Spotted.WebServices.Controls.PhotoControl.Service=function(){}
Spotted.WebServices.Controls.PhotoControl.Service.getRecentVideos=function(pageNumber,success,failure,userContext,timeout){var $0={};$0['pageNumber']=pageNumber;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/PhotoControl/Service.asmx','GetRecentVideos',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.PhotoControl.Service.getPhotosByEventAndPage=function(eventK,pageNumber,success,failure,userContext,timeout){var $0={};$0['eventK']=eventK;$0['pageNumber']=pageNumber;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/PhotoControl/Service.asmx','GetPhotosByEventAndPage',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.PhotoControl.Service.getPhotosByGalleryAndPage=function(galleryK,pageNumber,success,failure,userContext,timeout){var $0={};$0['galleryK']=galleryK;$0['pageNumber']=pageNumber;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/PhotoControl/Service.asmx','GetPhotosByGalleryAndPage',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.PhotoControl.Service.getPhotosByArticle=function(articleK,pageNumber,success,failure,userContext,timeout){var $0={};$0['articleK']=articleK;$0['pageNumber']=pageNumber;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/PhotoControl/Service.asmx','GetPhotosByArticle',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.PhotoControl.Service.getPhotosOfUsr=function(usrK,pageNumber,spottedByUsrK,success,failure,userContext,timeout){var $0={};$0['usrK']=usrK;$0['pageNumber']=pageNumber;$0['spottedByUsrK']=spottedByUsrK;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/PhotoControl/Service.asmx','GetPhotosOfUsr',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.PhotoControl.Service.getFavouritePhotosOfUsr=function(usrK,pageNumber,success,failure,userContext,timeout){var $0={};$0['usrK']=usrK;$0['pageNumber']=pageNumber;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/PhotoControl/Service.asmx','GetFavouritePhotosOfUsr',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.PhotoControl.Service.getPhotosByGroup=function(groupK,pageNumber,success,failure,userContext,timeout){var $0={};$0['groupK']=groupK;$0['pageNumber']=pageNumber;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/PhotoControl/Service.asmx','GetPhotosByGroup',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.PhotoControl.Service.getPhotosByTag=function(tagK,pageNumber,success,failure,userContext,timeout){var $0={};$0['tagK']=tagK;$0['pageNumber']=pageNumber;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/PhotoControl/Service.asmx','GetPhotosByTag',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.PhotoControl.Service.setCurrentUsrSpottedInPhoto=function(photoK,isInPhoto,success,failure,userContext,timeout){var $0={};$0['photoK']=photoK;$0['isInPhoto']=isInPhoto;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/PhotoControl/Service.asmx','SetCurrentUsrSpottedInPhoto',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.PhotoControl.Service.setUsrSpottedInPhoto=function(spottedUsrK,photoK,isInPhoto,success,failure,userContext,timeout){var $0={};$0['spottedUsrK']=spottedUsrK;$0['photoK']=photoK;$0['isInPhoto']=isInPhoto;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/PhotoControl/Service.asmx','SetUsrSpottedInPhoto',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.PhotoControl.Service.setAsPhotoOfWeek=function(photoK,isPhotoOfWeek,photoOfWeekCaption,success,failure,userContext,timeout){var $0={};$0['photoK']=photoK;$0['isPhotoOfWeek']=isPhotoOfWeek;$0['photoOfWeekCaption']=photoOfWeekCaption;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/PhotoControl/Service.asmx','SetAsPhotoOfWeek',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.PhotoControl.Service.setIsFavouritePhoto=function(photoK,isFavourite,success,failure,userContext,timeout){var $0={};$0['photoK']=photoK;$0['isFavourite']=isFavourite;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/PhotoControl/Service.asmx','SetIsFavouritePhoto',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.PhotoControl.Service.incrementViews=function(photoK,success,failure,userContext,timeout){var $0={};$0['photoK']=photoK;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/PhotoControl/Service.asmx','IncrementViews',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.PhotoControl.Service.getBanners=function(placeholderClientID,success,failure,userContext,timeout){var $0={};$0['placeholderClientID']=placeholderClientID;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/PhotoControl/Service.asmx','GetBanners',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.PhotoControl.Service.registerBannerHit=function(bannerK,success,failure,userContext,timeout){var $0={};$0['bannerK']=bannerK;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/PhotoControl/Service.asmx','RegisterBannerHit',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.PhotoControl.Service.setAsCompetitionGroupPhoto=function(photoK,isCompetitionPhoto,success,failure,userContext,timeout){var $0={};$0['photoK']=photoK;$0['isCompetitionPhoto']=isCompetitionPhoto;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/PhotoControl/Service.asmx','SetAsCompetitionGroupPhoto',true,$0,success,failure,userContext,timeout);}
Type.registerNamespace('Spotted.WebServices.Controls.TaggingControl');
Spotted.WebServices.Controls.TaggingControl.Service=function(){}
Spotted.WebServices.Controls.TaggingControl.Service.removeTagFromPhoto=function(tagK,photoK,success,failure,userContext,timeout){var $0={};$0['tagK']=tagK;$0['photoK']=photoK;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/TaggingControl/Service.asmx','RemoveTagFromPhoto',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.TaggingControl.Service.addTagToPhoto=function(tagText,photoK,success,failure,userContext,timeout){var $0={};$0['tagText']=tagText;$0['photoK']=photoK;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/TaggingControl/Service.asmx','AddTagToPhoto',true,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.TaggingControl.Service.getTagsForPhotoKs=function(photoKs,success,failure,userContext,timeout){var $0={};$0['photoKs']=photoKs;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/TaggingControl/Service.asmx','GetTagsForPhotoKs',true,$0,success,failure,userContext,timeout);}
Type.registerNamespace('Spotted.WebServices.Controls.PlacesChooser');
Spotted.WebServices.Controls.PlacesChooser.Service=function(){}
Spotted.WebServices.Controls.PlacesChooser.Service.getPlaces=function(north,south,east,west,maximumNumber,success,failure,userContext,timeout){var $0={};$0['north']=north;$0['south']=south;$0['east']=east;$0['west']=west;$0['maximumNumber']=maximumNumber;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/PlacesChooser/Service.asmx','GetPlaces',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Controls.PlacesChooser.Service.getSurroundingPlaces=function(centredOnPlaceK,numberOfPlacesToGet,success,failure,userContext,timeout){var $0={};$0['centredOnPlaceK']=centredOnPlaceK;$0['numberOfPlacesToGet']=numberOfPlacesToGet;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/PlacesChooser/Service.asmx','GetSurroundingPlaces',false,$0,success,failure,userContext,timeout);}
Type.registerNamespace('Spotted.WebServices.Controls.VenueCreator');
Spotted.WebServices.Controls.VenueCreator.Service=function(){}
Spotted.WebServices.Controls.VenueCreator.Service.createVenue=function(name,placeK,postcode,success,failure,userContext,timeout){var $0={};$0['name']=name;$0['placeK']=placeK;$0['postcode']=postcode;return Sys.Net.WebServiceProxy.invoke('/WebServices/Controls/VenueCreator/Service.asmx','CreateVenue',true,$0,success,failure,userContext,timeout);}
Type.registerNamespace('Spotted.WebServices.Pages.MapBrowser.Tab');
Spotted.WebServices.Pages.MapBrowser.Tab.Service=function(){}
Spotted.WebServices.Pages.MapBrowser.Tab.Service.getEvents=function(firstRowIndex,lastRowIndex,north,south,east,west,showFuture,showPast,orderDesc,musicTypeK,success,failure,userContext,timeout){var $0={};$0['firstRowIndex']=firstRowIndex;$0['lastRowIndex']=lastRowIndex;$0['north']=north;$0['south']=south;$0['east']=east;$0['west']=west;$0['showFuture']=showFuture;$0['showPast']=showPast;$0['orderDesc']=orderDesc;$0['musicTypeK']=musicTypeK;return Sys.Net.WebServiceProxy.invoke('/WebServices/Pages/MapBrowser/Tab/Service.asmx','GetEvents',false,$0,success,failure,userContext,timeout);}
Spotted.WebServices.Pages.MapBrowser.Tab.Service.getVenues=function(firstRowIndex,lastRowIndex,north,south,east,west,success,failure,userContext,timeout){var $0={};$0['firstRowIndex']=firstRowIndex;$0['lastRowIndex']=lastRowIndex;$0['north']=north;$0['south']=south;$0['east']=east;$0['west']=west;return Sys.Net.WebServiceProxy.invoke('/WebServices/Pages/MapBrowser/Tab/Service.asmx','GetVenues',false,$0,success,failure,userContext,timeout);}
SpottedScript.Pages.MapBrowser.MapItem.registerClass('SpottedScript.Pages.MapBrowser.MapItem');
SpottedScript.Behaviours.CreateUsersFromEmails.Controller.registerClass('SpottedScript.Behaviours.CreateUsersFromEmails.Controller');
SpottedScript.Behaviours.CreateUsersFromEmails._EmailsSuggestionValue.registerClass('SpottedScript.Behaviours.CreateUsersFromEmails._EmailsSuggestionValue');
SpottedScript.Behaviours.CreateUserFromEmail.Controller.registerClass('SpottedScript.Behaviours.CreateUserFromEmail.Controller');
SpottedScript.Behaviours.CreateUserFromEmail._EmailSuggestionValue.registerClass('SpottedScript.Behaviours.CreateUserFromEmail._EmailSuggestionValue');
Net.Comet.CometProxy.registerClass('Net.Comet.CometProxy');
Net.Comet.CometRequest.registerClass('Net.Comet.CometRequest');
ScriptSharpLibrary.HelloWorld.registerClass('ScriptSharpLibrary.HelloWorld');
ScriptSharpLibrary.HtmlAutoCompleteAttributes.registerClass('ScriptSharpLibrary.HtmlAutoCompleteAttributes');
ScriptSharpLibrary.HtmlAutoCompleteBehaviour.registerClass('ScriptSharpLibrary.HtmlAutoCompleteBehaviour');
ScriptSharpLibrary.KeyValuePair.registerClass('ScriptSharpLibrary.KeyValuePair');
ScriptSharpLibrary.KeyStringPair.registerClass('ScriptSharpLibrary.KeyStringPair');
ScriptSharpLibrary.MultiSelectorAttributes.registerClass('ScriptSharpLibrary.MultiSelectorAttributes');
ScriptSharpLibrary.MultiSelectorBehaviour.registerClass('ScriptSharpLibrary.MultiSelectorBehaviour');
ScriptSharpLibrary.PairListField.registerClass('ScriptSharpLibrary.PairListField');
ScriptSharpLibrary.PopupMenu.registerClass('ScriptSharpLibrary.PopupMenu');
ScriptSharpLibrary.Suggestion.registerClass('ScriptSharpLibrary.Suggestion');
ScriptSharpLibrary.SuggestionsCollection.registerClass('ScriptSharpLibrary.SuggestionsCollection');
ScriptSharpLibrary.SuggestionsGetter.registerClass('ScriptSharpLibrary.SuggestionsGetter');
ScriptSharpLibrary.WatermarkExtender.registerClass('ScriptSharpLibrary.WatermarkExtender');
ScriptSharpLibrary.HtmlAutoComplete.RemoteSuggestionsGetter.registerClass('ScriptSharpLibrary.HtmlAutoComplete.RemoteSuggestionsGetter');
ScriptSharpLibrary.HtmlAutoComplete._CometRemoteSuggestionsGetter.registerClass('ScriptSharpLibrary.HtmlAutoComplete._CometRemoteSuggestionsGetter',ScriptSharpLibrary.HtmlAutoComplete.RemoteSuggestionsGetter);
ScriptSharpLibrary.HtmlAutoComplete.WebServiceRemoteSuggestionsGetter.registerClass('ScriptSharpLibrary.HtmlAutoComplete.WebServiceRemoteSuggestionsGetter',ScriptSharpLibrary.HtmlAutoComplete.RemoteSuggestionsGetter);
SpottedScript.Controls.Picker.Controller.registerClass('SpottedScript.Controls.Picker.Controller');
SpottedScript.Controls.Picker.DateStub.registerClass('SpottedScript.Controls.Picker.DateStub');
SpottedScript.Controls.Picker.ObjectStub.registerClass('SpottedScript.Controls.Picker.ObjectStub');
SpottedScript.Controls.Picker.EventSelectionSpecification.registerClass('SpottedScript.Controls.Picker.EventSelectionSpecification');
SpottedScript.Controls.Picker.StringArgs.registerClass('SpottedScript.Controls.Picker.StringArgs',Sys.EventArgs);
SpottedScript.Controls.Picker.ObjectArgs.registerClass('SpottedScript.Controls.Picker.ObjectArgs',Sys.EventArgs);
SpottedScript.Controls.Picker.DateArgs.registerClass('SpottedScript.Controls.Picker.DateArgs',Sys.EventArgs);
SpottedScript.Controls.Picker.EventSelectionArgs.registerClass('SpottedScript.Controls.Picker.EventSelectionArgs',Sys.EventArgs);
SpottedScript.Controls.Picker.View.registerClass('SpottedScript.Controls.Picker.View');
SpottedScript.Controls.SiteSearchBox.Controller.registerClass('SpottedScript.Controls.SiteSearchBox.Controller');
SpottedScript.Controls.SiteSearchBox.View.registerClass('SpottedScript.Controls.SiteSearchBox.View');
SpottedScript.Controls.VenueCreator.CountryInfo.registerClass('SpottedScript.Controls.VenueCreator.CountryInfo');
SpottedScript.Controls.VenueCreator.PlaceInfo.registerClass('SpottedScript.Controls.VenueCreator.PlaceInfo');
SpottedScript.Controls.VenueCreator.VenueInfo.registerClass('SpottedScript.Controls.VenueCreator.VenueInfo');
SpottedScript.Controls.VenueCreator.Controller.registerClass('SpottedScript.Controls.VenueCreator.Controller');
SpottedScript.Controls.VenueCreator.View.registerClass('SpottedScript.Controls.VenueCreator.View');
SpottedScript.CustomControls.DsiCalendar.Controller.registerClass('SpottedScript.CustomControls.DsiCalendar.Controller');
JQ.TabsSelectEventArgs.registerClass('JQ.TabsSelectEventArgs');
Utils.Trace.registerClass('Utils.Trace');
Utils._TraceObjects.registerClass('Utils._TraceObjects');
SpottedScript.Utils._ProviderService.registerClass('SpottedScript.Utils._ProviderService',null,SpottedScript.Utils._IProviderService);
SpottedScript.Utils._PagedProviderService.registerClass('SpottedScript.Utils._PagedProviderService',SpottedScript.Utils._ProviderService,SpottedScript.Utils._IPagedProviderService);
SpottedScript.Utils._CachedPagedProvider.registerClass('SpottedScript.Utils._CachedPagedProvider');
SpottedScript.Utils._NoMoreData.registerClass('SpottedScript.Utils._NoMoreData');
Spotted.System.Text.StringBuilder.registerClass('Spotted.System.Text.StringBuilder');
SpottedScript.Misc.registerClass('SpottedScript.Misc');
SpottedScript.IntEventArgs.registerClass('SpottedScript.IntEventArgs',Sys.EventArgs);
Spotted.WebServices.ChatService.registerClass('Spotted.WebServices.ChatService');
Spotted.WebServices.AutoComplete.registerClass('Spotted.WebServices.AutoComplete');
Spotted.WebServices.Controls.Banners.Generator.Service.registerClass('Spotted.WebServices.Controls.Banners.Generator.Service');
Spotted.WebServices.Controls.CommentsDisplay.Service.registerClass('Spotted.WebServices.Controls.CommentsDisplay.Service');
Spotted.WebServices.Controls.EventBox.Service.registerClass('Spotted.WebServices.Controls.EventBox.Service');
Spotted.WebServices.Controls.EventCreator.Service.registerClass('Spotted.WebServices.Controls.EventCreator.Service');
Spotted.WebServices.Controls.MultiBuddyChooser.Service.registerClass('Spotted.WebServices.Controls.MultiBuddyChooser.Service');
Spotted.WebServices.Controls.LatestChat.Service.registerClass('Spotted.WebServices.Controls.LatestChat.Service');
Spotted.WebServices.Controls.PhotoControl.Service.registerClass('Spotted.WebServices.Controls.PhotoControl.Service');
Spotted.WebServices.Controls.TaggingControl.Service.registerClass('Spotted.WebServices.Controls.TaggingControl.Service');
Spotted.WebServices.Controls.PlacesChooser.Service.registerClass('Spotted.WebServices.Controls.PlacesChooser.Service');
Spotted.WebServices.Controls.VenueCreator.Service.registerClass('Spotted.WebServices.Controls.VenueCreator.Service');
Spotted.WebServices.Pages.MapBrowser.Tab.Service.registerClass('Spotted.WebServices.Pages.MapBrowser.Tab.Service');
SpottedScript.Behaviours.CreateUserFromEmail.Controller.emailRegex='^[^\\@\\s]+\\@[A-Za-z0-9\\-]{1}[.A-Za-z0-9\\-]+\\.[.A-Za-z0-9\\-]*[A-Za-z0-9]$';
ScriptSharpLibrary.HtmlAutoCompleteAttributes.webServiceUrl='WebServiceUrl';
ScriptSharpLibrary.HtmlAutoCompleteAttributes.webServiceMethod='WebServiceMethod';
ScriptSharpLibrary.HtmlAutoCompleteAttributes.cometServiceUrl='CometServiceUrl';
ScriptSharpLibrary.HtmlAutoCompleteAttributes.maxNumberOfItemsToGet='MaxNumberOfItemsToGet';
ScriptSharpLibrary.HtmlAutoCompleteAttributes.minimumPopupWidth='MinimumPopupWidth';
ScriptSharpLibrary.HtmlAutoCompleteAttributes.maximumPopupWidth='MaximumPopupWidth';
ScriptSharpLibrary.HtmlAutoCompleteAttributes.popupMenuClassName='PopupMenu';
ScriptSharpLibrary.HtmlAutoCompleteAttributes.popupMenuHighlightedItemClassName='PopupMenuHighlightedItem';
ScriptSharpLibrary.HtmlAutoCompleteAttributes.excludedItems='ExcludedItems';
ScriptSharpLibrary.HtmlAutoCompleteAttributes.listBoxItemValue='ListBoxItemValue';
ScriptSharpLibrary.HtmlAutoCompleteAttributes.onselectionmade='onselectionmade';
ScriptSharpLibrary.HtmlAutoCompleteAttributes.onhighlight='onhighlight';
ScriptSharpLibrary.HtmlAutoCompleteAttributes.onpopupcancel='onpopupcancel';
ScriptSharpLibrary.HtmlAutoCompleteAttributes.watermark='Watermark';
ScriptSharpLibrary.HtmlAutoCompleteAttributes.popupLeftOffset='PopupLeftOffset';
ScriptSharpLibrary.HtmlAutoCompleteAttributes.popupTopOffset='PopupTopOffset';
ScriptSharpLibrary.HtmlAutoCompleteAttributes.rightAlign='RightAlign';
ScriptSharpLibrary.MultiSelectorAttributes.selections='Selections';
ScriptSharpLibrary.MultiSelectorAttributes.multiSelectorDelButtonCss='MultiSelectorDelButton';
ScriptSharpLibrary.MultiSelectorAttributes.multiSelectorListBoxCss='MultiSelectorListBoxItem';
SpottedScript.Controls.VenueCreator.Controller.$2=null;
Utils._TraceObjects.$0=null;
SpottedScript.Utils._CachedPagedProvider.$0=1;
// ---- Do not remove this footer ----
// Generated using Script# v0.5.1.0 (http://projects.nikhilk.net)
// -----------------------------------
