function area_selection(){document.getElementById('selected_area').style.display="none";document.getElementById('area_selection').style.display="inline"}function select_area(c,a){SetCookie("selected_area",document.getElementById('region').value,30,'/');window.location='http://www.russiandoska.com/cat/'+c+'-'+a+'/'}function SetCookie(a,b,c,d,e,f){var g=new Date();g.setTime(g.getTime());if(c){c=c*1000*60*60*24}var h=new Date(g.getTime()+(c));document.cookie=a+"="+escape(b)+((c)?";expires="+h.toGMTString():"")+((d)?";path="+d:"")+((e)?";domain="+e:"")+((f)?";secure":"")}function setOptions(f,c,l,t){document.getElementById(f).value=c;if(l<=t){var d=document.getElementById(f+l);for(x=l;x<=t;x++){document.getElementById(f+x).style.display="none"}d.options.length=0;if(c==0){if(l>2){l-=2;document.getElementById(f).value=document.getElementById(f+l).options[document.getElementById(f+l).selectedIndex].value}d.options[d.options.length]=new Option('','0')}if(c==1){d.options[d.options.length]=new Option(' ','0');d.options[d.options.length]=new Option('New York','65');d.options[d.options.length]=new Option(' ','0');d.options[d.options.length]=new Option('Alabama','3');d.options[d.options.length]=new Option('Alaska','4');d.options[d.options.length]=new Option('Arizona','5');d.options[d.options.length]=new Option('Arkansas','6');d.options[d.options.length]=new Option('California','7');d.options[d.options.length]=new Option('Colorado','8');d.options[d.options.length]=new Option('Connecticut','9');d.options[d.options.length]=new Option('DC','10');d.options[d.options.length]=new Option('Delaware','11');d.options[d.options.length]=new Option('Florida','12');d.options[d.options.length]=new Option('Georgia','13');d.options[d.options.length]=new Option('Hawaii','14');d.options[d.options.length]=new Option('Idaho','15');d.options[d.options.length]=new Option('Illinois','16');d.options[d.options.length]=new Option('Indiana','17');d.options[d.options.length]=new Option('Iowa','18');d.options[d.options.length]=new Option('Kansas','19');d.options[d.options.length]=new Option('Kentucky','20');d.options[d.options.length]=new Option('Louisiana','21');d.options[d.options.length]=new Option('Maine','22');d.options[d.options.length]=new Option('Maryland','53');d.options[d.options.length]=new Option('Massachusetts','54');d.options[d.options.length]=new Option('Michigan','55');d.options[d.options.length]=new Option('Minnesota','56');d.options[d.options.length]=new Option('Mississippi','57');d.options[d.options.length]=new Option('Missouri','58');d.options[d.options.length]=new Option('Montana','59');d.options[d.options.length]=new Option('Nebraska','60');d.options[d.options.length]=new Option('Nevada','61');d.options[d.options.length]=new Option('New Hampshire','62');d.options[d.options.length]=new Option('New Jersey','63');d.options[d.options.length]=new Option('New Mexico','64');d.options[d.options.length]=new Option('New York','65');d.options[d.options.length]=new Option('North Carolina','66');d.options[d.options.length]=new Option('North Dakota','67');d.options[d.options.length]=new Option('Ohio','68');d.options[d.options.length]=new Option('Oklahoma','69');d.options[d.options.length]=new Option('Oregon','70');d.options[d.options.length]=new Option('Puerto Rico','71');d.options[d.options.length]=new Option('Rhode Island','72');d.options[d.options.length]=new Option('South Carolina','73');d.options[d.options.length]=new Option('South Dakota','74');d.options[d.options.length]=new Option('Tennessee','75');d.options[d.options.length]=new Option('Texas','76');d.options[d.options.length]=new Option('Utah','77');d.options[d.options.length]=new Option('Vermont','78');d.options[d.options.length]=new Option('Virgin Islands','79');d.options[d.options.length]=new Option('Virginia','80');d.options[d.options.length]=new Option('Washington','81');d.options[d.options.length]=new Option('West Virginia','82');d.options[d.options.length]=new Option('Wisconsin','83');d.options[d.options.length]=new Option('Wyoming','84');d.style.display='inline'}if(c==595){d.options[d.options.length]=new Option(' ','0');d.options[d.options.length]=new Option('Москва','596');d.options[d.options.length]=new Option('Московская область','597');d.options[d.options.length]=new Option('Санкт-Петербург','598');d.options[d.options.length]=new Option(' ','0');d.options[d.options.length]=new Option('Алтайский край','600');d.options[d.options.length]=new Option('Амурская область','601');d.options[d.options.length]=new Option('Архангельская область','602');d.options[d.options.length]=new Option('Астраханская область','603');d.options[d.options.length]=new Option('Белгородская область','604');d.options[d.options.length]=new Option('Брянская область','605');d.options[d.options.length]=new Option('Владимирская область','606');d.options[d.options.length]=new Option('Волгоградская область','607');d.options[d.options.length]=new Option('Вологодская область','608');d.options[d.options.length]=new Option('Воронежская область','609');d.options[d.options.length]=new Option('Еврейская AO','610');d.options[d.options.length]=new Option('Ивановская область','611');d.options[d.options.length]=new Option('Иркутская область','612');d.options[d.options.length]=new Option('Кабардино-Балкарская Республика','613');d.options[d.options.length]=new Option('Калининградская область','614');d.options[d.options.length]=new Option('Калужская область','615');d.options[d.options.length]=new Option('Карачаево-Черкесская Республика','616');d.options[d.options.length]=new Option('Кемеровская область','617');d.options[d.options.length]=new Option('Кировская область','618');d.options[d.options.length]=new Option('Костромская область','619');d.options[d.options.length]=new Option('Краснодарский край','620');d.options[d.options.length]=new Option('Красноярский край','621');d.options[d.options.length]=new Option('Курганская область','622');d.options[d.options.length]=new Option('Курская область','623');d.options[d.options.length]=new Option('Ленинградская область','599');d.options[d.options.length]=new Option('Липецкая область','624');d.options[d.options.length]=new Option('Магаданская область','625');d.options[d.options.length]=new Option('Москва','596');d.options[d.options.length]=new Option('Московская область','597');d.options[d.options.length]=new Option('Мурманская область','626');d.options[d.options.length]=new Option('Нижегородская область','627');d.options[d.options.length]=new Option('Новгородская область','628');d.options[d.options.length]=new Option('Новосибирская область','629');d.options[d.options.length]=new Option('Омская область','630');d.options[d.options.length]=new Option('Оренбургская область','631');d.options[d.options.length]=new Option('Орловская область','632');d.options[d.options.length]=new Option('Пензенская область','633');d.options[d.options.length]=new Option('Пермский край','634');d.options[d.options.length]=new Option('Приморский край','635');d.options[d.options.length]=new Option('Псковская область','636');d.options[d.options.length]=new Option('Республика Адыгея','637');d.options[d.options.length]=new Option('Республика Башкортостан','638');d.options[d.options.length]=new Option('Республика Бурятия','639');d.options[d.options.length]=new Option('Республика Дагестан','640');d.options[d.options.length]=new Option('Республика Ингушетия','641');d.options[d.options.length]=new Option('Республика Калмыкия','642');d.options[d.options.length]=new Option('Республика Карелия','643');d.options[d.options.length]=new Option('Республика Коми','644');d.options[d.options.length]=new Option('Республика Марий Эл','645');d.options[d.options.length]=new Option('Республика Мордовия','646');d.options[d.options.length]=new Option('Республика Саха (Якутия)','647');d.options[d.options.length]=new Option('Республика Северная Осетия','648');d.options[d.options.length]=new Option('Республика Татарстан','649');d.options[d.options.length]=new Option('Республика Тыва','650');d.options[d.options.length]=new Option('Республика Хакасия','651');d.options[d.options.length]=new Option('Ростовская область','652');d.options[d.options.length]=new Option('Рязанская область','653');d.options[d.options.length]=new Option('Самарская область','654');d.options[d.options.length]=new Option('Санкт-Петербург','598');d.options[d.options.length]=new Option('Саратовская область','655');d.options[d.options.length]=new Option('Сахалинская область','656');d.options[d.options.length]=new Option('Свердловская область','657');d.options[d.options.length]=new Option('Смоленская область','658');d.options[d.options.length]=new Option('Ставропольский край','659');d.options[d.options.length]=new Option('Таймырский AO','660');d.options[d.options.length]=new Option('Тамбовская область','661');d.options[d.options.length]=new Option('Тверская область','662');d.options[d.options.length]=new Option('Томская область','663');d.options[d.options.length]=new Option('Тульская область','664');d.options[d.options.length]=new Option('Тюменская область','665');d.options[d.options.length]=new Option('Удмуртская Республика','666');d.options[d.options.length]=new Option('Ульяновская область','667');d.options[d.options.length]=new Option('Хабаровский край','668');d.options[d.options.length]=new Option('Ханты-Мансийский AO','669');d.options[d.options.length]=new Option('Челябинская область','670');d.options[d.options.length]=new Option('Чеченская Республика','671');d.options[d.options.length]=new Option('Читинская область','672');d.options[d.options.length]=new Option('Чувашская Республика','673');d.options[d.options.length]=new Option('Чукотский AO','674');d.options[d.options.length]=new Option('Эвенкийский AO','675');d.options[d.options.length]=new Option('Ямало-ненецкий AO','676');d.options[d.options.length]=new Option('Ярославская область','677');d.style.display='inline'}}}function setSelectedOption(f,c,l){var d=document.getElementById(f+l);for(i=0;i<d.options.length;i++){if(d.options[i].value==c){d.selectedIndex=i}}}
