/* Copyright © Cutrope.com. All Rights Reserved. */
if(!SEARCH){var SEARCH={age:function(_id,action){var _target=ART.GE(_id);switch(action){case'up':if(_target.value<99)_target.value=parseInt(_target.value)+1;break;case'down':if(_target.value>18)_target.value=parseInt(_target.value)-1;break;}},show_zip:function(country_id){if(country_id==452)ART.GE('zip$now').style.display='block';else ART.GE('zip$now').style.display='none';},simple:function(){var validate=function(){var message='';var allow_pass=true;var age_min=ART.GE('age_min').value;var age_max=ART.GE('age_max').value;var country_id=ART.GE('country_id').options[ART.GE('country_id').selectedIndex].value;var zipcode='zipcode';if(country_id==452)zipcode=ART.GE('zipcode').value;if((age_min<18)||(age_min>99)){message+='minimum age must be between 18 and 99\n\n';allow_pass=false;}if((age_max<18)||(age_max>99)){message+='maximum age must be between 18 and 99\n\n';allow_pass=false;}if(age_max<age_min){message+='maximum age cannot be less than minimum age\n\n';allow_pass=false;}if(country_id==452){var zipcode=ART.GE('zipcode').value;if(zipcode!='zipcode'&&zipcode.length<5){message+='your zipcode must contain at least 5 digits.\n\n';allow_pass=false;}}if(!allow_pass)ERRORS.show(message);return allow_pass;};var search=function(){if(validate()){var seek=ART.GE('seek').options[ART.GE('seek').selectedIndex].value;var age_min=ART.GE('age_min').value;var age_max=ART.GE('age_max').value;var country_id=ART.GE('country_id').options[ART.GE('country_id').selectedIndex].value;var zipcode='zipcode';if(country_id==452)zipcode=ART.GE('zipcode').value;var radius=ART.GE('radius').options[ART.GE('radius').selectedIndex].value;var photos_only=0;if(ART.GE('photos_only').checked){photos_only=1;};document.location.href='/index.cfm?activity=1&type=6&seek='+seek+'&age_min='+age_min+'&age_max='+age_max+'&country_id='+country_id+'&zipcode='+zipcode+'&radius='+radius+'&filter='+photos_only;}};search();},advanced:function(){var seeking=63;var age_min=-1;var age_max=-1;var sign=1023;var ethnicity=511;var country_id=0;var body=127;var distance=100;var keywords='';var seek_ops={'0':'any','1':'man','2':'woman','4':'couple (m & w)','8':'couple (2 w)','16':'couple (2 m)','32':'group (m / w)'};var age_ops={'0':'any','1':'before 21','2':'21 to 25','3':'25 to 30','4':'30 to 35','5':'35 to 40','6':'40 to 45','7':'45 to 50','8':'after 50'};var sign_ops={'0':'any','1':'Capricorn','2':'Aquarius','4':'Pisces','8':'Aries','16':'Taurus','32':'Gemini','64':'Cancer','128':'Leo','256':'Virgo','512':'Libra','1024':'Scorpio','2048':'Sagittarius'};var ethn_ops={'0':'any','1':'Asian','2':'Black / African descent','4':'East Indian','8':'Latino / Hispanic','16':'Middle Eastern','32':'Native American','64':'Pacific Islander','128':'White / Caucasian','256':'Other'};var body_ops={'0':'any','1':'Slim/Slender','2':'Average','4':'Athletic','8':'A few extra pounds','16':'Disabled','32':'Large','64':'Other'};var country_ops={'0':'any','452':'United States','274':'Canada','451':'United Kingdom','238':'Afghanistan','239':'Albania','240':'Algeria','241':'American Samoa','242':'Andorra','243':'Angola','244':'Anguilla','245':'Antigua and Barbuda','246':'Argentina','247':'Armenia','248':'Ascension Island','249':'Australia','250':'Austria','251':'Azerbaijan','252':'Bahamas','253':'Bahrain','254':'Bangladesh','255':'Barbados','256':'Belarus','257':'Belgium','258':'Belize','259':'Benin','260':'Bermuda','261':'Bhutan','262':'Bolivia','263':'Bosnia and Herzegovina','264':'Botswana','265':'Brazil','266':'British Indian Ocean Territory','267':'Brunei Darussalam','268':'Bulgaria','269':'Burkina Faso','270':'Burundi','271':'Camaroon','272':'Cambodia','273':'Cameroon','275':'Cape Verde','276':'Cayman Islands','277':'Central African Republic','278':'Chad','279':'Chile','280':'China','281':'Colombia','282':'Comoros','283':'Congo','284':'Cook Islands','285':'Costa Rica','286':'Cote D Ivoire','287':'Croatia','288':'Cuba','289':'Cyprus','290':'Czech Republic','291':'Denmark','292':'Djibouti','293':'Dominica','294':'Dominican Republic','295':'Ecuador','296':'Egypt','297':'El Salvador','298':'Equatorial Guinea','299':'Eritrea','300':'Estonia','301':'Ethiopia','302':'Falkland Islands','303':'Faroe Islands','304':'Federated States of Micronesia','305':'Fiji','306':'Finland','307':'France','308':'French Guiana','309':'French Polynesia','310':'Gabon','311':'Georgia','312':'Germany','313':'Ghana','314':'Gibralter','315':'Greece','316':'Greenland','317':'Grenada','318':'Guadeloupe','319':'Guam','320':'Guatemala','321':'Guinea','322':'Guinea Bissau','323':'Guyana','324':'Haiti','325':'Honduras','326':'Hong Kong','327':'Hungary','328':'Iceland','329':'India','330':'Indonesia','331':'Iran','332':'Iraq','333':'Ireland','334':'Isle of Man','335':'Israel','336':'Italy','337':'Jamaica','338':'Japan','339':'Jordan','340':'Kazakhstan','341':'Kenya','342':'Kiribati','343':'Korea (Peoples Republic of)','344':'Korea (Republic of)','345':'Kuwait','346':'Kyrgyzstan','347':'Laos','348':'Latvia','349':'Lebanon','350':'Lesotho','351':'Liberia','352':'Libya','353':'Liechtenstein','354':'Lithuania','355':'Luxembourg','356':'Macau','357':'Macedonia','358':'Madagascar','359':'Malawi','360':'Malaysia','361':'Maldives','362':'Mali','363':'Malta','364':'Marshall Islands','365':'Martinique','366':'Mauritius','367':'Mayotte','368':'Mexico','369':'Moldova','370':'Monaco','371':'Mongolia','372':'Montenegro','373':'Montserrat','374':'Morocco','375':'Mozambique','376':'Myanmar','377':'Namibia','378':'Nauru','379':'Nepal','380':'Netherlands','381':'Netherlands Antilles','382':'New Caledonia','383':'New Zealand','384':'Nicaragua','385':'Niger','386':'Nigeria','387':'Niue','388':'Norfolk Island','389':'Northern Mariana Islands','390':'Norway','391':'Oman','392':'Pakistan','393':'Palau','394':'Panama','395':'Papua New Guinea','396':'Paraguay','397':'Peru','398':'Philippines','399':'Pitcairn','400':'Poland','401':'Portugal','402':'Puerto Rico','403':'Qatar','404':'Reunion','405':'Romania','406':'Russian Federation','407':'Rwanda','408':'Saint Vincent and the Grenadines','409':'San Marino','410':'Sao Tome and Principe','411':'Saudi Arabia','412':'Senegal','413':'Serbia','414':'Seychelles','415':'Sierra Leone','416':'Singapore','417':'Slovakia','418':'Slovenia','419':'Solomon Islands','420':'Somalia','421':'South Africa','422':'South Georgia','423':'Spain','424':'Sri Lanka','425':'St. Kitts and Nevis','426':'St. Lucia','427':'St. Pierre and Miquelon','428':'Sudan','429':'Suriname','430':'Swaziland','431':'Sweden','432':'Switzerland','433':'Syrian Arab Republic','434':'Taiwan','435':'Tajikistan','436':'Tanzania','437':'Thailand','438':'The Gambia','439':'Togo','440':'Tokelau','441':'Tonga','442':'Trinidad and Tobago','443':'Tunisia','444':'Turkey','445':'Turkmenistan','446':'Turks and Caicos Islands','447':'Tuvalu','448':'Uganda','449':'Ukraine','450':'United Arab Emirates','453':'Uruguay','454':'Uzbekistan','455':'Vanuatu','456':'Venezuela','457':'Viet Nam','458':'Virgin Islands (U.K.)','459':'Virgin Islands (U.S.)','460':'Wallis and Futuna Islands','461':'Western Samoa','462':'Yemen','463':'Yugoslavia','464':'Zaire','465':'Zambia','466':'Zimbabwe'};var zip_ops={'0':'any','1':'2 mile radius','2':'5 mile radius','3':'10 mile radius','4':'30 mile radius','5':'50 mile radius','6':'100 mile radius'};var prev_dd_obj=null;var _submit=function(){var allow_pass=true;var zipcode='zipcode';if(country_id==452){zipcode=ART.GE('_zipcode').value};var photos_only=0;if(ART.GE('photos_only').checked){photos_only=1;};if(prev_dd_obj){ART.hide_element(prev_dd_obj);prev_dd_obj=null;}window.location.href='/index.cfm?activity=1&type=6&seek='+seeking+'&age_min='+age_min+'&age_max='+age_max+'&sign='+sign+'&ethnicity='+ethnicity+'&body='+body+'&country_id='+country_id+'&radius='+distance+'&zipcode='+zipcode+'&filter='+photos_only;};var show_hide=function(_id){var curr_dd_obj=ART.GE(_id+'_options');var close_prev_dd=function(){if(prev_dd_obj){var _darrow_obj=ART.GE(prev_dd_obj.id.split('_options')[0]+'_darrow');ART.set_class(_darrow_obj,'darrow');ART.hide_element(prev_dd_obj);prev_dd_obj=null;}};if(curr_dd_obj.style.display=='none'){close_prev_dd();ART.set_class(ART.GE(_id+'_darrow'),'darrow opened');ART.show_element(curr_dd_obj);prev_dd_obj=curr_dd_obj;}else{ART.set_class(ART.GE(_id+'_darrow'),'darrow');ART.hide_element(curr_dd_obj);close_prev_dd();}};var check_uncheck=function(_id){var _obj=ART.GE(_id);if(_obj.checked)_obj.checked=false;else _obj.checked=true;};var set_display=function(_id,result){if(!result)var result=0;var _display=[];switch(_id){case'sk':seeking=0;var at_least_one=false;if(result==0)_display.push(seek_ops[0]);else{var elms=ART.GE('adv_form').elements;for(i=0;i<elms.length;i++){if(elms[i].name==_id+'_chk'){if(elms[i].checked){_display.push(seek_ops[elms[i].value]);seeking+=parseInt(elms[i].value);at_least_one=true;}}}if(!at_least_one)_display.push(seek_ops[0]);}break;case'ag':switch(result){case'0':_display.push(age_ops[result]);age_min=-1;age_max=-1;break;case'1':_display.push(age_ops[result]);age_min=-1;age_max=21;break;case'2':_display.push(age_ops[result]);age_min=21;age_max=24;break;case'3':_display.push(age_ops[result]);age_min=25;age_max=29;break;case'4':_display.push(age_ops[result]);age_min=30;age_max=34;break;case'5':_display.push(age_ops[result]);age_min=35;age_max=39;break;case'6':_display.push(age_ops[result]);age_min=40;age_max=44;break;case'7':_display.push(age_ops[result]);age_min=45;age_max=49;break;case'8':_display.push(age_ops[result]);age_min=50;age_max=-1;break;case'9':var what_to_show='';age_min=ART.GE('_age_min').value;age_max=ART.GE('_age_max').value;if(age_min.length==0){age_min=-1;what_to_show+='any';}else{if(age_min<18)age_min=18;what_to_show+=age_min;}if(age_max.length==0){age_max=-1;what_to_show+=' - any';}else{if(age_max<18)age_max=18;what_to_show+=' - '+age_max;}_display.push(what_to_show);break;}break;case'sn':sign=0;var at_least_one=false;if(result==0)_display.push(sign_ops[0]);else{var elms=ART.GE('adv_form').elements;for(i=0;i<elms.length;i++){if(elms[i].name==_id+'_chk'){if(elms[i].checked){_display.push(sign_ops[elms[i].value]);sign+=parseInt(elms[i].value);at_least_one=true;}}}if(!at_least_one)_display.push(sign_ops[0]);}break;case'et':ethnicity=0;var at_least_one=false;if(result==0)_display.push(ethn_ops[0]);else{var elms=ART.GE('adv_form').elements;for(i=0;i<elms.length;i++){if(elms[i].name==_id+'_chk'){if(elms[i].checked){_display.push(ethn_ops[elms[i].value]);ethnicity+=parseInt(elms[i].value);at_least_one=true;}}}if(!at_least_one)_display.push(ethn_ops[0]);}break;case'bo':body=0;var at_least_one=false;if(result==0)_display.push(body_ops[0]);else{var elms=ART.GE('adv_form').elements;for(i=0;i<elms.length;i++){if(elms[i].name==_id+'_chk'){if(elms[i].checked){_display.push(body_ops[elms[i].value]);body+=parseInt(elms[i].value);at_least_one=true;}}}if(!at_least_one)_display.push(body_ops[0]);}break;case'co':country_id=0;if(result==0)_display.push(country_ops[0]);else{_display.push(country_ops[result]);country_id=parseInt(result);}break;}var curr_display=_display.toString();if(curr_display.length>24)curr_display=ART.left(curr_display,21)+'...';ART.set_HTML(ART.GE(_id+'_dtitle'),curr_display);show_hide(_id);};var set_zipcode=function(result){if(!result)var result=0;var _display='within ';switch(result){case'0':distance=-1;break;case'1':distance=2;break;case'2':distance=5;break;case'3':distance=10;break;case'4':distance=30;break;case'5':distance=50;break;case'6':distance=100;break;case'7':distance=200;break;}_display+=zip_ops[result];if(result>0)_display=ART.left(_display,_display.length-9);else _display='any distance';ART.set_HTML(ART.GE('zip_display'),_display);show_hide('zip');};var sk_box=function(){var over_display=ART.DIV({'class':'over_display'},'seeking');var display=ART.DIV({'class':'display'},ART.DIV({'id':'sk_dtitle','class':'dtitle'},'any'),ART.DIV({'id':'sk_darrow','class':'darrow'}));ART.AEV(display,'click',function(e){show_hide('sk');ART.prevent_default(e);});var op1=ART.DIV({'class':'option'},ART.DIV({'class':'txt'},'any'));ART.AEV(op1,'mouseover',function(){ART.set_bg(op1,'#FFFF66');});ART.AEV(op1,'mouseout',function(){ART.set_bg(op1,'#FFFFFF');});ART.AEV(op1,'click',function(){set_display('sk',0);});var other_opts=ART.DIV();var _create=function(_binary,_text,_count){var _id='sk_chk'+_count;var _chk=ART.INPUT({'type':'checkbox','id':_id,'name':'sk_chk','value':_binary,'class':'check_mini'});ART.AEV(_chk,'click',function(){check_uncheck(_id);});var _option=ART.DIV({'class':'option'},ART.DIV({'class':'inline'},_chk),ART.DIV({'class':'inline txt'},_text));ART.AEV(_option,'mouseover',function(){ART.set_bg(_option,'#FFFF66');});ART.AEV(_option,'mouseout',function(){ART.set_bg(_option,'#FFFFFF');});ART.AEV(_option,'click',function(){check_uncheck(_id);});return _option;};var _count=0;for(var k in seek_ops){_count++;var _binary=k;var _text=seek_ops[k];if(k!='0')ART.ACN(other_opts,_create(_binary,_text,_count));}var type_btn=ART.INPUT({'type':'button','id':'sk_btn','value':'select','class':'btn_small orange'});ART.AEV(type_btn,'click',function(){set_display('sk',-1);});var op_bttm=ART.DIV({'class':'option bttm'},type_btn);var options=ART.DIV({'id':'sk_options','class':'options','style':'display:none;'},op1,other_opts,op_bttm);var _box=ART.DIV({'id':'seek','class':'dropdown_box inline','style':'z-index:390;'},over_display,display,options);return _box;};var ag_box=function(){var over_display=ART.DIV({'class':'over_display'},'age');var display=ART.DIV({'class':'display'},ART.DIV({'id':'ag_dtitle','class':'dtitle'},'any'),ART.DIV({'id':'ag_darrow','class':'darrow'}));ART.AEV(display,'click',function(e){show_hide('ag');ART.prevent_default(e);});var other_opts=ART.DIV();var _create=function(_binary,_text){var _option=ART.DIV({'class':'option'},ART.DIV({'class':'txt'},_text));ART.AEV(_option,'mouseover',function(){ART.set_bg(_option,'#FFFF66');});ART.AEV(_option,'mouseout',function(){ART.set_bg(_option,'#FFFFFF');});ART.AEV(_option,'click',function(){set_display('ag',_binary);});return _option;};for(var k in age_ops){var _binary=k;var _text=age_ops[k];ART.ACN(other_opts,_create(_binary,_text));}var ag_btn=ART.INPUT({'type':'button','id':'ag_btn','value':'ok','class':'btn_small orange'});ART.AEV(ag_btn,'click',function(){set_display('ag','9');});var ag_min=ART.DIV({'class':'inline'});ART.set_HTML(ag_min,'<INPUT TYPE="Text" ID="_age_min" NAME="_age_min" VALUE="" CLASS="input_txt" STYLE="width:50px" ONKEYPRESS="return ART.numbers_only(event);">');var ag_max=ART.DIV({'class':'inline'});ART.set_HTML(ag_max,'<INPUT TYPE="Text" ID="_age_max" NAME="_age_max" VALUE="" CLASS="input_txt" STYLE="width:50px" ONKEYPRESS="return ART.numbers_only(event);">');var op_bttm=ART.DIV({'class':'option bttm'},ag_min,ART.DIV({'class':'inline txt','style':'padding:3px 7px 0 0;'},'to'),ag_max,ag_btn);var options=ART.DIV({'id':'ag_options','class':'options','style':'display:none;'},other_opts,op_bttm);var _box=ART.DIV({'id':'age','class':'dropdown_box inline','style':'z-index:380;'},over_display,display,options);return _box;};var sn_box=function(){var over_display=ART.DIV({'class':'over_display'},'sign');var display=ART.DIV({'class':'display'},ART.DIV({'id':'sn_dtitle','class':'dtitle'},'any'),ART.DIV({'id':'sn_darrow','class':'darrow'}));ART.AEV(display,'click',function(e){show_hide('sn');ART.prevent_default(e);});var op1=ART.DIV({'class':'option'},ART.DIV({'class':'txt'},'any'));ART.AEV(op1,'mouseover',function(){ART.set_bg(op1,'#FFFF66');});ART.AEV(op1,'mouseout',function(){ART.set_bg(op1,'#FFFFFF');});ART.AEV(op1,'click',function(){set_display('sn',0);});var other_opts=ART.DIV();var _create=function(_binary,_text,_count){var _id='sn_chk'+_count;var _chk=ART.INPUT({'type':'checkbox','id':_id,'name':'sn_chk','value':_binary,'class':'check_mini'});ART.AEV(_chk,'click',function(){check_uncheck(_id);});var _option=ART.DIV({'class':'option'},ART.DIV({'class':'inline'},_chk),ART.DIV({'class':'inline txt'},_text));ART.AEV(_option,'mouseover',function(){ART.set_bg(_option,'#FFFF66');});ART.AEV(_option,'mouseout',function(){ART.set_bg(_option,'#FFFFFF');});ART.AEV(_option,'click',function(){check_uncheck(_id);});return _option;};var _count=0;for(var k in sign_ops){_count++;var _binary=k;var _text=sign_ops[k];if(k!='0')ART.ACN(other_opts,_create(_binary,_text,_count));}var type_btn=ART.INPUT({'type':'button','id':'sn_btn','value':'select','class':'btn_small orange'});ART.AEV(type_btn,'click',function(){set_display('sn',-1);});var op_bttm=ART.DIV({'class':'option bttm'},type_btn);var options=ART.DIV({'id':'sn_options','class':'options','style':'display:none;'},op1,other_opts,op_bttm);var _box=ART.DIV({'id':'sign','class':'dropdown_box inline','style':'z-index:370;'},over_display,display,options);return _box;};var et_box=function(){var over_display=ART.DIV({'class':'over_display'},'ethnicity');var display=ART.DIV({'class':'display'},ART.DIV({'id':'et_dtitle','class':'dtitle'},'any'),ART.DIV({'id':'et_darrow','class':'darrow'}));ART.AEV(display,'click',function(e){show_hide('et');ART.prevent_default(e);});var op1=ART.DIV({'class':'option'},ART.DIV({'class':'txt'},'any'));ART.AEV(op1,'mouseover',function(){ART.set_bg(op1,'#FFFF66');});ART.AEV(op1,'mouseout',function(){ART.set_bg(op1,'#FFFFFF');});ART.AEV(op1,'click',function(){set_display('et',0);});var other_opts=ART.DIV();var _create=function(_binary,_text,_count){var _id='et_chk'+_count;var _chk=ART.INPUT({'type':'checkbox','id':_id,'name':'et_chk','value':_binary,'class':'check_mini'});ART.AEV(_chk,'click',function(){check_uncheck(_id);});var _option=ART.DIV({'class':'option'},ART.DIV({'class':'inline'},_chk),ART.DIV({'class':'inline txt'},_text));ART.AEV(_option,'mouseover',function(){ART.set_bg(_option,'#FFFF66');});ART.AEV(_option,'mouseout',function(){ART.set_bg(_option,'#FFFFFF');});ART.AEV(_option,'click',function(){check_uncheck(_id);});return _option;};var _count=0;for(var k in ethn_ops){_count++;var _binary=k;var _text=ethn_ops[k];if(k!='0')ART.ACN(other_opts,_create(_binary,_text,_count));}var type_btn=ART.INPUT({'type':'button','id':'et_btn','value':'select','class':'btn_small orange'});ART.AEV(type_btn,'click',function(){set_display('et',-1);});var op_bttm=ART.DIV({'class':'option bttm'},type_btn);var options=ART.DIV({'id':'et_options','class':'options','style':'display:none;'},op1,other_opts,op_bttm);var _box=ART.DIV({'id':'ethnicity','class':'dropdown_box inline','style':'z-index:360;'},over_display,display,options);return _box;};var bo_box=function(){var over_display=ART.DIV({'class':'over_display'},'body type');var display=ART.DIV({'class':'display'},ART.DIV({'id':'bo_dtitle','class':'dtitle'},'any'),ART.DIV({'id':'bo_darrow','class':'darrow'}));ART.AEV(display,'click',function(e){show_hide('bo');ART.prevent_default(e);});var op1=ART.DIV({'class':'option'},ART.DIV({'class':'txt'},'any'));ART.AEV(op1,'mouseover',function(){ART.set_bg(op1,'#FFFF66');});ART.AEV(op1,'mouseout',function(){ART.set_bg(op1,'#FFFFFF');});ART.AEV(op1,'click',function(){set_display('bo',0);});var other_opts=ART.DIV();var _create=function(_binary,_text,_count){var _id='bo_chk'+_count;var _chk=ART.INPUT({'type':'checkbox','id':_id,'name':'bo_chk','value':_binary,'class':'check_mini'});ART.AEV(_chk,'click',function(){check_uncheck(_id);});var _option=ART.DIV({'class':'option'},ART.DIV({'class':'inline'},_chk),ART.DIV({'class':'inline txt'},_text));ART.AEV(_option,'mouseover',function(){ART.set_bg(_option,'#FFFF66');});ART.AEV(_option,'mouseout',function(){ART.set_bg(_option,'#FFFFFF');});ART.AEV(_option,'click',function(){check_uncheck(_id);});return _option;};var _count=0;for(var k in body_ops){_count++;var _binary=k;var _text=body_ops[k];if(k!='0')ART.ACN(other_opts,_create(_binary,_text,_count));}var type_btn=ART.INPUT({'type':'button','id':'bo_btn','value':'select','class':'btn_small orange'});ART.AEV(type_btn,'click',function(){set_display('bo',-1);});var op_bttm=ART.DIV({'class':'option bttm'},type_btn);var options=ART.DIV({'id':'bo_options','class':'options','style':'display:none;'},op1,other_opts,op_bttm);var _box=ART.DIV({'id':'bodytype','class':'dropdown_box inline','style':'z-index:350;'},over_display,display,options);return _box;};var co_box=function(){var over_display=ART.DIV({'class':'over_display'},'country');var display=ART.DIV({'class':'display'},ART.DIV({'id':'co_dtitle','class':'dtitle'},'any'),ART.DIV({'id':'co_darrow','class':'darrow'}));ART.AEV(display,'click',function(e){show_hide('co');ART.prevent_default(e);});var other_opts=ART.DIV();var _create=function(_binary,_text){var _option=ART.DIV({'class':'option'},ART.DIV({'class':'txt'},_text));ART.AEV(_option,'mouseover',function(){ART.set_bg(_option,'#FFFF66');});ART.AEV(_option,'mouseout',function(){ART.set_bg(_option,'#FFFFFF');});ART.AEV(_option,'click',function(){set_display('co',_binary);});return _option;};for(var k in country_ops){var _binary=k;var _text=country_ops[k];ART.ACN(other_opts,_create(_binary,_text));}var options=ART.DIV({'id':'co_options','class':'options','style':'display:none;overflow:auto;height:250px;'},other_opts);var _box=ART.DIV({'id':'country','class':'dropdown_box inline','style':'z-index:340;'},over_display,display,options);return _box;};var zip_box=function(){var over_display=ART.DIV({'class':'over_display'},ART.DIV({'id':'zip_display'},'within 100 mi'),ART.DIV({'id':'zip_darrow','class':'darrow'}));var zip=ART.INPUT({'type':'text','id':'_zipcode','value':'zipcode'});ART.AEV(zip,'focus',function(){ART.on_focus(zip,'zipcode',true);});ART.AEV(zip,'blur',function(){ART.on_focus(zip,'zipcode',false);});ART.AEV(zip,'keypress',function(event){return ART.numbers_only(event);});var display=ART.DIV({'class':'display'},zip);ART.AEV(over_display,'click',function(e){show_hide('zip');ART.prevent_default(e);});var other_opts=ART.DIV();var _create=function(_binary,_text){var _option=ART.DIV({'class':'option'},ART.DIV({'class':'txt'},_text));ART.AEV(_option,'mouseover',function(){ART.set_bg(_option,'#FFFF66');});ART.AEV(_option,'mouseout',function(){ART.set_bg(_option,'#FFFFFF');});ART.AEV(_option,'click',function(){set_zipcode(_binary);});return _option;};for(var k in zip_ops){var _binary=k;var _text=zip_ops[k];ART.ACN(other_opts,_create(_binary,_text));}var options=ART.DIV({'id':'zip_options','class':'options','style':'display:none;'},other_opts);var _box=ART.DIV({'id':'zipcode','class':'dropdown_box inline','style':'z-index:330;'},over_display,display,options);return _box;};var initialize=function(){var _submit_btn=ART.INPUT({'class':'btn grey','id':'adv_submit_btn','type':'button','value':'search now'});ART.AEV(_submit_btn,'click',function(e){_submit();ART.prevent_default(e);});var _photos_only=ART.DIV({'id':'po_div','class':'dropdown_box inline'});ART.set_HTML(_photos_only,'<DIV CLASS="inline"><INPUT TYPE="Checkbox" ID="photos_only" NAME="photos_only" VALUE="1" CLASS="check_mini" CHECKED></DIV><DIV CLASS="inline">photos only</DIV>');var adv_search_inside=ART.DIV({'id':'adv_search_inside','class':'adv_search_inside'},ART.FORM({'class':'normal','id':'adv_form'},sk_box(),ag_box(),sn_box(),et_box(),bo_box(),co_box(),zip_box(),_photos_only,_submit_btn));var close_x=ART.A({'title':'close advanced search'});ART.AEV(close_x,'click',function(e){CLEAN.adv_search_box();ART.prevent_default(e);});adv_search_box=ART.DIV({'id':'adv_search_box','class':'adv_search_box'});ART.IA(adv_search_box,ART.GE('people_search_box'));ART.show_element(adv_search_box);ART.FX.set_height(adv_search_box,{to:100,duration:500,on_complete:function(){ART.ACN(adv_search_box,adv_search_inside,close_x);}});};if(adv_search_box){CLEAN.adv_search_box();ART.call_later(initialize,550);}else initialize();}};}
