TAGGED.namespace("api");TAGGED.api={format:"json",_login_regex_match:/\\"error\\":{\\"code\\":11,.*}/,_captcha_regex_match:/"stat":"security"/,errorResponse:{stat:"fail",error:{code:-1}},errorResponseBC:'({stat: "fail", error: {code: -1}})',queue:[],_deferQueueTime:300,defer:[],_deferTimer:null,_trackedRequests:{},_requestsLUT:{},dequeue:function(){var a=this.queue;this.queue=[];if(a.length){this.call(a)}},deferDequeue:function(){if((this.queue.length+this.defer.length)<=1){this.startDefer({result:this._deferQueueTime});return}this.queue=this.queue.concat(this.defer);this.defer=[];this.dequeue()},handleDefer:function(){this.stopDefer();if(!this.defer.length||this.defer[this.defer.length-1].callback!="TAGGED.api.startDefer"){this.defer.push({method:"tagged.util.echoIt",data:this._deferQueueTime,callback:"TAGGED.api.startDefer"})}this.deferDequeue()},startDefer:function(a){var b=0;if(a){if(a.stat=="fail"){return}if(a.result){b=a.result}else{b=a}}if(YAHOO.lang.isString(b)){b=parseInt(b)}if(!YAHOO.lang.isNumber(b)){b=0}if(b>0){this.stopDefer();this._deferTimer=window.setTimeout("TAGGED.api.handleDefer()",1000*b)}else{this.handleDefer()}},stopDefer:function(){if(!this._deferTimer){return}window.clearTimeout(this._deferTimer);this._deferTimer=null},call:function(k,g){if(this.queue.length&&!g&&YAHOO.lang.isObject(k)){if(YAHOO.lang.isArray(k)){for(var d=0,h=k.length;d<h;++d){this.queue.push(k[d])}}else{this.queue.push(k)}this.dequeue();return}var a="\n";var e={application_id:"user",format:this.format};if(this.getQueryStringParameter("no_cache")||this.getQueryStringParameter("clear_cache")){e.no_cache="1"}var j=this.getQueryStringParameter("loc");if(!j){j=this.getQueryStringParameter("locale")}if(j){e.locale=j}if(k.constructor==Array){var c=tagged.clone(k);for(var d=0,f=k.length;d<f;++d){if(k[d].constructor==String){a+=k[d]+"\n"}else{if(typeof(k[d].callback)=="object"){delete k[d].callback}a+=TAGGED.api.createQueryString(k[d],true)+"\n"}}}else{if(k.constructor==String){var c=k;a+=k+"\n"}else{var c={};YAHOO.lang.augmentObject(c,k);if(typeof(k.callback)=="object"){delete k.callback}a+=TAGGED.api.createQueryString(k,true)+"\n"}}e.session_token=YAHOO.util.Cookie.get("S");TAGGED.api.callback.argument=g;var b=YAHOO.util.Connect.asyncRequest("POST","/api/?"+TAGGED.api.createQueryString(e),TAGGED.api.callback,a);if(tagged.performance){tagged.performance.addXHR(b,a)}this.pushRequestLUT(b.tId,c);return b},callback:{success:function(a){if(!a||!a.responseText){if(tagged.performance){tagged.performance.updateXHRQueue()}TAGGED.api.evalResponse(a,true)}if(tagged.performance){tagged.performance.removeXHR(a)}if(a.responseText.search(TAGGED.api._login_regex_match)>=0){window.location="/index.html?r="+encodeURIComponent(window.location)}else{if(tagged.diagnostics){tagged.diagnostics.findApiData(a.responseText)}if(a.argument){a.argument()}TAGGED.api.evalResponse(a)}},failure:function(a){if(tagged.performance){tagged.performance.updateXHRQueue()}TAGGED.api.evalResponse(a,true)}},recall:function(a,b){if(b==null||b==""){b="default"}if(TAGGED.api._trackedRequests[b]!=null){YAHOO.util.Connect.abort(TAGGED.api._trackedRequests[b]);TAGGED.api._trackedRequests[b]=null}TAGGED.api._trackedRequests[b]=TAGGED.api.call(a)},nullResponseHandler:function(){},createQueryString:function(b,a){var c="";if(a){b.api_signature="";if(TAGGED.guid){b.track=TAGGED.guid}if(b.method){c+="method="+encodeURIComponent(b.method)+"&";delete b.method}else{alert(TAGGED.api.strings.errorMethodMissing);return""}}for(i in b){c+=encodeURIComponent(i)+"="+encodeURIComponent(b[i])+"&"}if(c.length){return c.substr(0,c.length-1)}return c},pushRequestLUT:function(e,c){var d=function(h){var f=h.indexOf("callback=")+9;var g=h.slice(f,h.indexOf("&",f));return{callback:g}};if(YAHOO.lang.isArray(c)){this._requestsLUT[e]=[];for(var b=0,a=c.length;b<a;++b){if(YAHOO.lang.isString(c[b])){this._requestsLUT[e].push(d(c[b]))}else{this._requestsLUT[e].push(c[b])}}}else{if(YAHOO.lang.isString(c)){this._requestsLUT[e]=[d(c)]}else{this._requestsLUT[e]=[c]}}},popRequestLUT:function(b){var a=this._requestsLUT[b];delete this._requestsLUT[b];return a},evalResponse:function(o,isError){var requestCalls=this.popRequestLUT(o.tId);if(!requestCalls||!requestCalls.length){return}if(!isError){try{if(!o.responseText){isError=true}else{if(this.format=="jsonp"){eval(o.responseText);return}else{var requestData=eval(o.responseText);if(requestCalls.length!=requestData.length){isError=true}}}}catch(e){isError=true;alert(TAGGED.api.strings.errorGeneral)}}for(var i=0;i<requestCalls.length;i++){var _request=requestCalls[i];if(typeof(_request.callback)=="string"){if(isError){eval(_request.callback+TAGGED.api.errorResponseBC)}else{try{if(requestData[i].search(TAGGED.api._captcha_regex_match)>-1){var data=eval("("+requestData[i]+")");tagged.security.captcha.trigger(data,_request)}else{eval(_request.callback+"("+requestData[i]+")")}}catch(e){eval(_request.callback+TAGGED.api.errorResponseBC)}}}else{if(isError){_request.callback.fn.apply(_request.callback.scope,[TAGGED.api.errorResponse,_request.callback.args])}else{try{var data=eval("("+requestData[i]+")");if(data.stat=="security"){tagged.security.captcha.trigger(data,_request)}else{if(_request.callback&&_request.callback.fn){var start=new Date();_request.callback.fn.apply(_request.callback.scope,[data,_request.callback.args]);var end=new Date();if(tagged.performance){tagged.performance.recordBenchmarkAPI({apiMethod:_request.method,result:(end-start)})}}}}catch(e){if(_request.callback){_request.callback.fn.apply(_request.callback.scope,[TAGGED.api.errorResponse,_request.callback.args])}}}}}}};if(tagged.exists("H")){TAGGED.api.getQueryStringParameter=H.getQueryStringParameter}else{TAGGED.api.getQueryStringParameter=function(f,c){var d,b,a,h,g,e;c=c||window.location.href;a=c.indexOf("?");h=a>=0?c.substr(a+1):c;a=h.lastIndexOf("#");h=a>=0?h.substr(0,a):h;g=h.split("&");for(d=0,b=g.length;d<b;d++){e=g[d].split("=");if(e.length>=2){if(e[0]===f){return unescape(e[1])}}}return null}}E.onDOMReady(function(){TAGGED.api.startDefer({result:1})});tagged.namespace("util.stringBuffer");tagged.util.stringBuffer=function(){this.buffer=[]};tagged.util.stringBuffer.prototype={add:function(c){var b=0;var a=arguments.length;for(;b<a;++b){if(typeof(arguments[b])!="undefined"){this.buffer[this.buffer.length]=arguments[b]}}},append:function(a){this.buffer[this.buffer.length]=a},toString:function(){return this.buffer.join("")}};tagged.namespace("util.countries");tagged.util.countries={getCountries:function(b,h,a,k,g,c,j){var l=new tagged.util.stringBuffer();l.append('<select id="'+h+'" class="'+k+'" name="'+a+'" onchange="'+c+'">');if(!j){l.add('<option value="-1">',tagged.util.countries.allCountries,"</option>")}else{l.append('<option value="-"></option>')}l.append("<optgroup>");var f=this.englishCountries;for(var e in f){var d=(e==g)?' selected="selected"':"";l.add('<option value="',e,'"',d,' title="',f[e],'">',f[e],"</option>")}l.append('</optgroup><optgroup label="---">');f=tagged.util.countries.otherCountries;for(var e in f){d=(e==g)?' selected="selected"':"";l.add('<option value="',e,'"',d,">",f[e],"</option>")}l.append("</optgroup></select>");if(YAHOO.lang.isString(b)){b=D.get(b)}b.innerHTML=l},forceCountry:function(b,g,a,h,f){var c;var d=this.englishCountries;for(var e in d){if(e==f){c=d[e];break}}if(!c){var d=this.otherCountries;for(var e in d){if(e==f){c=d[e];break}}}var j='<input type="hidden" id="'+g+'" name="'+a+'" value="'+f+'"/><span class="'+h+'">'+c+"</span>";if(YAHOO.lang.isString(b)){b=YAHOO.util.Dom.get(b)}b.innerHTML=j}};function str_repeat(b,a){for(var c=[];a>0;c[--a]=b){}return(c.join(""))}function sprintf(){var h=0,l,j=arguments[h++],d=[],e,b,k,n;var q=j;if(typeof arguments[1]=="object"){var g=arguments[1];return q.replace(/%\(([^)]+)\)/g,function(c,a){return g[a]})}while(j){if(e=/^[^\x25]+/.exec(j)){d.push(e[0])}else{if(e=/^\x25{2}/.exec(j)){d.push("%")}else{if(e=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(j)){var r=e[1]||h++;if(r>=arguments.length){throw ("Too few arguments: "+q)}var l=arguments[r];switch(e[7]){case"b":l=parseInt(l);l=l.toString(2);break;case"c":l=String.fromCharCode(l);break;case"d":l=parseInt(l);break;case"e":l=parseFloat(l);l=e[6]?l.toExponential(e[6]):l.toExponential();break;case"f":l=e[6]?parseFloat(l).toFixed(e[6]):parseFloat(l);break;case"o":l=parseInt(l);l=l.toString(8);break;case"s":l=((l=String(l))&&e[6]?l.substring(0,e[6]):l);break;case"u":l=Math.abs(l);break;case"x":l=parseInt(l);l=l.toString(16);break;case"X":l=parseInt(l);l=l.toString(16).toUpperCase();break}l=(/[def]/.test(e[7])&&e[2]&&l>0?"+"+l:l);k=e[3]?e[3]=="0"?"0":e[3].charAt(1):" ";n=e[5]-String(l).length;b=e[5]?str_repeat(k,n):"";d.push(e[4]?l+b:b+l)}else{throw ("Huh ?!")}}}j=j.substring(e[0].length)}return d.join("")};TAGGED.namespace("util.hintinput");TAGGED.util.hintinput={attach:function(b,e,d){var c=(typeof b=="object")?b:D.get(b);var a=(typeof e=="object")?e:D.get(e);if(c!=null){YAHOO.lang.augmentObject(c,TAGGED.util.hintinput.methods,true);E.addListener(c,"blur",c._insertDefaultText);E.addListener(c,"focus",c._removeDefaultText);E.addListener(a,"submit",c._onFormSubmit,c);c.setAttribute("defaultText",d);c.setAttribute("prevColor",YAHOO.util.Dom.getStyle(c,"color"));if(typeof(document.activeElement)=="object"){if(document.activeElement!=c){c._insertDefaultText()}}else{c._insertDefaultText()}}},methods:function(){return{getValue:function(){this._removeDefaultText();var a=this.value;this._insertDefaultText();return a},setValue:function(a){this._removeDefaultText();this.value=a;this._insertDefaultText()},hasValue:function(){return !D.hasClass(this,"showdefault")&&this.value!=""},clearValue:function(){this.setValue("")},_insertDefaultText:function(){if(!this.disabled&&!D.hasClass("showdefault")&&this.value==""){D.addClass(this,"showdefault");D.setStyle(this,"color","#999");this.value=this.getAttribute("defaultText")}},_removeDefaultText:function(){if(D.hasClass(this,"showdefault")){D.removeClass(this,"showdefault");D.setStyle(this,"color","#000");this.value=""}},_onFormSubmit:function(b,a){a._removeDefaultText()}}}()};tagged.namespace("util.locationselector");(function(){var a;tagged.util.locationselector={stateAbbrevs:{Alabama:"AL",Alaska:"AK","American Samoa":"AS",Arizona:"AZ",Arkansas:"AR",California:"CA",Colorado:"CO",Connecticut:"CT",Delaware:"DE","District of Columbia":"DC",Florida:"FL",Georgia:"GA",Hawaii:"HI",Idaho:"ID",Illinois:"IL",Indiana:"IN",Iowa:"IA",Kansas:"KS",Kentucky:"KY",Louisiana:"LA",Maine:"ME",Maryland:"MD",Massachusetts:"MA",Michigan:"MI",Minnesota:"MN",Mississippi:"MS",Missouri:"MO",Montana:"MT",Nebraska:"NE",Nevada:"NV","New Hampshire":"NH","New Jersey":"NJ","New Mexico":"NM","New York":"NY","North Carolina":"NC","North Dakota":"ND",Ohio:"OH",Oklahoma:"OK",Oregon:"OR",Palau:"PW",Pennsylvania:"PA","Rhode Island":"RI","South Carolina":"SC","South Dakota":"SD",Tennessee:"TN",Texas:"TX",Utah:"UT",Vermont:"VT",Virginia:"VA",Washington:"WA","West Virginia":"WV",Wisconsin:"WI",Wyoming:"WY",Alberta:"AB","British Columbia":"BC",Manitoba:"MB","New Brunswick":"NB",Newfoundland:"NL","Northwest Territories":"NT","Nova Scotia":"NS",Ontario:"ON","Prince Edward Island":"PE",Quebec:"QC",Saskatchewan:"SK",Yukon:"YT"},locationHTML:'<div id="location_search_ac"><input id="location" name="location" class="fields-text" /><span id="location_span"></span><div id="location_results" class="location_container"></div></div><input id="location_nd" name="location_nd" type="hidden" value="" /><div class="clearBoth"/>',create:function(d,g,b,c,h,k,j,e){var f=D.get(d);k=k||"country";j=j||"country_span";f.innerHTML=sprintf(this.strings.countryHTML,j);if(!e){f.innerHTML+=this.strings.distanceHTML;f.innerHTML+=this.locationHTML}var i=tagged.util.locationselector.strings.allCountries;if(g!=""){i=g}if(!h){tagged.util.countries.getCountries(j,k,"country","fields-wide",i);if(!e){D.get(k).onchange=function(){tagged.util.locationselector.countryChange(this.options[this.selectedIndex].value)}}}else{tagged.util.countries.forceCountry(j,k,"country","select_wide",i)}if(!e){D.get("location").value=b;TAGGED.util.hintinput.attach("location",c,tagged.util.locationselector.getDefaultLocation(i));this.AC=tagged.util.locationselector.createCityAutocomplete("location","location_results");this.AC.generateRequest=function(l){return"?cc_iso="+c.country.value+"&str="+l}}},countryChange:function(c){var e=tagged.util.locationselector.strings.distanceMiles;if(!(c=="US"||c=="GB")){e=tagged.util.locationselector.strings.distanceKilometers}var d=[5,10,20,50,100];var b='<select class="fields-wide" id="distance" name="distance">';b+='<option value="0">'+tagged.util.locationselector.strings.distanceMatches+"</option>";for(var f=0;f<d.length;++f){b+='<option value="'+d[f]+'">'+sprintf(e,d[f])+"</option>"}b+="</select>";D.get("distance_span").innerHTML=b;D.get("location_nd").value="";D.get("location").setAttribute("defaultText",tagged.util.locationselector.getDefaultLocation(c));D.get("location").clearValue();var g=tagged.util.locationselector.shouldShowAdmin(c);this.AC.formatResult=tagged.util.locationselector.getFormatter(c);this.AC.itemSelectEvent.unsubscribeAll();this.AC.itemSelectEvent.subscribe(function(j,i){var h=g?tagged.util.locationselector._abbrevState(i[2].placeAdm1):"";D.get("location").value=i[2].placeName+h;D.get("location_nd").value=i[2].placeNameND+h})},getDefaultLocation:function(b){var c=tagged.util.locationselector.strings.defaultDefaultCity;if(b=="CA"){c=tagged.util.locationselector.strings.defaultCanadaCity}else{if(b=="US"){c=tagged.util.locationselector.strings.defaultUSCity}}return c},_highlightString:function(e,d){var c=new RegExp("("+d+")","ig");var b=e.replace(c,"<strong>$1</strong>");return b.replace("$1",d)},_abbrevState:function(b){if(b.length==0){return""}else{if(typeof(this.stateAbbrevs[b])=="undefined"){return", "+b}else{return", "+this.stateAbbrevs[b]}}},shouldShowAdmin:function(b){return(b=="US"||b=="CA"||b=="-1")},getFormatter:function(b){var c=tagged.util.locationselector.shouldShowAdmin(b);return function(d,e){var f=tagged.util.locationselector._highlightString(d.placeName,e);var g=c?tagged.util.locationselector._abbrevState(d.placeAdm1):"";return f+g}},createCityAutocomplete:function(e,b){var d=new YAHOO.util.XHRDataSource("/proxy/l.php");d.responseType=YAHOO.util.XHRDataSource.TYPE_JSON;d.responseSchema={resultsList:"results",fields:["placeName","placeAdm1","placeId","placeCountryName","placeNameND"]};var c=new YAHOO.widget.AutoComplete(e,b,d);c.useIFrame=true;c.resultTypeList=false;c.maxResultsDisplayed=10;c.autoHighlight=true;c.allowBrowserAutocomplete=false;c.minQueryLength=2;c.forceSelection=false;return c}}})();tagged.namespace("regpath.regpage");D=YAHOO.util.Dom;E=YAHOO.util.Event;C=YAHOO.util.Cookie;tagged.regpath.regpage={cityDataSource:"",passed_captcha:null,pollEnabled:false,isRegOnIndex:false,userActionsBuffer:{},init:function(){tagged.regpath.regpage.prefillValues();tagged.regpath.regpage.removeShowingTip();tagged.regpath.regpage.setConditionalRegformProperties();tagged.regpath.regpage.initCountries();tagged.regpath.regpage.attachEventListeners();tagged.regpath.regpage.initCityAutocomplete();if(!D.hasClass("reg_form","hide_me")){tagged.regpath.regpage.setUpFields(null,1)}tagged.regpath.regpage.reloadCaptcha();if(tagged.data.focus_name_field){window.setTimeout(function(){D.get("first_name").focus()},0)}window.setTimeout(function(){tagged.regpath.regpage.initFocus()},1);this.userActionsBuffer={};if(tagged.data.use_large_form=="1"&&tagged.data.viral_reg){D.addClass("wrapper","viral_large_form");D.addClass("inviter_info","viral_large");var a=D.getElementsByClassName("inner_container","div");D.addClass(a[0],"viral_large_form")}if(D.hasClass("reg_frame","hide_me")){D.get("unified_login").src=tagged.data.secure_url}if(tagged.data.poll_object){var b={items:tagged.data.poll_object,offset:0,total:1};tagged.regpath.pollsView.renderPoll(b)}},showLogin:function(a){E.preventDefault(a);document.title=tagged.strings.regpage.signIn;D.addClass("reg_form","hide_me");D.addClass("reg_header","hide_me");D.removeClass("login_frame","hide_me");D.removeClass("login_header","hide_me");D.get("unified_login").src=tagged.data.secure_url},showReg:function(a){E.preventDefault(a);document.title=tagged.strings.regpage.register;D.addClass("login_frame","hide_me");D.addClass("login_header","hide_me");D.removeClass("reg_form","hide_me");D.removeClass("reg_header","hide_me");tagged.regpath.regpage.setUpFields(null,1);tagged.regpath.regpage.initFocus();D.get("unified_login").src=""},prefillValues:function(){if(name=C.get("regName")){D.get("first_name").value=name}if(lastName=C.get("regLastName")){D.get("last_name").value=lastName}if(gender=C.get("regFemaleGender")){D.get(gender).checked=true}if(day=C.get("regBirthDay",Number)){D.get("birth_day").value=day}if(month=C.get("regBirthMonth",Number)){D.get("birth_month").value=month}if(year=C.get("regBirthYear",Number)){D.get("birth_year").value=year}if(city=C.get("regCity")){D.get("city").value=city}if(email=C.get("regEmail")){D.get("email").value=email}if(zip=C.get("regZipCode")){D.get("zipCode").value=zip}if(country=C.get("regCountry")){tagged.regpath.regpage.globals.prefillCountry=country}if(C.get("regTermsOfService",Number)==1){D.get("termsOfService").checked=true}tagged.regpath.regpage.removeCookies()},initFocus:function(){var f=document.forms.reg_form;if(f&&D.get("reg_header")&&!D.hasClass("reg_header","hide_me")){var c=0;var d=null;for(;c<f.elements.length;++c){var b=f.elements[c];if(b.name){var a=D.get(b.name+"Wrapper");if(a&&D.hasClass(a,"hide_me")){continue}}try{if(!b.value||b.value==0){if(!d){d=b}}else{b.focus()}}catch(g){}}if(d){d.focus()}}},handleUnload:function(g){if(tagged.regpath.regpage.pollEnabled){var a=250;var c=600;var b="bounce_poll.html";var f=window.open(b,"bounce_poll","height="+a+",width="+c+",menubar=0,toolbar=0,status=0,location=0,scrollbars=0,resizable=0");if(f){f.focus()}}var h=YAHOO.lang.JSON.stringify(this.userActionsBuffer);var d={method:"tagged.reg.logUserActions",actions:h,callback:{fn:TAGGED.api.nullResponseHandler,scope:this}};TAGGED.api.call(d)},createTooltip:function(h,b){if(b.length==2){var g=document.getElementById(b[0]);var d=b[1];tagged.regpath.regpage.removeShowingTip(null);if(!g){return}var f=document.createElement("span");var c=document.createElement("p");var a=g.parentNode;toolTipMessage=tagged.strings.regpage[d];effectiveToolTipMessage=toolTipMessage.replace(/<.{1,10}>/g,"");effectiveToolTipMessage=effectiveToolTipMessage.replace(/&#[0-9]*;/g,"");if(effectiveToolTipMessage.length<75){f.className="regPageTooltipsTiny"}else{if(effectiveToolTipMessage.length<120){f.className="regPageTooltipsSmall"}else{if(effectiveToolTipMessage.length<182){f.className="regPageTooltipsMedium"}else{if(effectiveToolTipMessage.length<260){f.className="regPageTooltipsLarge"}else{f.className="regPageTooltipsLarger"}}}}f.setAttribute("id","regPageTooltip");if(g.id=="city"&&tagged.regpath.regpage.isRegOnIndex){D.addClass(f,"cityTooltip")}f.appendChild(c);c.innerHTML=toolTipMessage;a.insertBefore(f,a.lastChild.nextSibling)}},removeShowingTip:function(b){var a=document.getElementById("regPageTooltip");if(a){a.parentNode.removeChild(a)}},onFieldFocused:function(c,b){if(tagged.data.use_large_form=="1"){var a=tagged.regpath.regpage.getValidationEl(b);if(a&&!D.hasClass(a,"correct")&&!D.hasClass(a,"wrong")){var d="";if(b=="birth_month"||b=="birth_year"){d=tagged.strings.regpage.info.birth_day}else{d=tagged.strings.regpage.info[b]}D.removeClass(a,"hide_me");tagged.regpath.regpage.insertMessage(a,d)}}else{D.removeClass(b,"defaultInput");D.addClass(b,"selectedInput")}},onFieldBlur:function(g,b){var f=D.get(b.inputEl);if(b.validate){D.addClass(f,"defaultInput");D.removeClass(f,"selectedInput")}if(tagged.data.use_large_form=="1"){var a=tagged.regpath.regpage.getValidationEl(b.inputEl);if(a){var c=f.tagName.toLowerCase();var d=(c=="input")?f.value:f.selectedIndex;if((d!=""||b.inputEl=="locale"||d!=0)&&!D.hasClass(f,"date")){tagged.regpath.regpage.callValidate(b.inputEl,d)}else{D.removeClass(a,"loading");if(!D.hasClass(a,"correct")&&!D.hasClass(a,"wrong")){D.addClass(a,"hide_me")}}}}this.logAction(f)},showLoading:function(f){var d=E.getTarget(f);var c=d.tagName.toLowerCase();if(c=="input"&&f.keyCode!=9){var b=tagged.regpath.regpage.getValidationEl(d.id);if(b){var a=D.getLastChild(b);D.removeClass(a,"long");a.innerHTML=tagged.strings.regpage.checking;D.addClass(b,"loading")}}},showValidation:function(g){var b=E.getTarget(g);var m=g.keyCode;var a=g.type;var i=b.tagName.toLowerCase();if((i=="input"||i=="select")){var f=tagged.regpath.regpage.getValidationEl(b.id);var k=(i=="input")?b.value:b.selectedIndex;if(i=="input"&&a=="keyup"&&f&&m!=9){window.clearTimeout(this.timeout);this.timeout=window.setTimeout(function(){tagged.regpath.regpage.callValidate(b.id,k)},1000)}else{if(i=="select"&&(typeof(m)=="undefined"||m!=9)){var j=b.id;if(D.hasClass(b,"date")){if(D.get("birth_month").value==0||D.get("birth_year").value==0||D.get("birth_day").value==0){k=0}else{if(D.get("birth_month").value!=0&&D.get("birth_year").value!=0&&D.get("birth_day").value!=0){var h=new Date();h.setFullYear(h.getFullYear()-13);var l=new Date(D.get("birth_year").value,D.get("birth_month").value-1,D.get("birth_day").value);if(l>h){k=1}}}j="birth_day"}var c=(k==0&&b.id!="locale")?tagged.strings.regpage.errors[j]:"";c=(k==1&&b.id!="locale")?tagged.strings.regpage.errors.bad_age:c;tagged.regpath.regpage.showFeedback(f,c)}}}},callValidate:function(e,b){var d=function(h){if(h.stat=="ok"&&h.results){var f=tagged.regpath.regpage.getValidationEl(e);var g=(h.results.errors.length==0)?"":tagged.strings.regpage.messages[h.results.errors[0]];tagged.regpath.regpage.showFeedback(f,g)}};var c=D.get(e);var a={method:"tagged.reg.validate",id:c.id,value:b,callback:{fn:d,scope:this}};TAGGED.api.call(a)},showFeedback:function(a,b){D.removeClass(a,"loading");if(b==""){D.addClass(a,"correct");D.removeClass(a,"wrong");b="ok"}else{D.addClass(a,"wrong");D.removeClass(a,"correct")}tagged.regpath.regpage.insertMessage(a,b)},insertMessage:function(b,c){var a=D.getLastChild(b);if(c.length>34){D.addClass(a,"long")}else{D.removeClass(a,"long")}a.innerHTML=c},getValidationEl:function(c){var b=D.getAncestorByTagName(c,"p");if(c=="city"){b=D.get("cityWrapper")}else{if(c=="birth_day"||c=="birth_month"||c=="birth_year"){b=D.get("birthDayWrapper")}}if(b){var a=D.getChildrenBy(b,function(d){return D.hasClass(d,"info")});if(a.length>0){return a[0]}}return false},logAction:function(a){this.userActionsBuffer[a.id]=(a.value!=false)?1:0},initCountries:function(){tagged.util.countries.getCountries("country_span","country","country","fields-wide",tagged.regpath.regpage.globals.prefillCountry,null,true);E.addListener("country","change",function(){tagged.regpath.regpage.changeCountryTypeahead(this.options[this.selectedIndex].value)},0);D.get("country").tabIndex=9},initCityAutocomplete:function(){tagged.regpath.regpage.cityAC=tagged.util.locationselector.createCityAutocomplete("city","cities");var a=D.get("country");tagged.regpath.regpage.changeCountryTypeahead(a?a.value:"US")},changeCountryTypeahead:function(a){tagged.regpath.regpage.cityAC.generateRequest=function(c){return"?cc_iso="+a+"&str="+c};tagged.regpath.regpage.cityAC.formatResult=tagged.util.locationselector.getFormatter(a);var b=tagged.util.locationselector.shouldShowAdmin(a);tagged.regpath.regpage.cityAC.itemSelectEvent.unsubscribeAll();tagged.regpath.regpage.cityAC.itemSelectEvent.subscribe(function(e,d){var c=b?tagged.util.locationselector._abbrevState(d[2].placeAdm1):"";D.get("city").value=d[2].placeName+c})},setUpFields:function(b,a){var c=tagged.regpath.regpage.globals.prefillCountry;if(a){D.get("country").value=c}else{c=D.get("country").value}if(c=="US"){D.addClass("cityWrapper","hide_me");D.removeClass("zipCodeWrapper","hide_me");if(a){D.addClass("countryWrapper","hide_me");D.addClass("country","hide_me")}}else{D.addClass("zipCodeWrapper","hide_me");D.removeClass("cityWrapper","hide_me");D.removeClass("countryWrapper","hide_me")}tagged.regpath.regpage.changeCountryTypeahead(c);if(a&&!tagged.regpath.regpage.isRegOnIndex){tagged.regpath.regpage.focusField()}},showExtraFields:function(c,a){var b=document.getElementById("nextButtonWrapper");if(b){b.style.marginTop=c?30:10}},onLocaleChange:function(b,c){newLoc=document.getElementById("locale").value;if(newLoc==c){return}else{if(tagged.data.enabledList[newLoc]){C.set("regName",D.get("first_name").value);C.set("regLastName",D.get("last_name").value);C.set("regFemaleGender",(D.get("female").checked?"female":"male"));C.set("regBirthDay",D.get("birth_day").value);C.set("regBirthMonth",D.get("birth_month").value);C.set("regBirthYear",D.get("birth_year").value);C.set("regCountry",D.get("country").value);C.set("regCity",D.get("city").value);C.set("regEmail",D.get("email").value);C.set("regZipCode",D.get("zipCode").value);C.set("regTermsOfService",D.get("termsOfService").checked?1:0);var a={method:"tagged.account.setUserLanguage",langCode:newLoc,callback:"tagged.languageUpdated"};TAGGED.api.call(a)}}},focusField:function(){var c="first_name";for(var b=tagged.regpath.regpage.errors.length-1;b>=0;b--){var a;switch(tagged.regpath.regpage.errors[b]){case"1020":case"1230":a="firstNameLabel";c="first_name";break;case"1021":case"1214":a="lastNameLabel";c="last_name";break;case"1023":a="countryLabel";c="country";break;case"1024":case"1201":case"1221":a="zipcodeLabel";c="zipCode";break;case"1025":case"1209":a="cityLabel";c="city";break;case"1026":case"1211":case"1216":case"1217":case"1222":case"1223":case"1224":case"1225":a="emailAddressLabel";c="email";break;case"1027":case"1227":case"1228":a="passwordLabel";c="password";break;case"1029":c="birth_month";case"1030":c="birth_day";case"1031":c="birth_year";a="birthDateLabel";break;case"1206":case"1010":a="verificaitonCodeLabel";c="validation_code";break;case"1032":c="termsOfService";break}D.addClass(a,"red_text")}var d=document.getElementById(c);if(d){d.focus()}},isAChild:function(){var a=tagged.regpath.regpage.getAgeFromRegForm();return a<13},submitCaptchaCode:function(c){E.preventDefault(c);var b=E.getTarget(c);tagged.regpath.regpage.disableButton(b);var a={method:"tagged.security.verifyRecaptcha",callback:"tagged.regpath.regpage.setVerifyCaptcha",challenge:Recaptcha.get_challenge(),response:Recaptcha.get_response(),event:"register"};TAGGED.api.call(a)},setVerifyCaptcha:function(c){if(c.stat=="ok"){document.forms.reg_form.submit()}else{if(c.stat=="fail"){if(c.error.code==100){var b="";var a=document.getElementById("locale").value;b+='<li id="error_1013">'+tagged.strings.regpage.messages[1013]+"</li>";D.get("error_msg").innerHTML='<ul id="error_list">'+b+"</ul>";D.replaceClass("error_msg","hide_me","block");Recaptcha.reload();tagged.regpath.regpage.showCaptchaStep()}else{alert(tagged.strings.regpage.messages[1301])}}}tagged.regpath.regpage.enableButton(button)},disableButton:function(a){button=D.get(a);D.replaceClass(button,"greenBtnBig","greyBtnBig");button.disabled=true},enableButton:function(a){button=D.get(a);D.replaceClass(button,"greyBtnBig","greenBtnBig");button.disabled=false},submitIndexPageForm:function(b){E.preventDefault(b);tagged.regpath.regpage.clearErrorMessages();tagged.regpath.regpage.disableButton("submitBtnAlt1");var a={method:"tagged.reg.regPreCheck",callback:"tagged.regpath.regpage.setCheckErrors",locale:document.getElementById("locale").value,firstName:D.get("first_name").value,lastName:D.get("last_name").value,gender:(D.get("female").checked?"F":"M"),birthDay:D.get("birth_day").value,birthMonth:D.get("birth_month").value,birthYear:D.get("birth_year").value,country:(D.get("country").value==""?tagged.regpath.regpage.globals.prefillCountry:D.get("country").value),city:D.get("city").value,email:D.get("email").value,password:D.get("password").value,zipCode:D.get("zipCode").value,termsOfService:D.get("termsOfService").checked};TAGGED.api.call(a)},setCheckErrors:function(f){if(!f||!f.result){alert(tagged.strings.regpage.messages["1301"]);tagged.regpath.regpage.enableButton("submitBtnAlt1");tagged.regpath.regpage.focusField();return false}var c=f.result;if(c.error&&c.error==true){var e=c.errors;tagged.regpath.regpage.errors=e;D.replaceClass("error_msg","hide_me","block");var b="";var a=document.getElementById("locale").value;for(var d in e){b+='<li id="error_'+e[d]+'">'+tagged.strings.regpage.messages[e[d]]+"</li>"}D.get("error_msg").innerHTML='<ul id="error_list">'+b+"</ul>";tagged.regpath.regpage.focusField();tagged.regpath.regpage.enableButton("submitBtnAlt1")}else{(c.is_invited)?document.forms.reg_form.submit():tagged.regpath.regpage.showCaptchaStep()}},showCaptchaStep:function(){tagged.regpath.regpage.enableButton("captchaPageButton");D.removeClass("second_step","hide_me");D.addClass("first_step","hide_me");D.addClass("connect_container","hide_me");if(D.get("recaptcha_response_field")){Recaptcha.focus_response_field()}},reloadCaptcha:function(){if(D.get("captchaDiv")){var b=D.get("locale").value;var a=b.substr(0,2);RecaptchaOptions.lang=a;RecaptchaOptions.callback=function(){if(tagged.data.use_large_form!="1"){E.addListener("recaptcha_response_field","focus",tagged.regpath.regpage.createTooltip,new Array("captchaCodeTooltipBox",tagged.regpath.regpage.isRegOnIndex?"captchaPageTooltip":"codeTooltip"))}};Recaptcha.create(RecaptchaOptions.public_key,"captchaDiv",RecaptchaOptions)}},attachTooltipEvents:function(){E.addListener("first_name","focus",tagged.regpath.regpage.createTooltip,new Array("first_name","firstNameTooltip"));E.addListener("last_name","focus",tagged.regpath.regpage.createTooltip,new Array("last_name","lastNameTooltip"));E.addListener("city","focus",tagged.regpath.regpage.createTooltip,new Array("city","cityTooltip"));E.addListener("zipCode","focus",tagged.regpath.regpage.createTooltip,new Array("zipCode","zipcodeTooltip"));E.addListener("email","focus",tagged.regpath.regpage.createTooltip,new Array("email","emailTooltip"));E.addListener("old_email","focus",tagged.regpath.regpage.createTooltip,new Array("old_email","oldEmailTooltip"));E.addListener("password","focus",tagged.regpath.regpage.createTooltip,new Array("password","passwordTooltip"));E.addListener("female","focus",tagged.regpath.regpage.createTooltip,new Array("gender_wrapper","genderTooltip"));E.addListener("male","focus",tagged.regpath.regpage.createTooltip,new Array("gender_wrapper","genderTooltip"));E.addListener("birth_month","focus",tagged.regpath.regpage.createTooltip,new Array("date_input","birthDayTooltip"));E.addListener("birth_day","focus",tagged.regpath.regpage.createTooltip,new Array("date_input","birthDayTooltip"));E.addListener("birth_year","focus",tagged.regpath.regpage.createTooltip,new Array("date_input","birthDayTooltip"));E.addListener("country","focus",tagged.regpath.regpage.createTooltip,new Array("country","countryTooltip"));E.addListener("locale","focus",tagged.regpath.regpage.createTooltip,new Array("locale","languageTooltip"));E.addListener("offersTxt","mouseover",tagged.regpath.regpage.createTooltip,new Array("privacyPolicyMainLabel","offersTooltip"))},attachValidationEvents:function(){var a=document.forms.reg_form;E.addListener(a,"keydown",tagged.regpath.regpage.showLoading,null,this);E.addListener(a,"keyup",tagged.regpath.regpage.showValidation,null,this);E.addListener("birth_day","change",tagged.regpath.regpage.showValidation,null,this);E.addListener("birth_month","change",tagged.regpath.regpage.showValidation,null,this);E.addListener("birth_year","change",tagged.regpath.regpage.showValidation,null,this);E.addListener("country","change",tagged.regpath.regpage.showValidation,null,this);E.addListener("locale","change",tagged.regpath.regpage.showValidation,null,this)},attachEventListeners:function(){if(tagged.data.use_large_form=="1"){tagged.regpath.regpage.attachValidationEvents()}else{tagged.regpath.regpage.attachTooltipEvents()}E.addListener("first_name","focus",tagged.regpath.regpage.onFieldFocused,"first_name");E.addListener("first_name","blur",tagged.regpath.regpage.onFieldBlur,{inputEl:"first_name",validate:true},this);E.addListener("last_name","focus",tagged.regpath.regpage.onFieldFocused,"last_name");E.addListener("last_name","blur",tagged.regpath.regpage.onFieldBlur,{inputEl:"last_name",validate:true},this);E.addListener("city","focus",tagged.regpath.regpage.onFieldFocused,"city");E.addListener("city","blur",tagged.regpath.regpage.onFieldBlur,{inputEl:"city",validate:true},this);E.addListener("zipCode","focus",tagged.regpath.regpage.onFieldFocused,"zipCode");E.addListener("zipCode","blur",tagged.regpath.regpage.onFieldBlur,{inputEl:"zipCode",validate:true},this);E.addListener("email","focus",tagged.regpath.regpage.onFieldFocused,"email");E.addListener("email","blur",tagged.regpath.regpage.onFieldBlur,{inputEl:"email",validate:true},this);E.addListener("old_email","focus",tagged.regpath.regpage.onFieldFocused,"old_email");E.addListener("old_email","blur",tagged.regpath.regpage.onFieldBlur,{inputEl:"old_email",validate:true});E.addListener("password","focus",tagged.regpath.regpage.onFieldFocused,"password");E.addListener("password","blur",tagged.regpath.regpage.onFieldBlur,{inputEl:"password",validate:true},this);E.addListener("female","blur",tagged.regpath.regpage.onFieldBlur,{inputEl:"female"},this);E.addListener("male","blur",tagged.regpath.regpage.onFieldBlur,{inputEl:"male"},this);E.addListener("birth_month","blur",tagged.regpath.regpage.onFieldBlur,{inputEl:"birth_month"},this);E.addListener("birth_day","blur",tagged.regpath.regpage.onFieldBlur,{inputEl:"birth_day"},this);E.addListener("birth_year","blur",tagged.regpath.regpage.onFieldBlur,{inputEl:"birth_year"},this);E.addListener("birth_day","change",tagged.regpath.regpage.setUpFields,0);E.addListener("birth_year","change",tagged.regpath.regpage.setUpFields,0);E.addListener("birth_month","change",tagged.regpath.regpage.setUpFields,0);E.addListener("birth_day","focus",tagged.regpath.regpage.onFieldFocused,"birth_day");E.addListener("birth_year","focus",tagged.regpath.regpage.onFieldFocused,"birth_year");E.addListener("birth_month","focus",tagged.regpath.regpage.onFieldFocused,"birth_month");E.addListener("country","change",tagged.regpath.regpage.setUpFields,0);E.addListener("country","focus",tagged.regpath.regpage.onFieldFocused,"country");E.addListener("country","blur",tagged.regpath.regpage.onFieldBlur,{inputEl:"country"},this);E.addListener("locale","change",tagged.regpath.regpage.setUpFields,0);E.addListener("locale","change",tagged.regpath.regpage.onLocaleChange,0);E.addListener("locale","focus",tagged.regpath.regpage.onFieldFocused,"locale");E.addListener("locale","blur",tagged.regpath.regpage.onFieldBlur,{inputEl:"locale"},this);E.addListener("termsOfService","focus",tagged.regpath.regpage.removeShowingTip);E.addListener("termsOfService","blur",tagged.regpath.regpage.onFieldBlur,{inputEl:"termsOfService"},this);E.addListener("offersTxt","mouseout",tagged.regpath.regpage.removeShowingTip);if(tagged.regpath.regpage.pollEnabled){E.addListener("submitBtnAlt1","click",function(){tagged.regpath.regpage.pollEnabled=false})}E.addListener(window,"beforeunload",tagged.regpath.regpage.handleUnload,this,true);if(tagged.regpath.regpage.isRegOnIndex){E.addListener("captchaPageButton","click",tagged.regpath.regpage.submitCaptchaCode);E.addListener("login_frame","focus",tagged.regpath.regpage.removeShowingTip);E.addListener("submitBtnAlt1","click",tagged.regpath.regpage.submitIndexPageForm)}E.addListener("show_login_link","click",tagged.regpath.regpage.showLogin);E.addListener("show_reg_link","click",tagged.regpath.regpage.showReg)},setConditionalRegformProperties:function(){if(tagged.regpath.regpage.isRegOnIndex){document.getElementById("selectbox_wrap").innerHTML="";D.addClass("submitBtnAlt1","greenBtnBig")}},clearErrorMessages:function(){tagged.regpath.regpage.errors=[];D.get("error_msg").innerHTML="";D.replaceClass("error_msg","block","hide_me");var a=["firstNameLabel","lastNameLabel","countryLabel","zipcodeLabel","cityLabel","emailAddressLabel","passwordLabel","birthDateLabel"];for(var b in a){D.removeClass(a[b],"red_text")}},ageSelected:function(){var a=D.get("birth_day").value;var b=D.get("birth_month").value;var c=D.get("birth_year").value;if(a>0&&b>0&&c>0){return true}return false},removeCookies:function(){C.remove("regName");C.remove("regLastName");C.remove("regFemaleGender");C.remove("regBirthDay");C.remove("regBirthMonth");C.remove("regBirthYear");C.remove("regCity");C.remove("regEmail");C.remove("regZipCode");C.remove("regCountry");C.remove("regTermsOfService")},changeLanguage:function(c){E.stopEvent(c);var b=E.getTarget(c);if(D.hasClass(b,"lang_selector")){var d=b.id;var a={method:"tagged.account.setUserLanguage",langCode:d,callback:"tagged.languageUpdated"};TAGGED.api.call(a)}}};tagged.loadStringsDirect({"TAGGED.api.strings":{errorMethodMissing:"An error occurred. Please refresh the page and try again. Method is missing.",errorGeneral:"An error occurred. Please refresh the page and try again."}});tagged.loadStringsDirect({"tagged.util.countries":{allCountries:"All Countries",englishCountries:{US:"United States",AU:"Australia",CA:"Canada",GB:"United Kingdom"},otherCountries:{AX:"Aaland Islands",AF:"Afghanistan",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",VG:"British Virgin Islands",BN:"Brunei",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo (Brazzaville)",CD:"Congo (Kinshasa)",CK:"Cook Islands",CR:"Costa Rica",CI:"Cote D'Ivoire",HR:"Croatia",CU:"Cuba",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",TL:"East Timor",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Islas Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern and Antarctic Lands",GA:"Gabon",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and McDonald Islands",VA:"Holy See (Vatican City)",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran",IQ:"Iraq",IE:"Ireland",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Laos",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macau",MK:"Macedonia",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia,Federated States of",MD:"Moldova",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar (Burma)",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",AN:"Netherlands Antilles",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NM:"No Man's Land",NF:"Norfolk Island",KP:"North Korea",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PS:"Palestine",PW:"Paluau",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn Islands",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Reunion",RO:"Romania",RU:"Russia",RW:"Rwanda",SH:"Saint Helena",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",KR:"South Korea",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syria",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania",TH:"Thailand",BS:"The Bahamas",GM:"The Gambia",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UM:"US Minor Outlying Islands",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela",VN:"Vietnam",VI:"Virgin Islands (US)",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"}}});tagged.loadStringsDirect({"tagged.util.locationselector.strings":{countryHTML:'<div class="location_row"><label for="country">Country</label><span id="%s"></span></div>',distanceHTML:'<div class="location_row"><label for="location">Location</label><span id="distance_span"></span></div>',defaultDefaultCity:"City name",defaultCanadaCity:"City or Postal Code",defaultUSCity:"City, State or Zip Code",distanceMatches:"matches",distanceMiles:"within %d miles",distanceKilometers:"within %d kilometers",allCountries:"All Countries"}});tagged.loadStringsDirect({"tagged.strings.regpage":{signIn:"Tagged - Sign In",register:"Tagged - Register",firstNameTooltip:"Welcome to Tagged! Enter your first name to get started.",lastNameTooltip:"No need to worry or even lie. We do not display your last name on your profile page.",genderTooltip:"Do we really need to explain this one?",birthDayTooltip:"We'll send your friends a hint when it's your birthday so they can remember to buy you lots of presents!",countryTooltip:"Select your country from the drop down list.",languageTooltip:"Select your language from the drop down list.",cityTooltip:"Just start typing the city you live in. Then choose the correct one from the drop down list that appears.",zipcodeTooltip:"Gimme 5 digits please!",emailTooltip:"We'll email you about new friends!  You'll also receive our email newsletters, account updates and special offers targeted to your interests, sent to you by Tagged.",oldEmailTooltip:"Ever changed your email?  Make sure people can find you, with your permission, using Return Path's free service. Your email addresses will only be shared if you complete this field.",passwordTooltip:"It&rsquo;s gotta be at least 6 characters.<br/>FYI&nbsp;&ndash; it&rsquo;s also cAsE sEnSiTiVe.<br/>It should also not be too simple.<br/>i.e. &lsquo;password&rsquo;",codeTooltip:"<strong>Enter the letters from the box above</strong><br/>This helps Tagged prevent automated registrations.",captchaPageTooltip:"<strong>Enter the text in the box above</strong><br/>This tells us that you are a real person, not a robot :)",tosTooltip:"Check this and hit Join Free!",offersTooltip:"Receive valuable offers and fun surveys on the latest movies, video games, fashion, entertainment, and more!",checking:"Checking...",info:{first_name:"Enter your first name",last_name:"We do not display your last name on your profile page",birth_day:"We'll send your friends a hint when it's your birthday!",country:"Select your country from the drop down list",city:"Type in your city",zipCode:"gimme 5 digits please! ",locale:"Select your language from the drop down list",email:"We'll email you about new friends and activity on Tagged!",password:"6 characters or more (be tricky!)"},errors:{first_name:"Should be a real first name",last_name:"Should be a real last name",country:"Missing country",birth_day:"Missing your birth day/month/year ",city:"Not valid",zipCode:"Not valid",email:"Should look like an email address",password:"Too short or easy",bad_age:"You are not eligible to sign up for Tagged!"},messages:{"1000":"Registration Failed!","1001":"You are not eligible to sign up for Tagged!","1010":"Incorrect confirmation code - please try again.","1011":"Another confirmation email has been sent to %s.<br/>Make sure you also look in your junk/spam folders.","1013":"That does not match the text in the box - please try again.","1014":"Verification code entered was incorrect.","1020":"First Name entered was invalid.","1021":"Last Name entered was invalid.","1022":"Gender entered was invalid.","1023":"You haven't selected your country from the list.","1024":"Zip code entered was invalid.","1025":"City entered was invalid.","1026":"Email address provided was invalid.","1027":"Password entered was invalid.","1028":"Please enter the code shown below.","1029":"You haven't selected your birth Day from the list.","1030":"You haven't selected your birth Month from the list.","1031":"You haven't selected your birth Year from the list.","1032":"You must agree to our terms of service to register.","1033":"An error has occured. Please try again.","1034":"Invalid language.","1050":"You do not have any contacts in the address book you are trying to import. Please try another provider.","1051":"There was error when importing your contacts.","1052":"There was an error connecting to %s Incorrect email address/password combination - please try again.","1053":"Incorrect email address/password combination - please try again.","1054":"Please enter an email address and password.","1100":"Please select a valid file.","1101":"Could not upload this image!","1102":"Please select a file from the Library.","1103":"Please click 'Browse' to find an image to upload.","1104":"Image is too large. Maximum allowed filesize is 5K.","1105":"Image format is not supported. Supported file types: GIF, BMP, JPG, PNG.","1106":"File too small.","1201":"Please enter a valid 5 digit Zip Code","1202":"You must select gender","1203":"This display name is too long. Please limit it to 35 characters or less.","1204":"This display name is not permitted. Please try a different display name.","1205":"Please enter verification code.","1206":"Please enter the correct code in the verification box.","1207":"Please pick a city from the list.","1208":"Please enter your city name.","1209":"Please enter a valid city name greater than 2 characters.","1210":"This is a required field.","1211":"Invalid email address.","1212":"Invalid AIM screen name.","1213":"Passwords must match.","1214":"Invalid first/last name.","1215":"Invalid address.","1216":"This email address is already taken.","1217":"You've entered an invalid email address.","1218":"You've entered an invalid AIM screen name.","1219":"The passwords you've entered do not match.","1220":"Please enter your birthdate.","1221":"You've entered an invalid postal address.","1222":"Email address is blocked.","1223":"Email address is not valid.","1224":"Another user has already registered with that email address.","1225":"Another user has already registered with that email address.","1226":"You've entered an invalid %s","1227":"Your password must contain at least 6 characters.","1228":"Your password cannot contain more than 200 characters.","1229":"You must accept the Tagged Terms of Service.","1230":"The first name you entered is not permitted. Please try a different name.","1231":"Invalid birthdate.","1232":"That password is not permitted.","1301":"Uh oh! An error has occurred. Please try submitting again."}}});